php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54203 Crash with global empty user_ini.filename and [PATH] section
Submitted: 2011-03-09 16:09 UTC Modified: 2013-02-18 00:34 UTC
From: carsten_sttgt at gmx dot de Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.3.6RC3 OS: Windows
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: carsten_sttgt at gmx dot de
New email:
PHP Version: OS:

 

 [2011-03-09 16:09 UTC] carsten_sttgt at gmx dot de
Description:
------------
Ok, Pierre was writing this is a separate issue then #54197. So I'm opening a new one. 

The crash happens with PHP CGI if you are setting user_ini.filename at global level to none. And you must also have a PATH section for the current script.

This only happens with Windows. With *nix it's working as expected.

Test script:
---------------
adding this to "php.ini":
user_ini.filename =
[PATH=C:/Users/Public/Documents/htdocs/]
upload_max_filesize = 5M

And then accessing a phpinfo.php through CGI.
<?php
phpinfo();
?>


Expected result:
----------------
user_ini.filename	no value	no value
upload_max_filesize	5M		2M


Actual result:
--------------
php-cgi is crashing.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-11 09:25 UTC] carsten_sttgt at gmx dot de
-PHP Version: 5.3.6RC2 +PHP Version: 5.3.6RC3
 [2011-03-11 09:25 UTC] carsten_sttgt at gmx dot de
Still exists in 5.3.6RC3
 [2011-06-13 02:56 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2011-06-13 02:56 UTC] felipe@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot 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.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 17:05:52 2022 UTC