php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/img_galeri/2r1asasas/root/opt/php-7.0.1/ext/standard/tests/serialize/ |
| files >> //var/www/html/img_galeri/2r1asasas/root/opt/php-7.0.1/ext/standard/tests/serialize/bug21957.phpt |
--TEST--
Bug #21957 (serialize() mangles objects with __sleep)
--FILE--
<?php
class test
{
public $a, $b;
function __construct()
{
$this->a = 7;
$this->b = 2;
}
function __sleep()
{
$this->b = 0;
}
}
$t['one'] = 'ABC';
$t['two'] = new test();
var_dump($t);
$s = @serialize($t);
echo $s . "\n";
var_dump(unserialize($s));
?>
--EXPECT--
array(2) {
["one"]=>
string(3) "ABC"
["two"]=>
object(test)#1 (2) {
["a"]=>
int(7)
["b"]=>
int(2)
}
}
a:2:{s:3:"one";s:3:"ABC";s:3:"two";N;}
array(2) {
["one"]=>
string(3) "ABC"
["two"]=>
NULL
}
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`