|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-30 16:51 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 11 11:00:01 2026 UTC |
Description: ------------ Return of create_function() concat. with 'foo'. But, when calling the function with the name of variable's value, only 'foo' is used... Reproduce code: --------------- <?php $a = 'foo'. create_function('', 'print "foo!";'); var_dump($a); // string(12) "foolambda_1" function foo() { print 1; } $a(); // Fatal error: Call to undefined function foo() // foo() ?! Expected result: ---------------- Fatal error: Call to undefined function foolambda_1() Actual result: -------------- string(12) "foolambda_1" Fatal error: Call to undefined function foo()