mirror of
https://github.com/php/php-src.git
synced 2024-12-24 01:09:58 +08:00
MFB
This commit is contained in:
parent
e94b3c8f88
commit
8957f06763
@ -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