]> granicus.if.org Git - php/commitdiff
minor improvement
authorAntony Dovgal <tony2001@php.net>
Wed, 11 Apr 2007 22:34:48 +0000 (22:34 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 11 Apr 2007 22:34:48 +0000 (22:34 +0000)
Zend/tests/bug40770.phpt
ext/date/tests/bug35885.phpt

index fd01303f7fc4685a95151bde0302093e2388f0c3..ce6bbbdaa9f56d54129a91f58b27fee95e443e58 100755 (executable)
@@ -1,7 +1,7 @@
 --TEST--
 Bug #40770 Apache child exits when PHP memory limit reached 
 --INI--
-memory_limit=64M
+memory_limit=8M
 --FILE--
 <?php
 ini_set('display_errors',true);
@@ -12,4 +12,4 @@ for ($i=0; $i<=$mb; $i++) {
 }
 ?>
 --EXPECTF--
-Fatal error: Allowed memory size of 67108864 bytes exhausted%s(tried to allocate %d bytes) in %sbug40770.php on line 6
+Fatal error: Allowed memory size of 8388608 bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
index 5f4e5d58cff05911bcbb9fa6d773dc7de91eb65a..60fc2ca69596263afd2fa61f9f5401240dd5182f 100644 (file)
@@ -7,7 +7,13 @@ date_default_timezone_set("UTC");
 $ts = date(DATE_ISO8601, strtotime('NOW'));
 $ts2 = date(DATE_ISO8601, time());
 
-var_dump($ts == $ts2);
+$res = ($ts == $ts2);
+var_dump($res);
+
+if (!$res) {
+       var_dump($ts);
+       var_dump($ts2);
+}
 
 ?>
 --EXPECT--