#40591 [NEW]: list()="string"; gives invalid opcode

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

  1. #1

    Default #40591 [NEW]: list()="string"; gives invalid opcode

    From: [email]mike@php.net[/email]
    Operating system:
    PHP version: 5CVS-2007-02-22 (snap)
    PHP Bug Type: Scripting Engine problem
    Bug description: list()="string"; gives invalid opcode

    Description:
    ------------
    ..

    Reproduce code:
    ---------------
    list($a,$b,$c)="abc";


    --
    Edit bug report at [url]http://bugs.php.net/?id=40591&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40591&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40591&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40591&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40591&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40591&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40591&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40591&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40591&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40591&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40591&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40591&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40591&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40591&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40591&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40591&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40591&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40591&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40591&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40591&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40591&r=mysqlcfg[/url]
    mike@php.net Guest

  2. Similar Questions and Discussions

    1. cfqueryparam ignores null="yes" when list="yes"
      I get an unexpected result when using cfqueryparam with list="yes" and null="yes" using CF 7.0.1 and MSSQL 2000. When i run this code: <cfset...
    2. "Error Creating Control" and "Cast from String"
      I'm creating a custom date control. In appearance, it's just a textbox and a button. It has three custom properties: CalDate, CalDateType and...
    3. #26292 [Opn->Bgs]: substr returns "0" for any offset on the string "0"
      ID: 26292 Updated by: sniper@php.net Reported By: ravacholp at hotmail dot com -Status: Open +Status: ...
    4. convert visual basic "string" data type to DB2 "blob"
      Does anyone know if a visual basic string data type can be converted to DB2 blob datatype? I have all data in XML files and I use Visual Basic to...
    5. "Start" "Program" "Menu" list is empty
      For what ever reason my list of installed programs in my "Start" "Programs" menu is empty. Anyone know how to restore the list. Thanks for your...
  3. #2

    Default #40591 [Opn->Asn]: list()="string"; gives invalid opcode

    ID: 40591
    Updated by: [email]tony2001@php.net[/email]
    Reported By: [email]mike@php.net[/email]
    -Status: Open
    +Status: Assigned
    Bug Type: Scripting Engine problem
    PHP Version: 5CVS-2007-02-22 (snap)
    -Assigned To:
    +Assigned To: dmitry


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

    [2007-02-22 15:13:32] [email]mike@php.net[/email]

    Description:
    ------------
    ..

    Reproduce code:
    ---------------
    list($a,$b,$c)="abc";



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40591&edit=1[/url]
    tony2001@php.net Guest

  4. #3

    Default #40591 [Asn->Csd]: list()="string"; gives invalid opcode

    ID: 40591
    Updated by: [email]dmitry@php.net[/email]
    Reported By: [email]mike@php.net[/email]
    -Status: Assigned
    +Status: Closed
    Bug Type: Scripting Engine problem
    PHP Version: 5CVS-2007-02-22 (snap)
    Assigned To: dmitry
    New Comment:

    The bug is fixed in CVS HEAD and PHP_5_2.

    But the behavoirs of the following scripts are still different:

    1) list($a, $b) = "ab"; // $a = $b = NULL;
    2) list($a, $b) = "a"."b"; // $a = $b = NULL;
    3) $s = "ab"; list($a, $b) = $s; // $a = "a"; $b = "b";
    4) list($a, $b) = foo(); // $a = "a"; $b = "b";



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

    [2007-02-22 15:13:32] [email]mike@php.net[/email]

    Description:
    ------------
    ..

    Reproduce code:
    ---------------
    list($a,$b,$c)="abc";



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40591&edit=1[/url]
    dmitry@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