[PHP] PHP4: Using create_function to create an object method

2004-12-23 Thread kermodebear
Hello all, I was playing with create_function the other day and found that it is not possible to use create_function to create a method for an object. Code example: test = create_function( '', 'echo "Testing";' ); $o->test(); // Will break: // Fatal error: Call to undefined function:

Re: [PHP] PHP4: Using create_function to create an object method

2004-12-23 Thread Greg Donald
On Thu, 23 Dec 2004 15:57:08 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > but I did not see anything in the manual that explicitly states that this will > not work. create_function -- Create an anonymous (lambda-style) function The keyword here is anonymous, as in 'not named'. The anony