From: Nikita Popov Date: Thu, 23 Mar 2017 21:36:55 +0000 (+0100) Subject: Add test for previous commit X-Git-Tag: php-7.2.0alpha1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81d8c37b0349eabc483b2e28771b7a03243b262e;p=php Add test for previous commit --- diff --git a/ext/standard/tests/serialize/invalid_signs_in_lengths.phpt b/ext/standard/tests/serialize/invalid_signs_in_lengths.phpt new file mode 100644 index 0000000000..6288cfc52e --- /dev/null +++ b/ext/standard/tests/serialize/invalid_signs_in_lengths.phpt @@ -0,0 +1,55 @@ +--TEST-- +Lengths and references are not signed +--FILE-- + +--EXPECTF-- +Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d +bool(false) + +Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d +bool(false)