Bonsoir,
On Fri, 2009-05-22 at 12:51 -0500, Patrick Serru wrote:
> Indeed, I was looking for some definition of PHP as language. I'm not
> a specialist, but HOBBIST well interested. I try to build a parser in PHP,
> and parsing PHP first! Then, I was just needing more material related to
> the language it self.
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 ...
> For instance, here is my last interogation: I noted that a class,
> defined inside a function does not has a global scope, and if I well
> remember, this does not fit with my readings... Is it a bug, or have I a
> bad memory ?
$ 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?
johannes
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php