Am 03.02.2014 12:28 schrieb "Patrick Schaaf" <[email protected]>:
> B) it would support testing for constants
>
> declare(const='ADMIN_SERVER') { ... }
> declare(const_false='DEVELOPMENT_SERVER') { ... }
>
> which would really be a plus for us, using MINIT time constants provided
by the defcon extension (http://github.com/infusion/PHP-Defcon)
For this use case it might be useful if an extension could simply extend
declare with additional keywords, and effect that code elision as a
reaction to the keyword / check being used and done at compile time.
best regards
Patrick