[Tickets #3037] Horde_Config should validate generated PHP

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Nov 24 09:14:13 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3037
-----------------------------------------------------------------------
 Ticket             | 3037
 Updated By         | Jan Schneider <jan at horde.org>
 Summary            | Horde_Config should validate generated PHP
 Queue              | Horde Framework Packages
 Version            | HEAD
 State              | Accepted
 Priority           | 1. Low
 Type               | Enhancement
 Owners             | 
-----------------------------------------------------------------------


Jan Schneider <jan at horde.org> (2005-11-24 09:14) wrote:

> We can't catch _everything_, but the validate() method on ConfigForm 
> should make sure the config file we're going to generate parses 
> before considering the form valid.

I already thought about that a few times, but this would only be possible
with calling a PHP cli with the -l flag, but how to handle this gracefully
with the lots of different places where it can be installed - if it is
installed at all?

> Also, to help achieve more specific error messages, we should add a 
> new type for PHP code that also validates the individual snippets so 
> that you can't enter something that's not valid on the right side of 
> an = expression in one of those fields.

Wouldn't this be covered by the above?




More information about the bugs mailing list