[wp-trac] Re: [WordPress Trac] #8701: WordPress throws E_DEPRECATED
notices all over the place with newer PHP 5 installs
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 23 21:50:24 GMT 2009
#8701: WordPress throws E_DEPRECATED notices all over the place with newer PHP 5
installs
-------------------------------------+--------------------------------------
Reporter: Otto42 | Owner: anonymous
Type: defect (bug) | Status: reopened
Priority: high | Milestone: 2.7.1
Component: General | Version: 2.7
Severity: blocker | Resolution:
Keywords: has-patch tested commit |
-------------------------------------+--------------------------------------
Comment (by jacobsantos):
PHP 5.2.6:
{{{
#!php
<?php
error_reporting( E_ALL ^ E_STRICT ^ E_NOTICE ^ E_WARNING);
echo $notsetbefore;
mktime();
}}}
Results:
{{{
Strict Standards: mktime() [function.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. In case you used any of those
methods
and you are still getting this warning, you most likely misspelled the
timezone
identifier. We selected 'America/Chicago' for '-6.0/no DST' instead in
C:\wamp
\www\testerrors.php on line 9
Strict Standards: mktime() [function.mktime]: You should be using the
time()
function instead in C:\wamp\www\testerrors.php on line 9
}}}
{{{
#!php
<?php
error_reporting( E_ALL ^ ~E_STRICT ^ E_NOTICE ^ E_WARNING);
echo $notsetbefore;
mktime();
}}}
Results:
{{{
Notice: Undefined variable: notsetbefore in C:\wamp\www\testerrors.php on
line 7
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8701#comment:30>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list