#23514 [NoF->Opn]: doing strlen on NULL script_path_translated
| From: | chopin+phpbug at sgh dot waw dot pl | Date: | Wed, 14 May 2003 16:05:39 +0000 |
| Subject: | #23514 [NoF->Opn]: doing strlen on NULL script_path_translated | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39649@lists.php.net to get a copy of this message | ||
ID: 23514
User updated by: chopin+phpbug at sgh dot waw dot pl
Reported By: chopin+phpbug at sgh dot waw dot pl
-Status: No Feedback
+Status: Open
Bug Type: CGI related
Operating System: Solaris 2.6
PHP Version: 4.3.2RC2
New Comment:
Oh, I'm sorry.
Yes, the provided snapshot fixed it.
Previous Comments:
------------------------------------------------------------------------
[2003-05-14 11:03:37] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-05-06 18:28:07] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-05-06 15:46:59] chopin+phpbug at sgh dot waw dot pl
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 this bug report at http://bugs.php.net/?id=23514&edit=1