#28031 [Fbk->Opn]: Results of comparison differ by Windows and unix.
| From: | yiwakiri at st dot rim dot or dot jp | Date: | Mon, 19 Apr 2004 00:24:45 +0000 |
| Subject: | #28031 [Fbk->Opn]: Results of comparison differ by Windows and unix. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58340@lists.php.net to get a copy of this message | ||
ID: 28031
User updated by: yiwakiri at st dot rim dot or dot jp
Reported By: yiwakiri at st dot rim dot or dot jp
-Status: Feedback
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Windows 98
-PHP Version: 4.3.6
+PHP Version: 4.3.6, 4.3.7-dev
New Comment:
A snapshot is also the same behavior.
C:\>php -v
PHP 4.3.7-dev (cli) (built: Apr 17 2004 10:21:09)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
C:\>php -r "var_dump(('0d1' == '0d2'));"
bool(true)
Previous Comments:
------------------------------------------------------------------------
[2004-04-17 15:24:52] postings-php-bug at hans-spath dot de
[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]
hs@test:~/compile/php-4.3.6% sapi/cli/php -r "var_dump(('0d1' ==
'0d2'));"
bool(false)
------------------------------------------------------------------------
[2004-04-17 10:54:04] derick@php.net
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