minor improvement

This commit is contained in:
Antony Dovgal 2007-04-11 22:34:48 +00:00
parent e972fc1797
commit 8d20caa848
2 changed files with 9 additions and 3 deletions

View File

@ -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

View 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--