#44477 [NEW]: 1990!=1990

From: Date: Wed, 19 Mar 2008 12:18:42 +0000
Subject: #44477 [NEW]: 1990!=1990
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123461@lists.php.net to get a copy of this message
From:             ppalka3 at abacus dot pl
Operating system: linux
PHP version:      5.2.5
PHP Bug Type:     *General Issues
Bug description:  1990!=1990

Description:
------------
PHP Version 5.2.4

System 	Linux test2 2.6.19 #7 SMP PREEMPT Sun Dec 17 22:01:07 CET 2006
i686
Build Date 	Oct 16 2007 15:19:41
Configure Command 	'./configure' '--prefix=/usr/PHP5'
'--with-config-file-path=/usr/PHP5' '--sysconfdir=/usr/PHP5'
'--enable-track-vars' '--with-libxml-dir=/usr/include/libxml2'
'--with-xml'
'--enable-xslt' '--with-mysql=/usr/MYSQL_5.0.45'
'--with-mysql-sock=/tmp/mysql.sock' '--with-iconv'
'--with-jpeg-dir=/usr/lib/' '--enable-mbstring' '--enable-ftp'
'--with-gd'
'--with-zlib' '--with-gettext' '--enable-safe-mode'
'--with-curl=/usr/local/include/curl' '--with-apxs=/usr/Apache/bin/apxs'
'--with-mcrypt' '--with-imap=/usr/local/src/imap-2006k/'
'--without-krb5'

Reproduce code:
---------------
$pay=19.90;
$pay_grosze=$pay*100;
$zaplacono=1990;



if($zaplacono!=$pay_grosze)
{
	echo $zaplacono."!=".$pay_grosze;
}else
{
	echo $zaplacono."=".$pay_grosze;
}

Expected result:
----------------
1990=1990

Actual result:
--------------
1990!=1990

-- 
Edit bug report at http://bugs.php.net/?id=44477&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44477&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44477&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44477&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44477&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=44477&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44477&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44477&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44477&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44477&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44477&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=44477&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=44477&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44477&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44477&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44477&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44477&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44477&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44477&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44477&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44477&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#123461) next »