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

Pull Requests

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: Thu Nov 28 10:01:29 2024 UTC