php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #740 get_cfg_var() does not get configuration values overriden by Apache directives
Submitted: 1998-09-12 22:47 UTC Modified: 1998-09-13 21:42 UTC
From: mlemos at acm dot org Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Final Release OS:
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: mlemos at acm dot org
New email:
PHP Version: OS:

 

 [1998-09-12 22:47 UTC] mlemos at acm dot org
get_cfg_var() does not get configuration values overriden by PHP Apache
directives.

For instance, if you set have php3_include_path to one value in .htaccess
or with Apache <Directory> directives, the include_path setting will work
but get_cfg_var("include_path") will still get the value set in php.ini
file, even when you work with PHP as Apache module.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-13 21:42 UTC] zeev
This is the intended behavior.  get_cfg_var() returns
values from the php3.ini file only.

Additional functions that give additional functionality
will be introduced in version 3.1.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 06:00:01 2026 UTC