Ask a Question related to PHP Bugs, Design and Development.
-
neel dot get at gmail dot com #1
#40628 [NEW]: Strange ERROR
From: neel dot get at gmail dot com
Operating system: Windows
PHP version: 4.4.6RC1
PHP Bug Type: Unknown/Other Function
Bug description: Strange ERROR
Description:
------------
The function is not getting Int Argumet Properly
Reproduce code:
---------------
<?php
function hundreed($num_str)
{
echo $num_str;
}
$num = 052;
hundreed($num);
?>
Expected result:
----------------
42
Actual result:
--------------
52
--
Edit bug report at [url]http://bugs.php.net/?id=40628&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40628&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40628&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40628&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40628&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40628&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40628&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40628&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40628&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40628&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40628&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40628&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40628&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40628&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40628&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40628&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40628&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40628&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40628&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40628&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40628&r=mysqlcfg[/url]
neel dot get at gmail dot com Guest
-
Strange error
"Sid" <sidh@hathway.com> wrote in message news:007b01c37c8a$508f8560$1700a8c0@webqueztserver... works fine at my localhost. rush --... -
[PHP] Strange error
Hi Odd - I copy/paste the code below and run it against windows version of php4.0.6 and it's okay Maybe you've got a hidden char there... -
Strange error on NT
Projector (created with version 8.5.1 and packaged as a standard projector file) demands that Shockwave Player 8.5 to be installed on the laptop... -
Strange Error While Debugging
I put a break point in the Page_Load function but when I tell it to run till breakpoint, a little question mark appears inside the breakpoint stop... -
Strange error when run on Linux.
Scripts tested on: Win 98 - PWS PHP & MySQL Win 2000 Server - IIS PHP MySQL Win98 - Apache PHP MySQL Scripts all work fine !!! -
neel dot basu dot z at gmail dot com #2
#40628 [Com]: Strange ERROR
ID: 40628
Comment by: neel dot basu dot z at gmail dot com
Reported By: neel dot get at gmail dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 4.4.6RC1
New Comment:
Anything integer starting with the digit 0 is represented as an octal.
Previous Comments:
------------------------------------------------------------------------
[2007-02-25 15:02:59] neel dot get at gmail dot com
Description:
------------
The function is not getting Int Argumet Properly
Reproduce code:
---------------
<?php
function hundreed($num_str)
{
echo $num_str;
}
$num = 052;
hundreed($num);
?>
Expected result:
----------------
42
Actual result:
--------------
52
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40628&edit=1[/url]
neel dot basu dot z at gmail dot com Guest
-
neel dot get at gmail dot com #3
#40628 [Opn]: Strange ERROR
ID: 40628
User updated by: neel dot get at gmail dot com
Reported By: neel dot get at gmail dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 4.4.6RC1
New Comment:
Thanks
Sorry to Assume it as Bugs
Previous Comments:
------------------------------------------------------------------------
[2007-02-25 15:22:43] neel dot basu dot z at gmail dot com
Anything integer starting with the digit 0 is represented as an octal.
------------------------------------------------------------------------
[2007-02-25 15:02:59] neel dot get at gmail dot com
Description:
------------
The function is not getting Int Argumet Properly
Reproduce code:
---------------
<?php
function hundreed($num_str)
{
echo $num_str;
}
$num = 052;
hundreed($num);
?>
Expected result:
----------------
42
Actual result:
--------------
52
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40628&edit=1[/url]
neel dot get at gmail dot com Guest
-
derick@php.net #4
#40628 [Opn->Bgs]: Strange ERROR
ID: 40628
Updated by: [email]derick@php.net[/email]
Reported By: neel dot get at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 4.4.6RC1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
[url]http://www.php.net/manual/[/url] and the instructions on how to report
a bug at [url]http://bugs.php.net/how-to-report.php[/url]
Octal...
Previous Comments:
------------------------------------------------------------------------
[2007-02-25 15:27:07] neel dot get at gmail dot com
Thanks
Sorry to Assume it as Bugs
------------------------------------------------------------------------
[2007-02-25 15:22:43] neel dot basu dot z at gmail dot com
Anything integer starting with the digit 0 is represented as an octal.
------------------------------------------------------------------------
[2007-02-25 15:02:59] neel dot get at gmail dot com
Description:
------------
The function is not getting Int Argumet Properly
Reproduce code:
---------------
<?php
function hundreed($num_str)
{
echo $num_str;
}
$num = 052;
hundreed($num);
?>
Expected result:
----------------
42
Actual result:
--------------
52
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40628&edit=1[/url]
derick@php.net Guest



Reply With Quote

