>From the RFC: > it might be beneficial to add a supports_declare() function, which allows you > to determine whether a certain declare directive is supported, without > resorting to a PHP version check
Even if we don't have any directives that need to be checked yet, I think that would be a good thing to have. It will allow people who wish to experiment with new features to do so more easily, which will make it easier to evolve the language, without core PHP needing to be aware of all the directives. cheers Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
