PHP 4.0 Bug #7728: Dynamic function names
| From: | ignacio at openservices dot net | Date: | Thu, 09 Nov 2000 16:05:19 +0000 |
| Subject: | PHP 4.0 Bug #7728: Dynamic function names | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37576@lists.php.net to get a copy of this message | ||
From: ignacio@openservices.net
Operating system: %
PHP version: 4.0.3pl1
PHP Bug Type: Feature/Change Request
Bug description: Dynamic function names
The following works:
"""
$abc="ABC";
$t=$abc."123";
$t(); // Calls ABC123()
"""
but there's no obviously apparent reason that:
"""
$abc="ABC";
($abc."123")(); // Calls ABC123()
"""
shouldn't work the same way.
--
Edit Bug report at: http://bugs.php.net/?id=7728&edit=1