|
Posted by Chameleon on 12/11/05 23:50
the code below...
-------------------------------
<?
function errorHandler($errno, $str, $file, $line)
{
//if ($errno == E_STRICT) return;
fwrite(STDERR, "\n\n$errno: $str\n\n");
if ($errno == E_USER_ERROR) die();
}
set_error_handler('errorHandler');
$a = mktime(14, 0, 0, 12, 20, 2005);
echo date('d/m/Y', $a);
?>
-------------------------------
....produces this STDERR...
-------------------------------
2048: mktime(): It is not safe to rely on the system's timezone
settings. Please use the date.timezone setting, the TZ environment
variable or the date_default_timezone_set() function. We selected
'Europe/Helsinki' for '2.0/no DST' instead
2048: date(): It is not safe to rely on the system's timezone settings.
Please use the date.timezone setting, the TZ environment variable or the
date_default_timezone_set() function. We selected 'Europe/Helsinki' for
'2.0/no DST' instead
-------------------------------
What is the meaning of this message?
How can I silence it without commenting the commented line?
Thanks
[Back to original message]
|