ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
File manager
File manager - Edit - /opt/alt/tests/alt-php83-pecl-igbinary_3.2.15-1.el8/tests/igbinary_048.phpt
Back
--TEST-- Object test, __set not called for private attr in extended class --FILE-- <?php class Bar { public $a = []; public $b = array(); public $c = NULL; private $_d = NULL; public function __set($name,$value) { echo 'magic function called for ' . $name . ' with ' . var_export($value, true) . PHP_EOL; } } class Foo extends Bar { public $m; } $x = new Foo(); $x->a = [1, 2, 3]; $x->nonexistent = 'aaa'; igbinary_unserialize(igbinary_serialize($x)); --EXPECT-- magic function called for nonexistent with 'aaa'
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.49 |
proxy
|
phpinfo
|
Settings