Skip to content

Assertion failure in Zend/zend_API.c:498 #16354

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$input = [gmp_init(25), gmp_init(6)];
var_dump(array_reduce($input, fn($fusion, $value) => $carry * $value, 1));

Resulted in this output:

/php-src/Zend/zend_API.c:498: _Bool zend_null_arg_deprecated(const char *, uint32_t): Assertion `arg_num > 0' failed.
Aborted (core dumped)

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions