#23514 [NEW]: doing strlen on NULL script_path_translated
| From: | chopin+phpbug at sgh dot waw dot pl | Date: | Tue, 06 May 2003 20:46:59 +0000 |
| Subject: | #23514 [NEW]: doing strlen on NULL script_path_translated | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39175@lists.php.net to get a copy of this message | ||
From: chopin+phpbug at sgh dot waw dot pl
Operating system: Solaris 2.6
PHP version: 4.3.2RC2
PHP Bug Type: Reproducible crash
Bug description: doing strlen on NULL script_path_translated
Trying to fetch http://freedns.sgh.waw.pl/ I get crash,
while
http://freedns.sgh.waw.pl/index.php everything
works as expected. Of
course the first one should work exactly as the latter. (And it did until
I recompiled PHP.)
HTTP daemon is Apache 1.3.27
DirectoryIndex contains index.php
PHP is run as CGI via AddHandler cgi-script
This "freedns.sgh.waw.pl" is (namebased) VirtualHost with DocumentRoot in
user directory
Any script would do, simple echo "hello".
(gdb) bt
#0 0xef125448 in strlen () from /usr/lib/libc.so.1
#1 0x12823c in _estrdup (s=0x0)
at /services/apache/src/php-4.3.2RC2/Zend/zend_alloc.c:363
#2 0x150a5c in init_request_info ()
at /services/apache/src/php-4.3.2RC2/sapi/cgi/cgi_main.c:709
#3 0x1510d0 in main (argc=2, argv=0xeffffac4)
at /services/apache/src/php-4.3.2RC2/sapi/cgi/cgi_main.c:1238
(gdb) fr 2
(gdb) p script_path_translated
$6 = 0x0
Adding "cgi.fix_pathinfo = false" to php.ini fixed things.
--
Edit bug report at http://bugs.php.net/?id=23514&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23514&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23514&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23514&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23514&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23514&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23514&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23514&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23514&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23514&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23514&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23514&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23514&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23514&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23514&r=gnused