ID: 26951 Comment by: pluggz24 at yahoo dot com Reported By: jake at presstec dot net Status: Open Bug Type: *Programming Data Structures Operating System: Linux 2.4. PHP Version: 4.3.4 New Comment:
This isn't a bug; this is proper behavior for an octal integer. 08 and 09 are both undefined, as an octal value can have digits 0-7 :/ I don't see this as being a bug. Previous Comments: ------------------------------------------------------------------------ [2004-01-17 21:33:20] jake at presstec dot net Description: ------------ This is very simple too understand from the example code,passing 08 or 09 results in 0..... Errr umm... what the?! Thanks Reproduce code: --------------- <?php function p($val) { echo "$val<br/>"; } p(01); p(05); p(08); p(09); ?> Expected result: ---------------- 1<br/>5<br/>8<br/>9<br/> Actual result: -------------- 1<br/>5<br/>0<br/>0<br/> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26951&edit=1