Bug or Feature: ini_get() return value
| From: | Ian Thurlbeck | Date: | Wed, 01 May 2002 16:06:04 +0000 |
| Subject: | Bug or Feature: ini_get() return value | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-83551@lists.php.net to get a copy of this message | ||
Dear All
Is this a bug or a feature?
Tested on Apache 1.3.22 + PHP 4.1.2 and
Apache 2.0.35 + PHP 4.2.0RC4
With php.ini setting "some_var=On" I get the following:
ini_get("some_var") returns 1
Fair enough.
If you set "some_var=Off" the results are:
ini_get("some_var") returns ""
i.e. ini_get() returns an empty string or undefined or something, whereas I
was expecting "0" - is this a bug?
Many thanks
Ian
--
Ian Thurlbeck http://www.stams.strath.ac.uk/
Statistics and Modelling Science, University of Strathclyde
Livingstone Tower, 26 Richmond Street, Glasgow, UK, G1 1XH
Tel: +44 (0)141 548 3667 Fax: +44 (0)141 552 2079