#40628 [NEW]: Strange ERROR

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #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

  2. Similar Questions and Discussions

    1. Strange error
      "Sid" <sidh@hathway.com> wrote in message news:007b01c37c8a$508f8560$1700a8c0@webqueztserver... works fine at my localhost. rush --...
    2. [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...
    3. 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...
    4. 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...
    5. 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 !!!
  3. #2

    Default #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

  4. #3

    Default #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

  5. #4

    Default #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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139