From:             php dot net at b-a-l-u dot de
Operating system: Linux
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  ini_get returns 0 not "" for boolean?

Description:
------------
http://www.php.net/manual/en/function.ini-get.php 
tells me that

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

But
echo '['.ini_get('register_globals').']';

displays '[0]' not '[]'?

At least this is the behaviour I have with php-4.1.2 on debian woody.

     Balu
PS: It'd be nice to add the hint of "beyer at <nospam>clickhand dot de"
from the notes on that page regarding casting the value using (bool) to
the main description.


-- 
Edit bug report at http://bugs.php.net/?id=25865&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25865&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25865&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25865&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25865&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25865&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25865&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25865&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25865&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25865&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25865&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25865&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25865&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25865&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25865&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25865&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25865&r=float

Reply via email to