Bonjour johannes, hi everybody,
Le samedi 23 mai 2009, vous avez écrit :
> Bonsoir,
>
> I think the language syntax definition is more a part r the genaral
> documentation and too specific for a "getting started with internals"
> document. The language definition is a small part of PHP ...
I was thinking that it would probably exists some grammar definition
using BNF... something more concise, for my exercise, than the user's
documentation (the quality of which is very good).
>
> $ php -nr 'function declare_class() { class Foo {} } declare_class();
var_dump(new Foo());'
> object(Foo)#1 (0) {
> }
> Seems to work, or didn't I understand your problem?
Sorry about that. Of course, I was wrong. There was a die() at the end
of the tested function. My confusion may be due to the fact that I had
difficulties with the scope at the end of a inserted file in which a classe
was declared.
>
> johannes
>
Thank you for the attention you paid to my mail, and anwers,
Patrick
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php