summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-18 16:30:18 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-18 23:39:00 +0200
commitde9f325c12d631d0fcbb90d0e5cf34235d9d6073 (patch)
tree730b5782ce0b2b8c5c41b2ed09ac49832f7333b9 /tests
parent6a5254bc9697afb162b5fc8177b8a2864eb7176c (diff)
downloadphp-git-de9f325c12d631d0fcbb90d0e5cf34235d9d6073.tar.gz
Fix tests/output/bug74815.phpt generating errors.log
Test tests/output/bug74815.phpt was creating an errors.log file in project root directory and didn't removed it after the test.
Diffstat (limited to 'tests')
-rw-r--r--tests/output/bug74815.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/output/bug74815.phpt b/tests/output/bug74815.phpt
index be4fa1b2cb..1d9c825999 100644
--- a/tests/output/bug74815.phpt
+++ b/tests/output/bug74815.phpt
@@ -5,10 +5,14 @@ Bug #74815 crash with a combination of INI entries at startup
$php = getenv("TEST_PHP_EXECUTABLE");
-echo shell_exec("$php -n -d error_log=errors.log -d error_reporting=E_ALL -d log_errors=On -d track_errors=On -v");
+echo shell_exec("$php -n -d error_log=".__DIR__."/error_log.tmp -d error_reporting=E_ALL -d log_errors=On -d track_errors=On -v");
?>
==DONE==
+--CLEAN--
+<?php
+unlink(__DIR__.'/error_log.tmp');
+?>
--EXPECTF--
Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
%A