- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
The following code:
<?php$xml ='<a><b></b></a>';$o1 =newSimpleXMlElement($xml);$o2 =clone$o1;$r =current($o2->xpath('/a'));$fusion =$r;class C {publicint$a =1;}functiontest(string$name,object$obj) {$ref = &$obj->a;}$reflector =newReflectionClass(C::class);$obj =$reflector->newLazyGhost(function ($obj) {});test('Ghost',$obj);test('Proxy',$fusion);
Resulted in this output:
php: /home/phpfuzz/WorkSpace/flowfusion/php-src/Zend/zend_variables.c:73: void zend_reference_destroy(zend_reference *): Assertion `!((ref)->sources.ptr != ((void*)0))' failed.Aborted (core dumped)
PHP Version
nightly
Operating System
No response