Bug #70608 [NEW]: Echo dosn't print false
| From: | khaweronline at gmail dot com | Date: | Wed, 30 Sep 2015 12:48:35 +0000 |
| Subject: | Bug #70608 [NEW]: Echo dosn't print false | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-196313@lists.php.net to get a copy of this message | ||
From: khaweronline at gmail dot com
Operating system: ALL OS
PHP version: 5.6.13
Package: *General Issues
Bug Type: Bug
Bug description:Echo dosn't print false
Description:
------------
<?php
$a = 12;
$b = 15;
echo $a==$b; // This should output false or 0, but it didn't output
anything
var_dump($a==$b); /* This will output Boolean false. This is just for
reference that the value is false */
// We can also assign it to a variable then echo and var_dump
$c = $a==$b;
echo $c; // This should output false or 0, but it didn't output
anything
var_dump($c); /* This will output Boolean false. This is just for
reference that the value is false */
--
Edit bug report at https://bugs.php.net/bug.php?id=70608&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70608&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70608&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70608&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70608&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70608&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70608&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70608&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70608&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70608&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70608&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70608&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70608&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70608&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70608&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70608&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70608&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70608&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70608&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70608&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70608&r=mysqlcfg