ID:               25626
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sameh dot attia at tedata dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: RHL 9
 PHP Version:      4.3.3
 New Comment:

RTFM: http://www.php.net/manual/en/language.types.integer.php
About what is octal number..



Previous Comments:
------------------------------------------------------------------------

[2003-09-22 06:23:44] sameh dot attia at tedata dot net

Description:
------------
If u assigned a variable x any value that starts with 0; like 09; then
the value inside the varaible becomes 0.

This also happens when calling functions; paramters passed to the
function suffer the same bug.


Reproduce code:
---------------
<?php

$VarX = 09;

echo "VarX = $VarX\n";
FunY(09);

function FunY($VarY)
{
        echo "VarY = $VarY\n";
}
?>

Expected result:
----------------
VarX = 09
VarY = 09

Actual result:
--------------
VarX = 0
VarY = 0


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25626&edit=1

Reply via email to