diff --git a/ext/standard/tests/serialize/002.phpt b/ext/standard/tests/serialize/002.phpt new file mode 100644 index 00000000000..3085d1cf4f7 --- /dev/null +++ b/ext/standard/tests/serialize/002.phpt @@ -0,0 +1,44 @@ +--TEST-- +Bug #25378 (unserialize() crashes with invalid data) +--FILE-- + +===DONE=== +--EXPECTF-- +bool(false) +bool(true) +int(823) +string(0) "" +string(3) "foo" +array(1) { + [0]=> + string(2) "12" +} +array(2) { + [0]=> + array(0) { + } + [1]=> + array(0) { + } +} +array(3) { + [0]=> + string(3) "foo" + [1]=> + string(3) "bar" + [2]=> + string(3) "baz" +} +object(stdClass)#%d (0) { +} +===DONE=== diff --git a/ext/standard/tests/serialize/autoload_implements.p5c b/ext/standard/tests/serialize/autoload_implements.p5c new file mode 100755 index 00000000000..2c3479c8607 --- /dev/null +++ b/ext/standard/tests/serialize/autoload_implements.p5c @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/ext/standard/tests/serialize/autoload_interface.p5c b/ext/standard/tests/serialize/autoload_interface.p5c new file mode 100755 index 00000000000..6908155e610 --- /dev/null +++ b/ext/standard/tests/serialize/autoload_interface.p5c @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/ext/standard/tests/serialize/bug30234.phpt b/ext/standard/tests/serialize/bug30234.phpt new file mode 100755 index 00000000000..37fc8cde3c8 --- /dev/null +++ b/ext/standard/tests/serialize/bug30234.phpt @@ -0,0 +1,40 @@ +--TEST-- +#30234 (__autoload() not invoked for interfaces) +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +bool(false) +bool(false) +__autoload(autoload_interface) +__autoload(Autoload_Implements) +object(autoload_implements)#%d (0) { +} +bool(true) +bool(true) +bool(true) +===DONE===