[PHP] Re: PHP eval() fatal error

2007-08-27 Thread Maarten Balliauw
using parsekit() or launching another process to get this done? Regards, Maarten PS: Eval/create_function is in place in my code, I don't see any other method to execute (filtered, of course !!!) PHP code that is embedded in a string. Maarten Balliauw wrote: Here's the thing: I'm trying

[PHP] PHP eval() fatal error

2007-08-20 Thread Maarten Balliauw
Here's the thing: I'm trying to do some dynamic code compilation within PHP using eval(). The code I'm trying to compile raises an E_ERROR (Fatal). Here's a simple example: ?php $code = ' $returnValue = 12*A+; '; // Clearly incorrect code :-) $returnValue = 0; eval($code); ? Now, I'd like