ID: 25731
Comment by: marcin dot staniszczak at wp dot pl
Reported By: md5 at pf dot pl
Status: Bogus
Bug Type: Feature/Change Request
Operating System: *
PHP Version: *
New Comment:
Yes, but in ''?? 3.5d3 ok, but '3.5d3' too?? I thing it's fatal idea,
becouse it's provoke confilict wiht PHP 4.x.x-... I thing it's bug...
Previous Comments:
------------------------------------------------------------------------
[2003-10-03 18:02:05] chara at interia dot pl
I thing, this is new float format:
1d1 = 1*10^1 = 1e1
example:
if (('3.5d3' == 3500) AND ('3.5d3' == '3.5E+3') AND ('3.5e3' ==
'3.5E+3')) {
print('ok');
} else {
print('no');
}
output:
ok
ALL IS OK. This is new float format. :)
Greetings,
CHARA=>TOMeK
------------------------------------------------------------------------
[2003-10-02 16:02:39] [EMAIL PROTECTED]
Use either === or strcmp()
------------------------------------------------------------------------
[2003-10-02 15:59:36] marcin dot staniszczak at wp dot pl
:-)
$a = '1d1';
if($a == '1d1') print('ok');
if($a == '1e1') print('ok');
php output:
okok
'1d1' == '1e1' !?
next example:
if('1d1' == '1e1') print('ok');
output:
ok
last example:
if('1d1' == '1e1')
print('ok');
else
print('no');
output:
ok
I thing, should be: no
------------------------------------------------------------------------
[2003-10-02 10:39:16] [EMAIL PROTECTED]
I don't understand polish, but what I understood from the example, this
is bogus.
------------------------------------------------------------------------
[2003-10-02 10:22:42] md5 at pf dot pl
Description:
------------
na php5 otrzymuje dwa razy napis "ok"
$a = '1d1';
if($a == '1d1') print('ok');
if($a == '1e1') print('ok');
wyniak z tego ze:
'1d1' == '1e1'
i taki warunek:
if('1d1' == '1e1') print('ok');
takze pokazuje "ok"
Reproduce code:
---------------
if('1d1' == '1e1') print('ok');
else print('no');
Expected result:
----------------
powinno pojawic sie "no"
Actual result:
--------------
pojawia sie "ok"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25731&edit=1