#32424 [Opn->Fbk]: no output is sent after calling ob_flush() after sending headers
| From: | sniper@php.net | Date: | Thu, 24 Mar 2005 17:38:59 +0000 |
| Subject: | #32424 [Opn->Fbk]: no output is sent after calling ob_flush() after sending headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77174@lists.php.net to get a copy of this message | ||
ID: 32424
Updated by: sniper@php.net
Reported By: tommythekid at mac dot com
-Status: Open
+Status: Feedback
Bug Type: iPlanet related
Operating System: Solaris 9 SPARC
PHP Version: 5.0.3
New Comment:
Try using this configure option:
--disable-inline-optimization
Previous Comments:
------------------------------------------------------------------------
[2005-03-24 08:03:57] tommythekid at mac dot com
php-5.0.3 compiles cleanly with the same exact configure line :( ..
php5-200503240330 errors like below:
/bin/sh /var/tmp/php5-200503240330/libtool --silent --preserve-dup-deps
--mode=compile /var/tmp/php5-200503240330/meta_ccld -IZend/
-I/var/tmp/php5-200503240330/Zend/ -DPHP_ATOM_INC
-I/var/tmp/php5-200503240330/include -I/var/tmp/php5-200503240330/main
-I/var/tmp/php5-200503240330 -I/opt/SUNWwbsvr/plugins/include
-I/usr/local/include/libxml2 -I/usr/local/mysql/include
-I/var/tmp/php5-200503240330/TSRM -I/var/tmp/php5-200503240330/Zend
-D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g
-O2 -pthreads -DZTS -c
/var/tmp/php5-200503240330/Zend/zend_reflection_api.c -o
Zend/zend_reflection_api.lo
/bin/sh /var/tmp/php5-200503240330/libtool --silent --preserve-dup-deps
--mode=compile /var/tmp/php5-200503240330/meta_ccld -IZend/
-I/var/tmp/php5-200503240330/Zend/ -DPHP_ATOM_INC
-I/var/tmp/php5-200503240330/include -I/var/tmp/php5-200503240330/main
-I/var/tmp/php5-200503240330 -I/opt/SUNWwbsvr/plugins/include
-I/usr/local/include/libxml2 -I/usr/local/mysql/include
-I/var/tmp/php5-200503240330/TSRM -I/var/tmp/php5-200503240330/Zend
-D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g
-O2 -pthreads -DZTS -c /var/tmp/php5-200503240330/Zend/zend_execute.c
-o Zend/zend_execute.lo
/usr/ccs/bin/as: "/var/tmp//cc3rGt9t.s": error: symbol "zend_error" is
used but not defined
/usr/ccs/bin/as: "/var/tmp//cc3rGt9t.s": internal error:
evaluate_symbol_expression(): op 20?
gmake: *** [Zend/zend_execute.lo] Error 1
[root@dccmail php5-200503240330]#
------------------------------------------------------------------------
[2005-03-23 23:47:03] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-03-23 10:34:53] tommythekid at mac dot com
Description:
------------
no output is sent after calling ob_flush() after sending headers. This
problem appears to be NSAPI related. Removing the first ob_flush() from
the code produces the expected results.
Reproduce code:
---------------
while (ob_end_clean());
ob_start();
header("X-Foo: BAR");
ob_flush();
flush();
echo "PRE\n\n";
ob_flush();
flush();
echo "POST\n\n";
ob_flush();
flush();
Expected result:
----------------
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Wed, 23 Mar 2005 09:31:45 GMT
Content-type: text/html
X-powered-by: PHP/5.0.3
X-foo: BAR
Connection: close
PRE
POST
Actual result:
--------------
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Wed, 23 Mar 2005 09:24:38 GMT
Content-type: text/html
X-powered-by: PHP/5.0.3
X-foo: BAR
Connection: close
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32424&edit=1