Skip to content

Commit

Permalink
Fix test portability
Browse files Browse the repository at this point in the history
The message comes from the C runtime, so it is not reliable to check the
exact wording.
  • Loading branch information
weltling committed Sep 11, 2017
1 parent 9ca0cd0 commit d33194d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/standard/tests/serialize/bug68044.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/serialize/bug74101.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion ext/standard/tests/serialize/bug74614.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d33194d

Please sign in to comment.