|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-28 14:34 UTC] andi at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Apache crashes with a 500 Internal Server Error whenever a cgi script using php4 is run. The error log contains: Premature end of script headers: /web/jamus/www/test3.cgi. It also produces a core file, a back trace is attached. Script runs fine when run at command prompt. Running same script with php3 also works. Backtrace: #0 _mem_block_check (ptr=0x0, silent=1, __zend_filename=0x80f0f80 "zend_hash.c", __zend_lineno=535, __zend_orig_filename=0x0, __zend_orig_lineno=0) at zend_alloc.c:483 #1 0x808dc80 in _efree (ptr=0x0, __zend_filename=0x80f0f80 "zend_hash.c", __zend_lineno=535, __zend_orig_filename=0x0, __zend_orig_lineno=0) at zend_alloc.c:170 #2 0x809b166 in zend_hash_destroy (ht=0x8128ce4) at zend_hash.c:535 #3 0x805d8bd in php_rshutdown_basic (type=1, module_number=2) at basic_functions.c:701 #4 0x8098c3e in module_registry_cleanup (module=0x81451a0) at zend_API.c:852 #5 0x809b3ff in zend_hash_apply (ht=0x812b2a0, apply_func=0x8098c18 <module_registry_cleanup>) at zend_hash.c:655 #6 0x8098670 in zend_deactivate () at zend.c:468 #7 0x8086f0e in php_request_shutdown (dummy=0x0) at main.c:695 #8 0x805d0b5 in main (argc=2, argv=0xbffffc24) at cgi_main.c:622 #9 0x400facb3 in __libc_start_main () Configured with: ./configure --prefix=/web/jamus/php Test script: #!/web/jamus/php/bin/php <html> <body> hello <?php echo "hello";?> </body> </html>