ID: 20838
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Feedback
+Status: Open
Bug Type: Output Control
Operating System: Redhat Linux 7.1
PHP Version: 4.2.3
New Comment:
Haven't had time to test against the latest, but I have a simple
testcase:
<?php
function obfunc($s) {
$s = str_replace('foo', 'bar', $s);
return $s;
}
ob_start('obfunc');
print('this is really foo bar baz wat');
?>
-- basically, any modification to the incoming data in-place, instead
of copying to a new variable causes a hang.
Previous Comments:
------------------------------------------------------------------------
[2002-12-05 15:29:54] [EMAIL PROTECTED]
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-12-05 15:22:41] [EMAIL PROTECTED]
I think that Bug #11346 applies to 4.2.3 as well, and #17672 as well.
I have a script using lots of output-buffer functions that seems to
hang, eating 100% CPU, and occasionally truncates output.
The error log shows:
[Thu Dec 5 14:08:42 2002] [error] PHP Fatal error: Maximum execution
time of 30 seconds exceeded in Unknown on line 0
for each process, and there are several HTTP processes running
full-tilt, executing no system nor library calls. (strace and ltrace
show nothing).
Configure Command './configure' '--sysconfdir=/etc/httpd'
'--with-mysql=/src/mysql/mysql-404-php' '--with-snmp' '--with-gd'
'--with-jpeg-dir=/src/jpeg/jpeg-6b'
'--with-png-dir=/src/png/libpng-1.0.12'
'--with-zlib-dir=/src/zlib/zlib-1.1.3' '--with-gdbm' '--with-db3'
'--enable-ftp' '--with-imap' '--enable-sockets' '--with-kerberos'
'--with-imap-ssl' '--with-openssl' '--cache-file=/dev/null'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-xmlrpc'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20838&edit=1