1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/bug60723.phpt
T
Máté Kocsis 36935e42ea Improve undefined variable error messages
Closes GH-5312
2020-03-31 13:02:32 +02:00

20 lines
447 B
PHP

--TEST--
Bug #60723 (error_log error time has changed to UTC ignoring default timezo)
--INI--
date.timezone=ASIA/Chongqing
log_errors=On
--FILE--
<?php
$dir = __DIR__;
$log = $dir . "/tmp.err";
ini_set("error_log", $log);
echo $aa;
error_log("dummy");
readfile($log);
unlink($log);
?>
--EXPECTF--
Warning: Undefined variable $aa in %s on line %d
[%s ASIA/Chongqing] PHP Warning: Undefined variable $aa in %s on line %d
[%s ASIA/Chongqing] dummy