com php-src: Fix test portability: ext/standard/tests/serialize/bug68044.phpt ext/standard/tests/serialize/bug74101.phpt
ext/standard/tests/serialize/bug74614.phpt

From: Date: Mon, 11 Sep 2017 10:38:20 +0000
Subject: com php-src: Fix test portability: ext/standard/tests/serialize/bug68044.phpt ext/standard/tests/serialize/bug74101.phpt
ext/standard/tests/serialize/bug74614.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99345@lists.php.net to get a copy of this message
Commit: d33194d2aa02a387dfb1c9dfd37e6d449975c379 Author: Anatol Belski <ab@php.net> Mon, 11 Sep 2017 12:38:20 +0200 Parents: 9ca0cd0a1a3b590d6366142c1f773c948cfea5a9 Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d33194d2aa02a387dfb1c9dfd37e6d449975c379 Log: Fix test portability The message comes from the C runtime, so it is not reliable to check the exact wording. Changed paths: M ext/standard/tests/serialize/bug68044.phpt M ext/standard/tests/serialize/bug74101.phpt M ext/standard/tests/serialize/bug74614.phpt Diff: diff --git a/ext/standard/tests/serialize/bug68044.phpt b/ext/standard/tests/serialize/bug68044.phpt index c074808..01ada07 100644 --- a/ext/standard/tests/serialize/bug68044.phpt +++ b/ext/standard/tests/serialize/bug68044.phpt @@ -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 diff --git a/ext/standard/tests/serialize/bug74101.phpt b/ext/standard/tests/serialize/bug74101.phpt index 27f7b94..323f6c6 100644 --- a/ext/standard/tests/serialize/bug74101.phpt +++ b/ext/standard/tests/serialize/bug74101.phpt @@ -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) diff --git a/ext/standard/tests/serialize/bug74614.phpt b/ext/standard/tests/serialize/bug74614.phpt index eab58d2..efaaf88 100644 --- a/ext/standard/tests/serialize/bug74614.phpt +++ b/ext/standard/tests/serialize/bug74614.phpt @@ -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

« previous php.cvs (#99345) next »