Re: Trouble interpreting error message
| From: | Jeffry Killen | Date: | Thu, 10 Dec 2015 01:23:47 +0000 |
| Subject: | Re: Trouble interpreting error message | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-325279@lists.php.net to get a copy of this message | ||
Hello, again:
In the original post I was trying to apply anonymous code to a static member array.
self::$_runList[$_what] = $_code;
$_out = self::$_runList[$_what]($_params); // >>> line # 27 referred to in error message
What is now working is to use a locally declared array inside run() instead:
$_runList = array()
$_runList[$_what] = $_code;
return $_runList[$_what]($_params);
Apparently, php doesn't like doing this with a static member array variable.
Thanks to anyone who spent some time with the original post.
JK