From: Ferenc Kovacs Date: Thu, 30 Jul 2015 11:53:44 +0000 (+0200) Subject: removed another E_STRICT(with the approval of Derick), 3 more to go X-Git-Tag: php-7.0.0beta3~5^2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57247f01f74acf55cbe6fb2ee2c117d6db3848db;p=php removed another E_STRICT(with the approval of Derick), 3 more to go --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 2f52353ce2..52ce4b7ce8 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1541,7 +1541,7 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt) now->h = hou; break; default: - php_error_docref(NULL, E_STRICT, "You should be using the time() function instead"); + php_error_docref(NULL, E_DEPRECATED, "You should be using the time() function instead"); } /* Update the timestamp */ if (gmt) { diff --git a/ext/date/tests/gmmktime_basic.phpt b/ext/date/tests/gmmktime_basic.phpt index 81abb5f2b2..58777ef771 100644 --- a/ext/date/tests/gmmktime_basic.phpt +++ b/ext/date/tests/gmmktime_basic.phpt @@ -30,6 +30,6 @@ var_dump( gmmktime() ); *** Testing gmmktime() : basic functionality *** int(1218182888) -Strict Standards: gmmktime(): You should be using the time() function instead in %s on line %d +Deprecated: gmmktime(): You should be using the time() function instead in %s on line %d int(%d) ===DONE=== diff --git a/ext/date/tests/mktime_error.phpt b/ext/date/tests/mktime_error.phpt index eb1cc6e19a..9e3e872cb5 100644 --- a/ext/date/tests/mktime_error.phpt +++ b/ext/date/tests/mktime_error.phpt @@ -34,7 +34,7 @@ var_dump( mktime($hour, $minute, $sec, $month, $day, $year, $extra_arg) ); -- Testing mktime() function with Zero arguments -- -Strict Standards: mktime(): You should be using the time() function instead in %s on line %d +Deprecated: mktime(): You should be using the time() function instead in %s on line %d int(%d) -- Testing mktime() function with more than expected no. of arguments --