php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10915 function get_cfg_var() returns inaccurate result
Submitted: 2001-05-16 21:51 UTC Modified: 2001-07-15 15:48 UTC
From: sprucely at hotmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.4 OS: Linux Mandrake 7.2
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: sprucely at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-05-16 21:51 UTC] sprucely at hotmail dot com
get_cfg_var('magic_quotes_gpc') accurately returns the setting from php.ini. But when that setting is overridden in a .htaccess file it still returns the setting from php.ini instead of the new setting in .htaccess.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-15 15:48 UTC] zeev@php.net
get_cfg_var() returns the value that was set in php.ini.  It's an old function from the PHP 3.0 times.

If you want to get the active value that is actually being used, use ini_get() instead.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 12:01:30 2024 UTC