php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23514 doing strlen on NULL script_path_translated
Submitted: 2003-05-06 15:46 UTC Modified: 2003-05-14 11:06 UTC
From: chopin+phpbug at sgh dot waw dot pl Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 4.3.2RC2 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chopin+phpbug at sgh dot waw dot pl
New email:
PHP Version: OS:

 

 [2003-05-06 15:46 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-14 11:03 UTC] 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-14 11:05 UTC] chopin+phpbug at sgh dot waw dot pl
Oh, I'm sorry.

Yes, the provided snapshot fixed it.
 [2003-05-14 11:06 UTC] chopin+phpbug at sgh dot waw dot pl
Oh, I'm sorry.

Yes, the provided snapshot fixed it.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 16:01:23 2020 UTC