Skip to content

Assertion failure in Zend/zend_execute.c:5186 #16413

Closed as not planned
Closed as not planned
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
namespace Foo;
preg_replace('/foo/', '', '');
require "connect.inc";
// too many arguments
var_dump(ldap_connect("ldap://$host:$port/$base"));
$links = array();
$links[0] = ldap_connect($uri);
$links[1] = ldap_connect($uri);
echo(1);
?>

Resulted in this output:

/php-src/Zend/zend_execute.c:5186: zend_op_array *zend_include_or_eval(zval *, int): Assertion `0' failed.
Aborted (core dumped)

To reproduce:

-d "zend_extension=/php-src/modules/opcache.so" -d "pcache.enable=1" -d "opcache.enable_cli=1" -d "opcache.jit=1111"

PHP Version

nightly

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions