From: andrew dot panin at nvkz dot net
Operating system: Windows 98 SE
PHP version: Irrelevant
PHP Bug Type: Output Control
Bug description: A simple comparision operation FAILS!
Description:
------------
Just look into the code!
Reproduce code:
---------------
<?php
$in="1234567";
$d = 0;
$d = 3*abs(strlen($in)/3 - floor(strlen($in)/3));
print $d;
//here $d=1, as it PHP print
if ($d == 1) { print "E"; }
//The "E" is NOT prints!
die();
?>
Expected result:
----------------
That the "E" will be shown.
Actual result:
--------------
NOTHING!!!
--
Edit bug report at http://bugs.php.net/?id=28515&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28515&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28515&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28515&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28515&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28515&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28515&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28515&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28515&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28515&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28515&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28515&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28515&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28515&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28515&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28515&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28515&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28515&r=float