Skip to content

Assertion failure in Zend/zend_compile.c:1360 #16645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YuanchengJiang opened this issue Oct 30, 2024 · 1 comment
Closed

Assertion failure in Zend/zend_compile.c:1360 #16645

YuanchengJiang opened this issue Oct 30, 2024 · 1 comment

Comments

@YuanchengJiang
Copy link

Description

The following code:

<?php
namespace Foo;
preg_replace('/foo/', '', '');
echo "*** Testing arsort() : object functionality ***\n";
// class declaration for integer objects
class for_integer_arsort
{
public $class_value;
// initializing object member value
function __construct($value){
$this->class_value = $value;var_dump($this);
}
}
// class declaration for string objects
class for_string_arsort
{
  public $class_value;
  // initializing object member value
  function __construct($value){
    $this->class_value = $value;var_dump($this);
   }
  // return string value
  function __tostring() {
   return (string)$this->value;var_dump($this);
  }
}
// array of integer objects
$unsorted_int_obj = array (
1 => new for_integer_arsort(11), 2 =>  new for_integer_arsort(66),
3 => new for_integer_arsort(23), 4 => new for_integer_arsort(-5),
5 => new for_integer_arsort(0.001), 6 => new for_integer_arsort(0)
);

Resulted in this output (JIT 1101):

/Zend/zend_compile.c:1360: do_bind_class: Assertion `ce' failed.
Aborted (core dumped)

But I expected this output instead (non-JIT):

*** Testing arsort() : object functionality ***
object(Foo\for_integer_arsort)#1 (1) {
  ["class_value"]=>
  int(11)
}
object(Foo\for_integer_arsort)#2 (1) {
  ["class_value"]=>
  int(66)
}
object(Foo\for_integer_arsort)#3 (1) {
  ["class_value"]=>
  int(23)
}
object(Foo\for_integer_arsort)#4 (1) {
  ["class_value"]=>
  int(-5)
}
object(Foo\for_integer_arsort)#5 (1) {
  ["class_value"]=>
  float(0.001)
}
object(Foo\for_integer_arsort)#6 (1) {
  ["class_value"]=>
  int(0)
}

PHP Version

nightly

Operating System

ubuntu 22.04

@nielsdos
Copy link
Member

Just like your other recent reports, this is a duplicate of #15981
It starts even with the same prologue as #16633

@nielsdos nielsdos closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants