Markus Fischer wrote: > On Thu, Sep 19, 2002 at 06:27:55PM +0900, Yasuo Ohgaki wrote : > >>Let's discourage usage of phps in the manual while adding new feature. > > > Wait, stop. First hand over the related bug IDs, couldn't > find it only be text searching which you were refering to in > an earlier post, before we attempt to take over the world > again... >
I don't recall bug ID, but here is the backtrace. The cause would be output buffer and zend_printf does not work well together. Enabling any buffer segfualt php when phps is used. We may be able to disable output buffer in Apche SAPI according to mime type. If so, we can solve this segfualt at least. Encoding issue remains, but we can live with that hopefully. -- Yasuo Ohgaki (gdb) run -X Program received signal SIGSEGV, Segmentation fault. 0x403eb6c6 in sapi_apache_header_handler () from /usr/local/apache/libexec/libphp4.so (gdb) bt #0 0x403eb6c6 in sapi_apache_header_handler () from /usr/local/apache/libexec/libphp4.so #1 0x403ab8e3 in sapi_header_op () from /usr/local/apache/libexec/libphp4.so #2 0x403aba24 in sapi_send_headers () from /usr/local/apache/libexec/libphp4.so #3 0x4033be86 in php_header () from /usr/local/apache/libexec/libphp4.so #4 0x403b57a3 in php_ub_body_write () from /usr/local/apache/libexec/libphp4.so #5 0x403b4093 in php_end_ob_buffer () from /usr/local/apache/libexec/libphp4.so #6 0x403b4f9a in php_end_ob_buffers () from /usr/local/apache/libexec/libphp4.so #7 0x403a595f in php_request_shutdown () from /usr/local/apache/libexec/libphp4.so #8 0x403ec6a6 in php_apache_request_shutdown () from /usr/local/apache/libexec/libphp4.so #9 0x8055c69 in run_cleanups () at eval.c:41 #10 0x80534b2 in ap_destroy_pool () at eval.c:41 #11 0x8054aa0 in ap_clear_pool () at eval.c:41 #12 0x8060b92 in child_main () at eval.c:41 #13 0x806137f in make_child () at eval.c:41 #14 0x8061b11 in standalone_main () at eval.c:41 #15 0x80624f2 in main () at eval.c:41 #16 0x401056b0 in __libc_start_main (main=0x8062100 <main>, argc=2, ubp_av=0xbffff8b4, init=0x804e2b8 <_init>, fini=0x807b3a0 <_fini>, rtld_fini=0x4000d6b0 <_dl_fini>, stack_end=0xbffff8ac) at ../sysdeps/generic/libc-start.c:129 (gdb) -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php