mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
minor improvement
This commit is contained in:
parent
e972fc1797
commit
8d20caa848
@ -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
|
||||
|
@ -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--
|
||||
|
Loading…
Reference in New Issue
Block a user