Skip to content

Commit 57247f0

Browse files
committed
removed another E_STRICT(with the approval of Derick), 3 more to go
1 parent 70a7221 commit 57247f0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/date/php_date.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt)
15411541
now->h = hou;
15421542
break;
15431543
default:
1544-
php_error_docref(NULL, E_STRICT, "You should be using the time() function instead");
1544+
php_error_docref(NULL, E_DEPRECATED, "You should be using the time() function instead");
15451545
}
15461546
/* Update the timestamp */
15471547
if (gmt) {

ext/date/tests/gmmktime_basic.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ var_dump( gmmktime() );
3030
*** Testing gmmktime() : basic functionality ***
3131
int(1218182888)
3232

33-
Strict Standards: gmmktime(): You should be using the time() function instead in %s on line %d
33+
Deprecated: gmmktime(): You should be using the time() function instead in %s on line %d
3434
int(%d)
3535
===DONE===

ext/date/tests/mktime_error.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var_dump( mktime($hour, $minute, $sec, $month, $day, $year, $extra_arg) );
3434

3535
-- Testing mktime() function with Zero arguments --
3636

37-
Strict Standards: mktime(): You should be using the time() function instead in %s on line %d
37+
Deprecated: mktime(): You should be using the time() function instead in %s on line %d
3838
int(%d)
3939

4040
-- Testing mktime() function with more than expected no. of arguments --

0 commit comments

Comments
 (0)