Bug #4240: --without-config-file-path crashes PhpInfo();

From: Date: Wed, 26 Apr 2000 00:13:16 +0000
Subject: Bug #4240: --without-config-file-path crashes PhpInfo();
Groups: php.dev 
Request: Send a blank email to php-dev+get-18181@lists.php.net to get a copy of this message
From: elfchief+phpbug@lupine.org Operating system: SunOS eclipse 5.7 Generic_106542-10 i86pc i386 i86pc PHP version: 3.0.16 PHP Bug Type: Reproduceable crash Bug description: --without-config-file-path crashes PhpInfo(); It looks like compiling with --without-config-file-path makes PhpInfo() core dump. The relative part of the core: #0 0x80b3e51 in ap_bputs (x=0x0, fb=0x81856a4) at buff.c:1542 #1 0x80c1673 in ap_rputs (str=0x0, r=0x81dc644) at http_protocol.c:2381 #2 0x8065b75 in php3_puts (s=0x0) at main.c:196 #3 0x8092184 in _php3_info () at functions/info.c:144 #4 0x8093bbb in php3_info (ht=0x82a5f00, return_value=0x814c5d8, list=0x8164c00, plist=0x8165660) at functions/info.c:419 #5 0x80a5ab0 in phpparse () at control_structures_inline.h:929 #6 0x806781f in php3_parse (yyin=0x81652e0) at main.c:1540 #7 0x8067a52 in apache_php3_module_main (r=0x81dc644, fd=46, display_source_mode=0, preprocessed=0) at main.c:1899 ... and line 144 of functions.info.c is: PUTS(CONFIGURATION_FILE_PATH); An actual fix is left as an exercise for the reader.

« previous php.dev (#18181) next »