php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1573 php3.ini settings wont be used
Submitted: 1999-06-20 17:52 UTC Modified: 1999-11-14 04:03 UTC
From: roland at virtual dot ch Assigned:
Status: Closed Package: Other
PHP Version: 3.0.7 OS: FreeBSD 3.1 / Apache 1.36
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: roland at virtual dot ch
New email:
PHP Version: OS:

 

 [1999-06-20 17:52 UTC] roland at virtual dot ch
Settings in php3.ini wont be used at all if the directory 
where php3.ini resides is not listed in the open_basedir.
The file gets parsed but the settings are thrown away.

Seems very strange but is reproducable if PHP3 is used
as module. Had no such problems when using the PHP-CGI.
I have disabled everything except the mySQL-Module.


Also, after reading some source while debugging this, 
the define in acconfig.h:

/* #define CONFIGURATION_FILE_PATH "php3.ini" */

should be:

#define CONFIGURATION_FILE_PATH "."

because this define is used as _path_ and the filename
'php3.ini' is hardcoded in configuration-parser.y


thanks an keep your good work up !

Roland

btw:
Could not check this on 3.08/09 because mySQL wont work 
in the PHP-Module with Apache 1.36 (Segfault)

Patches

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 19:01:28 2025 UTC