Bug #18294 Updated: May be "Type Juggling" problems
| From: | sitnikov at infonet dot ee | Date: | Sun, 14 Jul 2002 06:13:54 +0000 |
| Subject: | Bug #18294 Updated: May be "Type Juggling" problems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14120@lists.php.net to get a copy of this message | ||
ID: 18294
Updated by: sitnikov@infonet.ee
Reported By: sitnikov@infonet.ee
-Status: Feedback
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.2.1
New Comment:
Why not "Type Juggling" for boolean ?
Previous Comments:
------------------------------------------------------------------------
[2002-07-13 18:26:10] derick@php.net
What is the bug here?
It shows this for me, which is perfectly normal:
bool(false)
string(0) ""
bool(false)
string(1) "1"
bool(false)
int(2)
bool(false)
int(3)
bool(false)
int(4)
bool(false)
int(5)
bool(false)
int(6)
bool(false)
int(7)
bool(false)
int(8)
bool(false)
int(9)
------------------------------------------------------------------------
[2002-07-12 04:00:07] sitnikov@infonet.ee
<?
$b = false;
$s = '';
for($j=0;$j<10;$j++)
{
var_dump($b);
var_dump($s);
echo "\n";
$b++;
$s++;
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18294&edit=1