Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#25626 [Opn->Bgs]: Variables containing number starting with 0 (Zero) become 0 (Zero)
ID: 25626
Updated by: [email]sniper@php.net[/email]
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: [url]http://www.php.net/manual/en/language.types.integer.php[/url]
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 [url]http://bugs.php.net/?id=25626&edit=1[/url]
sniper@php.net Guest
-
#40484 [NEW]: Variables starting with numbers ($01) cause entire page to not display
From: david dot young at ghostknight dot us Operating system: WIN XP PRO PHP version: 5.2.1 PHP Bug Type: Variables related... -
#39538 [NEW]: fgetcsv can't handle starting newlines and trailing odd number of backslashes
From: mike at opendns dot com Operating system: Linux, debian sarge PHP version: 5.2.0 PHP Bug Type: *Directory/Filesystem... -
Increment row number starting at 1
I have an asp page which displays database results in a table - (this is an invoice page). I have a variable called Row_Num which stores the row... -
Change starting page number
Hello--I am working on a large document that must be broken into pieces for multiple users to work on. I need to number the pages of these... -
#25626 [NEW]: Variables containing number starting with 0 (Zero) become 0 (Zero)
From: sameh dot attia at tedata dot net Operating system: RHL 9 PHP version: 4.3.3 PHP Bug Type: Scripting Engine problem...



Reply With Quote

