ID: 28031
Comment by: postings-php-bug at hans-spath dot de
Reported By: yiwakiri at st dot rim dot or dot jp
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Windows 98
PHP Version: 4.3.6
New Comment:
[Windows XP Pro SP1]
D:\PHP>4.3.2\php-cli -r "var_dump(('0d1' == '0d2'));"
bool(true)
D:\PHP>4.3.3\php-cli -r "var_dump(('0d1' == '0d2'));"
bool(true)
D:\PHP>4.3.4\php-cli -r "var_dump(('0d1' == '0d2'));"
bool(true)
D:\PHP>4.3.6\php-cli -r "var_dump(('0d1' == '0d2'));"
bool(true)
D:\PHP>php4-win32-STABLE-latest\php-cli -r "var_dump(('0d1' ==
'0d2'));"
bool(true)
D:\PHP>php4-win32-STABLE-latest\php-cli -v
PHP 4.3.7-dev (cli) (built: Apr 17 2004 14:18:37)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[Linux 2.6.5]
[EMAIL PROTECTED]:~/compile/php-4.3.6% sapi/cli/php -r "var_dump(('0d1' ==
'0d2'));"
bool(false)
Previous Comments:
------------------------------------------------------------------------
[2004-04-17 10:54:04] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2004-04-16 20:05:20] yiwakiri at st dot rim dot or dot jp
Description:
------------
The results of comparison differ by Windows and unix.
Windows:
c:\> php -r "var_dump(('0d1' == '0d2'));"
bool(true)
Unix like OS:
% php -r "var_dump(('0d1' == '0d2'));"
bool(false)
I expect the same behavior for both.
Reproduce code:
---------------
c:\> php -r "var_dump(('0d1' == '0d2'));"
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28031&edit=1