From:             dondanielsgh at yahoo dot com
Operating system: windows
PHP version:      5.5.1
Package:          PHP options/info functions
Bug Type:         Bug
Bug description:08 and 8 are not the same and 09 and 9 are also not the same

Description:
------------
$x = 07;
if($x == 7){
echo 'correct';
}else{
echo 'they are not the same';
}

$x = 08;
if($x == 8){
echo 'correct';
}else{
echo 'they are not the same';
}

$x = 09;
if($x == 9){
echo 'correct';
}else{
echo 'they are not the same';
}

Test script:
---------------
$x = 07;
if($x == 7){
echo 'correct';
}else{
echo 'they are not the same';
}

$x = 08;
if($x == 8){
echo 'correct';
}else{
echo 'they are not the same';
}

$x = 09;
if($x == 9){
echo 'correct';
}else{
echo 'they are not the same';
}

Expected result:
----------------
$x = 08;
if($x == 8){
echo 'correct';
}else{
echo 'they are not the same';
}

$x = 09;
if($x == 9){
echo 'correct';
}else{
echo 'they are not the same';
}

the results should be correct.


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

Reply via email to