summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerenc Kovacs <tyrael@php.net>2015-07-30 13:53:44 +0200
committerFerenc Kovacs <tyrael@php.net>2015-07-30 13:53:44 +0200
commit57247f01f74acf55cbe6fb2ee2c117d6db3848db (patch)
tree0d3bb6dd9fdaa64960c96e110df2ea889da9783b
parent70a7221540567ed77dcc176b00e56bcbe1407d68 (diff)
downloadphp-git-57247f01f74acf55cbe6fb2ee2c117d6db3848db.tar.gz
removed another E_STRICT(with the approval of Derick), 3 more to go
-rw-r--r--ext/date/php_date.c2
-rw-r--r--ext/date/tests/gmmktime_basic.phpt2
-rw-r--r--ext/date/tests/mktime_error.phpt2
3 files changed, 3 insertions, 3 deletions
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 --