ID:               35020
 Updated by:       [EMAIL PROTECTED]
-Summary:          array with zero elements
 Reported By:      artg at bk dot ru
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: Windows 2000
 PHP Version:      Irrelevant
 New Comment:

English version is right, maybe the translation is wrong:
http://www.php.net/manual/ru/language.types.boolean.php#language.types.boolean.casting


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to