mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Second pass through `Zend/tests/bug*` to organize the tests. Move tests to existing sub directories, and create some new sub directories: * `ArrayAccess` * `autoload` * `clone` * `serialize` (also covers `unserialize()`) * `switch` Work towards GH-15631
18 lines
365 B
PHP
18 lines
365 B
PHP
--TEST--
|
|
Bug #52879 (Objects unreferenced in __get, __set, __isset or __unset can be freed too early)
|
|
--FILE--
|
|
<?php
|
|
class MyClass {
|
|
public $myRef;
|
|
public function __set($property,$value) {
|
|
$this->myRef = $value;
|
|
}
|
|
}
|
|
$myGlobal=new MyClass();
|
|
$myGlobal->myRef=&$myGlobal;
|
|
$myGlobal->myNonExistentProperty="ok\n";
|
|
echo $myGlobal;
|
|
?>
|
|
--EXPECT--
|
|
ok
|