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
 [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: Sat Apr 20 00:01:27 2024 UTC