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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-15 15:48 UTC]
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-2023 The PHP Group
All rights reserved.
Last updated: Thu Sep 28 05:01:24 2023 UTC