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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 23:01:30 2024 UTC