]> granicus.if.org Git - php/commitdiff
removed another E_STRICT(with the approval of Derick), 3 more to go
authorFerenc Kovacs <tyrael@php.net>
Thu, 30 Jul 2015 11:53:44 +0000 (13:53 +0200)
committerFerenc Kovacs <tyrael@php.net>
Thu, 30 Jul 2015 11:53:44 +0000 (13:53 +0200)
ext/date/php_date.c
ext/date/tests/gmmktime_basic.phpt
ext/date/tests/mktime_error.phpt

index 2f52353ce2827ecf3c91ed92efe92ff9fc5ce61f..52ce4b7ce8ca91abf3a65e534d4bd2c744b06f71 100644 (file)
@@ -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) {
index 81abb5f2b2c307e144beb673a98cb07c12949ddc..58777ef771261ee118c5b823f908003465eaf68d 100644 (file)
@@ -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===
index eb1cc6e19a194c61805b18d8f85d7e9a3bea6f92..9e3e872cb5e4b91a90520886bc01bcaca68d579a 100644 (file)
@@ -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 --