Leading on from another post I've got 5.3.5 running on
XP. I recall reading somewhere about this version no longer using default timezones, which is cool as long as we know. This code.
Tells me
However if I correct the issue i.e.
I get
It's probably expected behaviour but it looks odd and I was interested in anyones thoughts.
XP. I recall reading somewhere about this version no longer using default timezones, which is cool as long as we know. This code.
Code:
<?php
//$i = 0;
echo " is " . $i . "\n";
?>
Which seems to generaly freak because I haven't declared $i;C:\PHP5.3.5>php fred2.php
Warning: main(): It is not safe to rely on the system's timezone settings. You
re *required* to use the date.timezone setting or the date_default_timezone_se
) function. In case you used any of those methods and you are still getting th
warning, you most likely misspelled the timezone identifier. We selected 'Eur
e/London' for '0.0/no DST' instead in C:\PHP5.3.5\fred2.php on line 5
Notice: Undefined variable: i in C:\PHP5.3.5\fred2.php on line 5
is
However if I correct the issue i.e.
Code:
<?php
$i = 0;
echo " is " . $i . "\n";
?>
Which is quite happy about the timezone now.C:\PHP5.3.5>php fred2.php
is 0
It's probably expected behaviour but it looks odd and I was interested in anyones thoughts.