|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 + 26 = ?
Subscribe to this entry?

 [2003-05-06 15:46 UTC] chopin+phpbug at sgh dot waw dot pl
Trying to fetch I get crash, while 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 "" is (namebased) VirtualHost with DocumentRoot in user directory

Any script would do, simple echo "hello".

(gdb) bt
#0  0xef125448 in strlen () from /usr/lib/
#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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-14 11:03 UTC]
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-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 23:03:37 2021 UTC