From: [EMAIL PROTECTED]
Operating system: Redhat 8
PHP version: 5CVS-2003-09-25 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: ZE2 Crashes in non-debug mode (CLI only)
Description:
------------
ZE2 is bailing on with a fatal error when calling a method dyanmically
using a properity of the class (an array) as the dynamic function name.
I.e.
$this->myarr[0]("function paramer");
returns:
Fatal error: Method name must be a string in....
It worked in PHP4, so I don't know if this is intended as invalid in PHP5,
or if it is a bug...
Reproduce code:
---------------
<?php
class foo {
var $arr = array("test");
function test($var) {
echo "Test $var";
}
}
$a = new foo();
echo "<PRE>"; var_dump($a); echo "</PRE>";
$a->arr[0]("testvalue");
?>
Expected result:
----------------
Test testvalue
Actual result:
--------------
Fatal error: Method name must be a string in...
--
Edit bug report at http://bugs.php.net/?id=25652&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25652&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25652&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25652&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25652&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25652&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25652&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25652&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25652&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25652&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25652&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25652&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25652&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25652&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25652&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25652&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25652&r=float