version 1.1.1.1, 2012/02/21 23:48:06
|
version 1.1.1.2, 2012/05/29 12:34:34
|
Line 10 function callback($string) {
|
Line 10 function callback($string) {
|
|
|
ob_start('callback', 0, false); |
ob_start('callback', 0, false); |
|
|
echo "This call will fail to obtain the content, since it is also requesting a clean:\n"; | echo "This call will obtain the content, but will not clean the buffer."; |
$str = ob_get_clean(); |
$str = ob_get_clean(); |
var_dump($str); |
var_dump($str); |
?> |
?> |
--EXPECTF-- |
--EXPECTF-- |
[callback:1]This call will fail to obtain the content, since it is also requesting a clean: | [callback:1]This call will obtain the content, but will not clean the buffer. |
| Notice: ob_get_clean(): failed to discard buffer of callback (0) in %s on line 11 |
|
|
Notice: ob_get_clean(): failed to delete buffer callback in %s on line 11 | Notice: ob_get_clean(): failed to delete buffer of callback (0) in %s on line 11 |
bool(false) | string(65) "This call will obtain the content, but will not clean the buffer." |
|
|