ID: 35020 Updated by: [EMAIL PROTECTED] Reported By: artg at bk dot ru -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Windows 2000 PHP Version: Irrelevant New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Duplicates http://bugs.php.net/bug.php?id=34791 Previous Comments: ------------------------------------------------------------------------ [2005-10-31 08:57:57] [EMAIL PROTECTED] English version is right, maybe the translation is wrong: http://www.php.net/manual/ru/language.types.boolean.php#language.types.boolean.casting ------------------------------------------------------------------------ [2005-10-30 09:36:08] artg at bk dot ru Description: ------------ "When converting to boolean, the following values are considered FALSE: ... an array with zero elements" May be the real meaning was "an array without elements"? May be in english it is the same, but for example in russian it isn't. Reproduce code: --------------- <?php $i=array(0); var_dump((bool)$i); ?> Expected result: ---------------- (bool)false Actual result: -------------- (bool)true ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35020&edit=1
