|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-06 19:16 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 19:00:01 2025 UTC |
Description: ------------ Floating point should have equal treatment of whole number in this example? Sorry, I am using translator. Reproduce code: --------------- $teste=4.1;//$teste='4.1'; $confere=array(4=>''); if(isset($confere[$teste])){echo 'BUG';}else{echo 'NO BUG';} Expected result: ---------------- NO BUG Actual result: -------------- BUG