#34064 [Ver->Asn]: arr[] as param to function in class gives invalid opcode
| From: | tony2001@php.net | Date: | Wed, 10 Aug 2005 09:19:34 +0000 |
| Subject: | #34064 [Ver->Asn]: arr[] as param to function in class gives invalid opcode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83286@lists.php.net to get a copy of this message | ||
ID: 34064
Updated by: tony2001@php.net
Reported By: phpbugreport at elexer dot com
-Status: Verified
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5CVS-2005-08-10
-Assigned To:
+Assigned To: dmitry
New Comment:
Dmitry, that's something you should know how to fix..
Previous Comments:
------------------------------------------------------------------------
[2005-08-10 11:02:58] phpbugreport at elexer dot com
Description:
------------
PHP 5.1.0-dev (cli) (built: Aug 9 2005 00:41:59) from
http://snaps.php.net - compiling below code generates an Invalid
opcode
error.
Works fine when you take the "test()" function out of the class.
Reproduce code:
---------------
<?php
class XmlTest {
function test($test)
{
}
function run()
{
$ar = array();
$this->test($ar[]);
}
}
$o = new XmlTest();
$o->run();
?>
Expected result:
----------------
No "Invalid opcode" error
Actual result:
--------------
Fatal error: Invalid opcode 93/16/8. in D:\php5\a.php on line 14
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34064&edit=1