Home
last modified time | relevance | path

Searched refs:unserialize (Results 1 – 25 of 141) sorted by relevance

123456

/PHP-5.3/ext/standard/tests/serialize/
H A Dbug25378.phpt2 Bug #25378 (unserialize() crashes with invalid data)
5 var_dump(unserialize("s:-1:\"\";"));
6 var_dump(unserialize("i:823"));
7 var_dump(unserialize("O:8:\"stdClass :0:{}"));
8 var_dump(unserialize("O:8:\"stdClass\"+0:{}"));
9 var_dump(unserialize("O:1000:\"stdClass\":0:{}"));
10 var_dump(unserialize("a:2:{i:0;s:2:\"12\":"));
14 var_dump(unserialize("s:3000:\"123\";"));
15 var_dump(unserialize("s:3000:\"123"));
16 var_dump(unserialize("s:3:\"123;"));
[all …]
H A D002.phpt2 Bug #25378 (unserialize() crashes with invalid data)
5 var_dump(unserialize('b:0;'));
6 var_dump(unserialize('b:1;'));
7 var_dump(unserialize('i:823;'));
8 var_dump(unserialize('s:0:"";'));
9 var_dump(unserialize('s:3:"foo";'));
10 var_dump(unserialize('a:1:{i:0;s:2:"12";}'));
11 var_dump(unserialize('a:2:{i:0;a:0:{}i:1;a:0:{}}'));
12 var_dump(unserialize('a:3:{i:0;s:3:"foo";i:1;s:3:"bar";i:2;s:3:"baz";}'));
13 var_dump(unserialize('O:8:"stdClass":0:{}'));
H A Dserialization_error_001.phpt2 Test serialize() & unserialize() functions: error conditions - wrong number of args.
10 /* Prototype : proto mixed unserialize(string variable_representation)
16 echo "*** Testing serialize()/unserialize() : error conditions ***\n";
20 var_dump( unserialize() );
24 var_dump( unserialize(1,2) );
29 *** Testing serialize()/unserialize() : error conditions ***
34 Warning: unserialize() expects exactly 1 parameter, 0 given in %s on line 17
40 Warning: unserialize() expects exactly 1 parameter, 2 given in %s on line 21
H A D005.phpt2 serialize()/unserialize() objects
53 function unserialize($serialized)
86 function unserialize($serialized)
104 var_dump(unserialize($ser));
108 var_dump(unserialize($ser));
112 var_dump(unserialize($ser));
115 var_dump(unserialize('O:9:"TestNAOld":0:{}'));
118 var_dump(unserialize('O:9:"TestNANew":0:{}'));
121 var_dump(unserialize('C:10:"TestNANew2":0:{}'));
149 TestNew::unserialize()
[all …]
H A D006.phpt2 serialize()/unserialize() with exotic letters
15 var_dump(unserialize(serialize($foo)));
17 var_dump(unserialize(serialize($������)));
H A D004.phpt2 serialize()/unserialize() floats in array.
12 $b = unserialize($str);
18 $b = unserialize($str);
H A Dbug31442.phpt2 Bug #31442 (unserialize broken on 64-bit systems)
7 echo unserialize(serialize(2147483648));
H A Dserialization_objects_008.phpt10 /* Prototype : proto mixed unserialize(string variable_representation)
17 $o = unserialize('O:3:"FOO":0:{}');
23 Warning: unserialize(): defined (Nonexistent) but not found in %s on line 14
H A Dserialization_resources_001.phpt2 Test serialize() & unserialize() functions: resources
10 /* Prototype : proto mixed unserialize(string variable_representation)
21 var_dump(unserialize($serialized_data));
H A Dserialization_objects_005.phpt10 /* Prototype : proto mixed unserialize(string variable_representation)
18 $incomplete = unserialize($serialized);
20 $complete = unserialize($serialized);
93 …ion "C" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
96 …ion "C" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
98 …ion "C" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
101 …ion "C" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
104 …ion "C" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
107 …ion "C" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
110 …ion "C" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
[all …]
H A Dserialization_objects_003.phpt2 Test serialize() & unserialize() functions: objects (abstract classes)
12 /* Prototype : proto mixed unserialize(string variable_representation)
45 $unserialize_data = unserialize($serialize_data);
50 $unserialize_data = unserialize($serialize_data);
H A Dserialization_objects_009.phpt10 /* Prototype : proto mixed unserialize(string variable_representation)
17 $a = unserialize($ser);
19 $b = unserialize($ser);
H A Dincomplete_class.phpt7 $o = unserialize($d);
20 …nknown" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
22 …nknown" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
25 …nknown" of the object you are trying to operate on was loaded _before_ unserialize() gets called o…
H A D003.phpt2 unserialize() floats with E notation (#18654)
10 var_dump(unserialize($ser));
H A Dserialization_objects_007.phpt10 /* Prototype : proto mixed unserialize(string variable_representation)
26 $o = unserialize('O:3:"FOO":0:{}');
37 Warning: unserialize(): Function check() hasn't defined the class it was called for in %s on line 23
H A Dserialization_arrays_001.phpt2 Test serialize() & unserialize() functions: arrays (circular references)
12 /* Prototype : proto mixed unserialize(string variable_representation)
24 $arr_circ = unserialize($serialize_data);
33 $arr_asso = unserialize($serialize_data);
H A Dbug26762.phpt2 Bug #26762 (unserialize() produces lowercase classnames)
19 @unserialize('O:3:"FOO":0:{}');
H A Dbug55798.phpt2 Bug #55798 (serialize followed by unserialize with numeric object prop. gives integer prop)
11 $b = unserialize(serialize($a));
/PHP-5.3/ext/standard/tests/math/
H A Dbug27646.phpt2 Bug #27646 (Cannot serialize/unserialize non-finite numeric values)
10 var_dump(unserialize(serialize($f)));
15 var_dump(unserialize(serialize($f)));
20 var_dump(unserialize(serialize($f)));
25 var_dump(unserialize(serialize($f)));
30 var_dump(unserialize(serialize($f)));
/PHP-5.3/ext/spl/tests/
H A DSplObjectStorage_unserialize_invalid_parameter1.phpt2 Check that SplObjectStorage::unserialize returns NULL when non-string param is passed
17 var_dump($s->unserialize($input));
22 Warning: SplObjectStorage::unserialize() expects parameter 1 to be %binary_string_optional%, array …
25 Warning: SplObjectStorage::unserialize() expects parameter 1 to be %binary_string_optional%, object…
H A DArrayObject_unserialize_empty_string.phpt2 ArrayObject: test that you cannot unserialize a empty string
9 $a->unserialize("");
14 #0 %s(%d): ArrayObject->unserialize('')
H A Dbug45826.phpt19 $o1 =unserialize($s1);
25 $o2->unserialize($s2);
38 public function unserialize($s) {
39 return parent::unserialize($s);
57 $o1 =unserialize($s1);
63 $o2->unserialize($s2);
H A DSplObjectStorage_unserialize_invalid_parameter3.phpt2 Check that SplObjectStorage::unserialize throws exception when NULL passed
11 $s->unserialize(NULL);
/PHP-5.3/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_fetch_serialize_simple.phpt34 public function unserialize($data) {
42 $tmp = unserialize(serialize($obj));
48 $db->exec("INSERT INTO test(myobj) VALUES ('Data fetched from DB to be given to unserialize()')");
77 myclass::unserialize('Value from serialize()')
82 myclass::unserialize('Data fetched from DB to be given to unserialize()')
85 myclass::unserialize('Data fetched from DB to be given to unserialize()')
90 myclass::unserialize('Data fetched from DB to be given to unserialize()')
H A Dpdo_mysql_stmt_fetch_serialize.phpt72 public function unserialize($data) {
96 var_dump(unserialize($myobj));
98 …printf("\nUsing PDO::FETCH_CLASS|PDO::FETCH_SERIALIZE to fetch the object from DB and unserialize
104 printf("\nUsing PDO::FETCH_CLASS to fetch the object from DB and unserialize it...\n");
131 myclass::unserialize('Data from serialize')
137 Using PDO::FETCH_CLASS|PDO::FETCH_SERIALIZE to fetch the object from DB and unserialize it...
138 myclass::unserialize('C:7:"myclass":19:{Data from serialize}')
144 Using PDO::FETCH_CLASS to fetch the object from DB and unserialize it...

Completed in 25 milliseconds

123456