com php-src: removed another E_STRICT(with the approval of Derick), 3 more to go: ext/date/php _date.c ext/date/tests/gmmktime_basic.phpt ext/date
/tests/mktime_error.phpt
| From: | Ferenc Kovacs | Date: | Thu, 30 Jul 2015 11:53:44 +0000 |
| Subject: | com php-src: removed another E_STRICT(with the approval of Derick), 3 more to go: ext/date/php _date.c ext/date/tests/gmmktime_basic.phpt ext/date /tests/mktime_error.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88246@lists.php.net to get a copy of this message | ||
Commit: 57247f01f74acf55cbe6fb2ee2c117d6db3848db
Author: Ferenc Kovacs <tyrael@php.net> Thu, 30 Jul 2015 13:53:44 +0200
Parents: 70a7221540567ed77dcc176b00e56bcbe1407d68
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=57247f01f74acf55cbe6fb2ee2c117d6db3848db
Log:
removed another E_STRICT(with the approval of Derick), 3 more to go
Changed paths:
M ext/date/php_date.c
M ext/date/tests/gmmktime_basic.phpt
M ext/date/tests/mktime_error.phpt
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 2f52353..52ce4b7 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 81abb5f..58777ef 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 eb1cc6e..9e3e872 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 --