#22165 [Opn->Fbk]: output inside custom error handling function doubles.
| From: | sniper@php.net | Date: | Tue, 11 Feb 2003 15:59:18 +0000 |
| Subject: | #22165 [Opn->Fbk]: output inside custom error handling function doubles. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32776@lists.php.net to get a copy of this message | ||
ID: 22165
Updated by: sniper@php.net
Reported By: congo@justnet.lt
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: 4.7-STABLE FreeBSD
PHP Version: 4.3.0
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-02-11 05:47:29] congo@justnet.lt
It seems that PHP versions 4.3.0 and 4.2.3 (mod_php) doubles output
buffer inside cusom error handling function.
Let's take simple error handling script:
<?php
function error_handler($errno, $errstr, $errfile,
$errline,$errcontext)
{
echo "123";
echo "abc";
}
set_error_handler('error_handler');
pg_query('asdf'); // let's trigger error;
?>
I get output "123abc123abc".
Testet on serveral servers/configurations.
my compile options:
Configure Command './configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-regex=system' '--without-gd' '--without-mysql'
'--with-gd=/usr/local' '--enable-gd-native-ttf'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-zlib' '--with-bz2=/usr'
'--with-mcrypt=/usr/local' '--with-mhash=/usr/local'
'--with-pdflib=/usr/local' '--with-zlib-dir=/usr'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-tiff-dir=/usr/local' '--with-mysql=/usr/local'
'--with-pgsql=/usr/local' '--with-openssl=/usr'
'--with-snmp=/usr/local' '--enable-ucd-snmp-hack'
'--with-openssl=/usr'
'--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-ftp'
'--with-curl=/usr/local' '--with-gettext=/usr/local'
'--enable-sockets'
'--enable-trans-sid' '--with-iconv=/usr/local' '--prefix=/usr/local'
'i386-portbld-freebsd4.7'
flushing buffer before/after triggering error or before/after the err
handling ouput doesn't help.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22165&edit=1