[PHP-DEV] Bug #289: PHP does not evaluate the () (Function call) operator correctly From: kk <email protected>
Date: 04/20/98

From: kk <email protected>
Operating system: Solaris 2.5.1
PHP version: 3.0 Release Candidate 4
PHP Bug Type: Performance problem
Bug description:
Function calls with a variable name work as exspected when
called by a simple expression:

-----
<?php
 
function name_lang() {
        printf("I am a function\n");
}
 
$x = "name";
$y = "_lang";
$z = $x.$y;
$z();
Content-type: text/html
 
I am a function
-----

But PHP fails to parse the () function call operator in the
following environment:

-----
($x.$y)();
<br>
<b>Parse error</b>: parse error in <b>-</b> on line <b>11</b><br>
-----