diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/date/php_date.c | 2 | ||||
| -rw-r--r-- | ext/date/tests/bug55407.phpt | 17 |
2 files changed, 1 insertions, 18 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 8a7aeae5ac..f8571b91b5 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -163,7 +163,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_date_create_from_format, 0, 0, 2) ZEND_ARG_INFO(0, format) ZEND_ARG_INFO(0, time) - ZEND_ARG_OBJ_INFO(0, object, DateTimeZone, 1) + ZEND_ARG_INFO(0, object) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_date_parse, 0, 0, 1) diff --git a/ext/date/tests/bug55407.phpt b/ext/date/tests/bug55407.phpt deleted file mode 100644 index 00c3356461..0000000000 --- a/ext/date/tests/bug55407.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -Bug #55407 (Impossible to prototype DateTime::createFromFormat) ---INI-- -error_reporting=-1 ---FILE-- -<?php namespace melt\core; - -class DateTime extends \DateTime { - public static function createFromFormat($format, $time, DateTimeZone $timezone = null) { - return new DateTime(parent::createFromFormat($format, $time, $timezone)); - } -} - -echo "DONE\n"; -?> ---EXPECTF-- -DONE |
