// SYSTEM PANEL //
[ROOT]
/
opt
/
alt
/
tests
/
alt-php84-pecl-igbinary_3.2.16-3.el8
/
tests
[ PARENT ]
EDIT :: igbinary_045b.phpt
--TEST-- APCu serializer registration --SKIPIF-- <?php if (!extension_loaded('apcu')) { echo "skip APCu not loaded"; } $ext = new ReflectionExtension('apcu'); if (version_compare($ext->getVersion(), '4.0.2', '<')) { echo "skip require APCu version 4.0.2 or above"; } --INI-- apc.enable_cli=1 apc.serializer=igbinary --FILE-- <?php echo ini_get('apc.serializer'), "\n"; class Bar { public $foo = 10; } $a = new Bar; apcu_store('foo', $a); unset($a); var_dump(apcu_fetch('foo')); --EXPECTF-- igbinary object(Bar)#%d (1) { ["foo"]=> int(10) }
SAVE
CANCEL