From:             jesusgonzalez at hotmail dot com
Operating system: FEDORA CORE 9
PHP version:      5.2CVS-2009-01-31 (snap)
PHP Bug Type:     *General Issues
Bug description:  Error on eval with left ceroes (example : eval('08');

Description:
------------
There's something wrong when evaluating '08' and '09' as number.

Reproduce code:
---------------
<?php
echo 'Version: ' . phpversion() . "<br>";
eval('$one = (01);'); echo $one . "<br>";
eval('$two = (02);'); echo $two . "<br>";
eval('$three = (03);'); echo $three . "<br>";
eval('$four = (04);');  echo $four . "<br>";
eval('$five = (05);'); echo $five . "<br>";
eval('$six = (06);'); echo $six . "<br>";
eval('$seven = (07);'); echo $seven . "<br>";
eval('$eight = (08);'); echo $eight . "<br>";
eval('$nine = (09);'); echo $nine . "<br>";
eval('$ten = (10);'); echo $ten . "<br>";
echo "<br>";
?>




Expected result:
----------------
Version: 5.2.6
1
2
3
4
5
6
7
8
9
10

Actual result:
--------------
Version: 5.2.6
1
2
3
4
5
6
7
0
0
10


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

Reply via email to