|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesfix (last revision 2011-08-11 23:36 UTC by felipe@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-11 20:52 UTC] landeholm at gmail dot com
[2011-08-11 23:14 UTC] pierrick@php.net
-Package: Scripting Engine problem
+Package: Date/time related
-Assigned To:
+Assigned To: derick
[2011-08-11 23:14 UTC] pierrick@php.net
[2011-08-11 23:36 UTC] felipe@php.net
[2015-01-20 21:44 UTC] derick@php.net
[2015-01-20 21:44 UTC] derick@php.net
-Status: Assigned
+Status: Closed
[2015-02-04 16:41 UTC] jpauli@php.net
[2015-02-04 16:41 UTC] jpauli@php.net
[2015-02-04 16:42 UTC] jpauli@php.net
[2015-02-04 16:50 UTC] jpauli@php.net
[2015-02-05 09:02 UTC] jpauli@php.net
[2015-06-12 16:00 UTC] ab@php.net
-Status: Closed
+Status: Re-Opened
[2015-06-12 16:00 UTC] ab@php.net
[2017-01-17 15:36 UTC] heiglandreas@php.net
-Status: Re-Opened
+Status: Not a bug
[2017-01-17 15:36 UTC] heiglandreas@php.net
[2017-06-02 22:11 UTC] nikic@php.net
[2017-06-02 22:11 UTC] nikic@php.net
-Status: Not a bug
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
Description: ------------ Hello, I'm creating an extended DateTime for my framework. The test script below gives "E_STRICT: Declaration of melt\core\DateTime::createFromFormat() should be compatible with that of DateTime::createFromFormat()" even though it's declared exactly as documented. Also removing all the arguments what so ever doesn't make this problem go away so it's impossible to prototype DateTime::createFromFormat without getting this error. Test script: --------------- <?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)); } } Expected result: ---------------- The class being declared as it should. Actual result: -------------- E_STRICT: Declaration of melt\core\DateTime::createFromFormat() should be compatible with that of DateTime::createFromFormat()