1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00

Fix two date tests

New behavior seems much more reasonable - nothing should be able
to touch the $this value like that.
This commit is contained in:
Nikita Popov
2014-10-03 21:49:44 +02:00
parent 5831cca957
commit 4e33f40445
2 changed files with 11 additions and 3 deletions
+2 -1
View File
@@ -23,4 +23,5 @@ class mydt extends datetime
new mydt("Funktionsansvarig rådgivning och juridik", "UTC");
?>
--EXPECTF--
Fatal error: Call to a member function format() on null in %sbug67118.php on line %d
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in %s on line %d
Bad date
+9 -2
View File
@@ -24,5 +24,12 @@ Done
--EXPECTF--
First try
Second try
NULL
Done
object(Foo)#1 (3) {
["date"]=>
string(26) "2007-09-12 15:49:12.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "UTC"
}
Done