]> granicus.if.org Git - php/commitdiff
Fix test portability
authorAnatol Belski <ab@php.net>
Mon, 11 Sep 2017 10:38:20 +0000 (12:38 +0200)
committerAnatol Belski <ab@php.net>
Mon, 11 Sep 2017 10:38:20 +0000 (12:38 +0200)
The message comes from the C runtime, so it is not reliable to check the
exact wording.

ext/standard/tests/serialize/bug68044.phpt
ext/standard/tests/serialize/bug74101.phpt
ext/standard/tests/serialize/bug74614.phpt

index c074808d5ab8c7bae9183d92406ecbb405e2f90c..01ada07ad84f7970c13764de08a563497236398e 100644 (file)
@@ -6,7 +6,7 @@ Bug #68044 Integer overflow in unserialize() (32-bits only)
 ?>
 ===DONE==
 --EXPECTF--
-Warning: unserialize(): Numerical result out of range in %sbug68044.php on line %d
+Warning: unserialize(): %s in %sbug68044.php on line %d
 
 Warning: Insufficient data for unserializing - %d required, 1 present in %s%ebug68044.php on line 2
 
index 27f7b947ffc672af80497b03d722136721ec46bb..323f6c6f4654bf5e7430326800bd9c52ffc5b5d7 100644 (file)
@@ -6,7 +6,7 @@ $s = 'O:9:"Exception":799999999999999999999999999997:0i:0;a:0:{}i:2;i:0;i:0;R:2;
 var_dump(unserialize($s));
 ?>
 --EXPECTF--
-Warning: unserialize(): Numerical result out of range in %sbug74101.php on line %d
+Warning: unserialize(): %s in %sbug74101.php on line %d
 
 Notice: unserialize(): Error at offset 48 of 74 bytes in %sbug74101.php on line %d
 bool(false)
index eab58d291b6ac40e570d8e8bb9317d948636c486..efaaf885d226b434dd2fe3f880aad9c01667f30a 100644 (file)
@@ -7,6 +7,6 @@ unserialize('a:3020000000000000000000000000000001:{i:0;a:0:{}i:1;i:2;i:2;i:3;i:3
 
 ?>
 --EXPECTF--
-Warning: unserialize(): Numerical result out of range in %sbug74614.php on line %d
+Warning: unserialize(): %s in %sbug74614.php on line %d
 
 Notice: unserialize(): Error at offset %d of 113 bytes in %s on line %d