#18917 [Opn->Fbk]: output buffer functions and errors in the script
| From: | sniper@php.net | Date: | Sat, 21 Sep 2002 17:06:10 +0000 |
| Subject: | #18917 [Opn->Fbk]: output buffer functions and errors in the script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19994@lists.php.net to get a copy of this message | ||
ID: 18917
Updated by: sniper@php.net
Reported By: ntpt@centrum.cz
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: RH 7.3
PHP Version: 4.2.2
New Comment:
Reopen when you have tried the snapshot.
Previous Comments:
------------------------------------------------------------------------
[2002-09-21 03:10:22] ntpt@centrum.cz
sorry, I am out of my box to ca 25 september 2002., so i can not
cooperate :(
------------------------------------------------------------------------
[2002-09-21 01:54:14] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2002-08-20 23:12:48] kalowsky@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-08-15 09:01:31] ntpt@centrum.cz
Error or Warnings in script, that use ob_start("callback") or
ob_get_contents() can cause buffer to be "cut off" or completly
crippled and filled with trash ....
ob_start("callback_func")
{
// main loop
do something here
output something here
}
function callback_func($buffer)
{
$result=do_something( $buffer);
return $result;
}
if some error or waring occures in main loop, content of the output
buffer may be
crippled, seems that ob_get_content() returns some short snipplet of
binary data only , in my case it is
ÁUð1À
ÒtÈB¸ûÿÿ
ÒuUèeô[^_]ÃWj or shortened ( not all
length of the output buffer is parsed to callback_func).
I have sugestion, how PHP should treat errors in the output_buffered
scripts.
If error occures in the main loop (not in the callback function) ,all
output of the script with error or waring messages appended SHOULD be
passed as parameter to callback_function...
If error occures inside the callback_function, SHOULD BE at least error
message send to browser.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18917&edit=1