php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54206 Crash with empty user_ini.filename inside a [PATH] section
Submitted: 2011-03-09 16:24 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.5 OS: Windows
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
3 + 15 = ?
Subscribe to this entry?

 
 [2011-03-09 16:24 UTC] carsten_sttgt at gmx dot de
Description:
------------
The crash happens with PHP CGI if you are setting user_ini.filename inside a PATH section to none. The PATH section is for the current script.

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

In addition, this only happens with PHP5.3.5, but not with PHP5.3.6RC2 (see Bug #54204).


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

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



Expected result:
----------------
user_ini.filename	no value	.user.ini
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-11-15 23:49 UTC] felipe@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2011-11-15 23:49 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [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: Thu Jul 07 10:05:46 2022 UTC