📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 15:56:51
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-igbinary_3.2.16-4.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-igbinary_3.2.16-4.el8/tests
🔄 Refresh
✏️
Editing: igbinary_048.phpt
Read Only
--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'
💾 Save Changes
❌ Cancel