Re: Docs correction for ini_get()
| From: | Nuno Lopes | Date: | Wed, 07 Jul 2004 18:52:48 +0000 |
| Subject: | Re: Docs correction for ini_get() | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969361748@lists.php.net to get a copy of this message | ||
> The page for function ini_get()
(http://www.php.net/manual/en/function.ini-get.php) says:
>
> When querying boolean values: A boolean ini value of off will be
returned
> as an empty string while a boolean ini value of on will be returned as
"1".
>
> However, when I set boolean ini values using the php_flag directive in my
.htaccess file, ini_get() returns "0" for Off. I'm using PHP 4.3.4 (and
Apache 1.3.31).
I've tested this, and ini_get() returns '0' for PHP 4 and an empty string in
PHP 5. This seems to be a backward incompatible change. I'll contact dev
guys so that they explain whether this a bug or feature (and update the docs
where necessary.
Nuno
> Do you observe the same behavior?
>
> -- Alexander