Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
This fail has nothing together with any changes in run-tests.php
Using run-tests.php from the 5.5 branch brings the same result. So
merely it is about how PHP7 handles and buffers errors.
  • Loading branch information
weltling committed Aug 17, 2015
1 parent 94e272f commit c042c64
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/run-test/test008.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@ var_dump(ini_get('display_errors'));
var_dump(ini_get('error_reporting'));
var_dump(ini_get('log_errors'));
var_dump(ini_get('track_errors'));
ini_set('display_errors', 0);
ini_set('display_errors', "0");
var_dump(ini_get('display_errors'));
var_dump($php_errormsg);
$error = 1 / 0;
var_dump($php_errormsg);
?>
--EXPECTF--
%s: %sivision by zero in %s on line %d
string(1) "1"
string(4) "8191"
string(5) "32767"
string(1) "0"
string(1) "1"
string(1) "0"
string(%d) "%sivision by zer%s"
string(%d) "%sivision by zer%s"

0 comments on commit c042c64

Please sign in to comment.