"get_magic_quotes_gpc" & get_cfg_var

From: Date: Fri, 18 Feb 2000 11:38:57 +0000
Subject: "get_magic_quotes_gpc" & get_cfg_var
Groups: php.version4 
Request: Send a blank email to php-version4+get-10441@lists.php.net to get a copy of this message
Hi, Just wondering about something I find a little weird in the php-API : magic_quotes_gpc and magic_quotes_sybase are both configuration parameters. But the way to get their current value is not the same : One have to use get_magic_quotes_gpc() for the first one and get_cfg_var('magic_quotes_sybase') for the other (as well as all other config vars except magic_quotes_runtime). Both are of the type zend_bool : --- $ grep magic php_globals.h zend_bool magic_quotes_gpc; zend_bool magic_quotes_runtime; zend_bool magic_quotes_sybase; --- So, why ? Any clues ? Just trying to understand, Flavien Lebarbé.

« previous php.version4 (#10441) next »