From:             [EMAIL PROTECTED]
Operating system: Linux 7.2
PHP version:      4.1.2
PHP Bug Type:     Variables related
Bug description:  Improper Numeric Conversion (08, 09)

I ran across this problem in an array assignment, but it is reproducible
with any variable assignment.  PHP doesn't convert the following numeric
assignments correctly.

$a = 06;
$b = 07;
$c = 08;
$d = 09;
$e = 10;

print $a;   // prints 6
print $b;   // prints 7
print $c;   // prints 0
print $d;   // prints 0
print $e;   // prints 10

Thanks,
Bill Scheffer
FedEx Express
(901) 224-4342
[EMAIL PROTECTED]
-- 
Edit bug report at http://bugs.php.net/?id=16497&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16497&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16497&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16497&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16497&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16497&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16497&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16497&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16497&r=submittedtwice

Reply via email to