mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
- fix tests
This commit is contained in:
parent
d96f225a15
commit
c4e3b71acc
@ -25,7 +25,7 @@ print_r(ob_get_status());
|
||||
print_r(ob_get_status(true));
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
foo
|
||||
Array
|
||||
(
|
||||
@ -41,7 +41,7 @@ Array
|
||||
[type] => 1
|
||||
[flags] => 4209
|
||||
[level] => 4
|
||||
[chunk_size] => 0
|
||||
[chunk_size] => %d
|
||||
[buffer_size] => 16384
|
||||
[buffer_used] => 96
|
||||
)
|
||||
@ -53,7 +53,7 @@ Array
|
||||
[type] => 0
|
||||
[flags] => 112
|
||||
[level] => 0
|
||||
[chunk_size] => 0
|
||||
[chunk_size] => %d
|
||||
[buffer_size] => 16384
|
||||
[buffer_used] => 0
|
||||
)
|
||||
@ -64,7 +64,7 @@ Array
|
||||
[type] => 1
|
||||
[flags] => 113
|
||||
[level] => 1
|
||||
[chunk_size] => 0
|
||||
[chunk_size] => %d
|
||||
[buffer_size] => 16384
|
||||
[buffer_used] => 0
|
||||
)
|
||||
@ -75,7 +75,7 @@ Array
|
||||
[type] => 1
|
||||
[flags] => 113
|
||||
[level] => 2
|
||||
[chunk_size] => 0
|
||||
[chunk_size] => %d
|
||||
[buffer_size] => 16384
|
||||
[buffer_used] => 0
|
||||
)
|
||||
@ -86,7 +86,7 @@ Array
|
||||
[type] => 1
|
||||
[flags] => 113
|
||||
[level] => 3
|
||||
[chunk_size] => 0
|
||||
[chunk_size] => %d
|
||||
[buffer_size] => 16384
|
||||
[buffer_used] => 4
|
||||
)
|
||||
@ -97,9 +97,9 @@ Array
|
||||
[type] => 1
|
||||
[flags] => 4209
|
||||
[level] => 4
|
||||
[chunk_size] => 0
|
||||
[chunk_size] => %d
|
||||
[buffer_size] => 16384
|
||||
[buffer_used] => 248
|
||||
[buffer_used] => %d
|
||||
)
|
||||
|
||||
)
|
||||
|
@ -1,15 +0,0 @@
|
||||
--TEST--
|
||||
output buffering - memory exhaustion (segv, memory_limit>200k)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
function_exists("memory_get_usage") or die("skip need --enable-memory-limit\n");
|
||||
?>
|
||||
--INI--
|
||||
output_buffering=1
|
||||
memory_limit=500k
|
||||
--FILE--
|
||||
<?php
|
||||
while(true) echo "foo";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Allowed memory size of %d bytes exhausted at %s:%d (tried to allocate %d bytes) in %s on line %d
|
Loading…
Reference in New Issue
Block a user