[development] PHP input format -> syntax checking
tadej.basa at gmail.com
Mon Aug 21 14:46:47 UTC 2006
Robert Wohleb pravi:
> As long as the submitted code does not cause a fatal error,
that's exactly what I want to prevent. e.g. a missing ')' (parse error)
in custom block visibility causes the whole site to break.
> you should be able to eval the code with drupal_eval and catch any errors with a
> custom error handler. The trick will be in writing the error handler.
> Tadej Baša wrote:
>> as you know, there is no way to recover from syntax errors in PHP code
>> a user submits (either as nodes or for example in custom block
>> visibility settings). I'm trying to figure out, if it would be
>> form submission if an error is returned.
>> What do you think?
More information about the development