Home
last modified time | relevance | path

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

12345

/PHP-5.3/ext/standard/tests/serialize/
H A D001.phpt2 serialize()/unserialize()/var_dump()
42 echo serialize(NULL)."\n";
45 echo serialize(1)."\n";
46 echo serialize(0)."\n";
47 echo serialize(-1)."\n";
51 echo serialize(1.0)."\n";
52 echo serialize(0.0)."\n";
53 echo serialize(-1.0)."\n";
59 $data = serialize($t);
65 $data = serialize($t);
[all …]
H A Dserialization_error_001.phpt2 Test serialize() & unserialize() functions: error conditions - wrong number of args.
5 /* Prototype : proto string serialize(mixed variable)
16 echo "*** Testing serialize()/unserialize() : error conditions ***\n";
19 var_dump( serialize() );
22 //Test serialize with one more than the expected number of arguments
23 var_dump( serialize(1,2) );
29 *** Testing serialize()/unserialize() : error conditions ***
31 Warning: serialize() expects exactly 1 parameter, 0 given in %s on line 16
37 Warning: serialize() expects exactly 1 parameter, 2 given in %s on line 20
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…
5 /* Prototype : proto string serialize(mixed variable)
18 var_dump(serialize(array($x, $x)));
22 var_dump(serialize(array($x, $x)));
26 var_dump(serialize(array($x, $x)));
30 var_dump(serialize(array($x, $x)));
34 var_dump(serialize(array($x, $x)));
38 var_dump(serialize(array($x, $x)));
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 Dbug27469.phpt2 Bug #27469 (serialize() objects of incomplete class)
8 echo serialize($obj)."\n";
10 echo serialize($obj)."\n";
H A Dserialization_objects_010.phpt7 /* Prototype : proto string serialize(mixed variable)
19 public function serialize() {
28 var_dump(serialize(new C));
36 C::serialize() must return a string or NULL
H A D005.phpt2 serialize()/unserialize() objects
48 function serialize()
74 function serialize()
103 var_dump($ser = serialize(new TestOld));
107 var_dump($ser = serialize(new TestNew));
111 var_dump($ser = serialize(new TestNew));
143 TestNew::serialize()
147 TestNew::serialize()
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())
20 $data = serialize($t);
29 Notice: serialize(): "b" returned as member variable from __sleep() but does not exist in %sbug1429…
H A Dbug23298.phpt2 Bug #23298 (serialize() and floats/doubles)
9 $bar = unserialize(serialize($foo));
H A Dserialization_resources_001.phpt2 Test serialize() & unserialize() functions: resources
5 /* Prototype : proto string serialize(mixed variable)
18 $serialized_data = serialize( $file_handle );
H A Dserialization_objects_003.phpt2 Test serialize() & unserialize() functions: objects (abstract classes)
7 /* Prototype : proto string serialize(mixed variable)
43 $serialize_data = serialize($obj_extendName);
48 $serialize_data = serialize($obj_extendName->printClassName());
H A Dbug42919.phpt8 echo serialize(new Bar) . "\n";
9 $x = unserialize(serialize(new Bar));
H A Dbug24063.phpt2 Bug #24063 (serialize() missing 0 after the . on scientific notation)
11 echo "{$v} ".unserialize(serialize($v))."\n";
H A Dserialization_arrays_001.phpt2 Test serialize() & unserialize() functions: arrays (circular references)
7 /* Prototype : proto string serialize(mixed variable)
22 $serialize_data = serialize($arr_circ);
31 $serialize_data = serialize($arr_asso);
H A Dbug62373.phpt2 Bug #62373 (serialize() generates wrong reference to the object)
14 $s = unserialize(serialize(array($b, $a)));
H A Dbug35895.phpt20 serialize($obj);
24 Notice: serialize(): "parents" returned as member variable from __sleep() but does not exist in %sb…
/PHP-5.3/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-5.3/tests/classes/
H A Dserialize_001.phpt16 function serialize()
38 $ser = serialize(new Test($data));
54 Test::serialize(String)
67 Test::serialize()
72 Test::serialize(42)
73 Exception: Test::serialize() must return a string or NULL
77 Test::serialize()
78 Exception: Test::serialize() must return a string or NULL
/PHP-5.3/ext/spl/tests/
H A Dbug45826.phpt14 $s1 = serialize($o);
15 $s2 = $o->serialize();
34 public function serialize() {
35 return parent::serialize();
52 $s1 = serialize($o);
53 $s2 = $o->serialize();
H A Dbug41528.phpt2 Bug #41528 (Classes extending ArrayObject do not serialize correctly)
16 $classOne = unserialize(serialize($classOne));
/PHP-5.3/ext/standard/tests/strings/
H A Dbug25671.phpt13 echo serialize(str_replace("string", "strung", $arr)) . "\n";
14 echo serialize(str_replace("string", "strung", $arr)) . "\n";
15 echo serialize(str_replace(" ", "", $arr)) . "\n";
16 echo serialize(str_replace(" ", "", $arr)) . "\n";
/PHP-5.3/ext/pdo/tests/
H A Dpecl_bug_5217.phpt2 PDO Common: PECL Bug #5217 (serialize/unserialze safety)
17 $ser = serialize($db);
28 Safely caught You cannot serialize or unserialize PDO instances
/PHP-5.3/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_fetch_serialize.phpt67 public function serialize() {
69 return 'Data from serialize';
89 $myobj = serialize($obj);
128 myclass::serialize()
131 myclass::unserialize('Data from serialize')
138 myclass::unserialize('C:7:"myclass":19:{Data from serialize}')
145 myclass::__set(myobj, 'C:7:"myclass":19:{Data from serialize}')
151 %unicode|string%(38) "C:7:"myclass":19:{Data from serialize}"

Completed in 26 milliseconds

12345