com php-src: fix test: tests/run-test/test008.phpt
| From: | Anatol Belski | Date: | Mon, 17 Aug 2015 21:12:50 +0000 |
| Subject: | com php-src: fix test: tests/run-test/test008.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88571@lists.php.net to get a copy of this message | ||
Commit: c042c64c43e1d62c40f3ea89a62b834d07dbba0c
Author: Anatol Belski <ab@php.net> Mon, 17 Aug 2015 23:11:02 +0200
Parents: 94e272f1b328b4ff0de83c72311ef9d81cce51ae
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c042c64c43e1d62c40f3ea89a62b834d07dbba0c
Log:
fix test
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.
Changed paths:
M tests/run-test/test008.phpt
Diff:
diff --git a/tests/run-test/test008.phpt b/tests/run-test/test008.phpt
index e37ddbb..7d95d89 100644
--- a/tests/run-test/test008.phpt
+++ b/tests/run-test/test008.phpt
@@ -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"