Home
last modified time | relevance | path

Searched refs:serialize (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/PHP-8.2/ext/standard/tests/math/
H A Dbug27646.phpt2 Bug #27646 (Cannot serialize/unserialize non-finite numeric values)
9 var_dump(serialize($f));
10 var_dump(unserialize(serialize($f)));
14 var_dump(serialize($f));
15 var_dump(unserialize(serialize($f)));
19 var_dump(serialize($f));
20 var_dump(unserialize(serialize($f)));
24 var_dump(serialize($f));
25 var_dump(unserialize(serialize($f)));
29 var_dump(serialize($f));
[all …]
/PHP-8.2/ext/standard/tests/serialize/
H A D001.phpt2 serialize()/unserialize()/var_dump()
44 echo serialize(NULL)."\n";
47 echo serialize(1)."\n";
48 echo serialize(0)."\n";
49 echo serialize(-1)."\n";
53 echo serialize(1.0)."\n";
54 echo serialize(0.0)."\n";
55 echo serialize(-1.0)."\n";
61 $data = serialize($t);
67 $data = serialize($t);
[all …]
H A Dbug79526.phpt13 serialize(new A());
23 serialize(new B());
27 Warning: serialize(): A::__sleep() should return an array only containing the names of instance-var…
29 Warning: serialize(): B::__sleep() should return an array only containing the names of instance-var…
31 Warning: serialize(): "1" returned as member variable from __sleep() but does not exist in %s on li…
H A D006.phpt2 serialize()/unserialize() with exotic letters
14 var_dump(serialize($foo));
15 var_dump(unserialize(serialize($foo)));
16 var_dump(serialize($������));
17 var_dump(unserialize(serialize($������)));
H A Dserialization_objects_004.phpt2 Test serialize() & unserialize() functions: objects - ensure that COW references of objects are not…
7 var_dump(serialize(array($x, $x)));
11 var_dump(serialize(array($x, $x)));
15 var_dump(serialize(array($x, $x)));
19 var_dump(serialize(array($x, $x)));
23 var_dump(serialize(array($x, $x)));
27 var_dump(serialize(array($x, $x)));
H A Dbug65481.phpt2 Bug #65481 (shutdown segfault due to serialize)
11 public function serialize()
22 return serialize(array(serialize($c)));
33 $token = serialize($token);
H A Dbug55798.phpt2 Bug #55798 (serialize followed by unserialize with numeric object prop. gives integer prop)
9 var_dump(serialize($a));
11 $b = unserialize(serialize($a));
12 var_dump(serialize($b));
H A Dsleep_uninitialized_typed_prop.phpt21 var_dump(serialize($t));
22 var_dump(unserialize(serialize($t)) == $t);
25 var_dump(unserialize(serialize($t)) == $t);
28 var_dump(unserialize(serialize($t)) == $t);
31 var_dump(unserialize(serialize($t)) == $t);
H A Dbug65806.phpt21 $this->_serialized = serialize($this->_obj);
29 $this->_serialized = serialize($this->_obj);
56 echo "start serialize/unserialize" . PHP_EOL;
57 $newList = unserialize(serialize($list));
58 echo "finish serialize/unserialize" . PHP_EOL;
79 start serialize/unserialize
80 finish serialize/unserialize
H A Dsleep_undefined_declared_properties.phpt20 var_dump(serialize(new Test));
24 Warning: serialize(): "pub" returned as member variable from __sleep() but does not exist in %s on …
26 Warning: serialize(): "prot" returned as member variable from __sleep() but does not exist in %s on…
28 Warning: serialize(): "priv" returned as member variable from __sleep() but does not exist in %s on…
H A Dbug27469.phpt2 Bug #27469 (serialize() objects of incomplete class)
8 echo serialize($obj)."\n";
10 echo serialize($obj)."\n";
H A Dbug81163.phpt18 serialize(new bar());
21 Warning: serialize(): bar::__sleep() should return an array only containing the names of instance-v…
H A Dbug64146.phpt2 Bug #64146 (serialize incorrectly saving objects when they are cloned)
26 public function serialize()
28 return serialize(clone $this->b);
47 $a = unserialize(serialize(new A()));
H A D004.phpt2 serialize()/unserialize() floats in array.
10 $str = serialize($a);
16 $str = serialize(array(4.5));
H A Dbug14293.phpt2 Bug #14293 (serialize() and __sleep())
22 $data = serialize($t);
31 Warning: serialize(): "b" returned as member variable from __sleep() but does not exist in %s on li…
H A Dbug69210.phpt2 serialize() integrity with non string on __sleep
28 $ss = @serialize($cs);
31 $si = @serialize($ci);
/PHP-8.2/tests/classes/
H A Dserialize_001.phpt16 function serialize()
38 $ser = serialize(new Test($data));
53 Test::serialize(String)
66 Test::serialize()
71 Test::serialize(42)
72 Exception: Test::serialize() must return a string or NULL
76 Test::serialize()
77 Exception: Test::serialize() must return a string or NULL
/PHP-8.2/ext/spl/tests/
H A Dgh10907.phpt2 GH-10907 (Unable to serialize processed SplFixedArrays in PHP 8.2.4)
9 var_dump(serialize($array));
10 var_dump(unserialize(serialize($array)));
20 var_dump(serialize($array));
21 var_dump(unserialize(serialize($array)));
31 var_dump(serialize($array));
32 var_dump(unserialize(serialize($array)));
46 var_dump(serialize($array));
47 var_dump(unserialize(serialize($array)));
H A Dbug70730.phpt2 Bug #70730 (Incorrect ArrayObject serialization if unset is called in serialize())
14 public function serialize(): string
17 $result = parent::serialize();
28 $b->unserialize($a->serialize());
H A Dunserialize.phpt9 // serialize an empty new object
10 $exp = serialize(new $type());
15 // serialize result
16 $out = serialize($obj);
/PHP-8.2/Zend/tests/
H A Dbug53748.phpt10 if (!isset(self::$instances[$serialize = serialize($config)])) {
11 self::$instances[$serialize] = new self($config);
13 return self::$instances[$serialize];
H A Dbug64354.phpt6 public function serialize() {
7 throw new Exception("serialize");
18 serialize($data);
25 string(9) "serialize"
/PHP-8.2/ext/dom/tests/
H A Dnot_serializable.phpt11 serialize($doc);
18 serialize($node);
25 serialize($xpath);
32 serialize($ns);
/PHP-8.2/Zend/tests/enum/
H A Dserialize.phpt2 Enum serialize
10 echo serialize(Foo::Bar);
H A Dno-implement-serializable.phpt9 public function serialize() {
10 return serialize('Hello');
18 var_dump(unserialize(serialize(Foo::Bar)));

Completed in 42 milliseconds

12345678910>>...12