#28031 [Com]: Results of comparison differ by Windows and unix.

From: Date: Sat, 17 Apr 2004 13:24:55 +0000
Subject: #28031 [Com]: Results of comparison differ by Windows and unix.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58294@lists.php.net to get a copy of this message
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] hs@test:~/compile/php-4.3.6% sapi/cli/php -r "var_dump(('0d1' == '0d2'));" bool(false) Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#58294) next »