Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44039 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2911 invoked from network); 23 May 2009 18:03:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2009 18:03:09 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.134 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.134 mailout2.netbeat.de Linux 2.6 Received: from [83.243.58.134] ([83.243.58.134:47897] helo=mailout2.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/46-25319-A5A381A4 for ; Sat, 23 May 2009 14:03:09 -0400 Received: (qmail 5536 invoked by uid 89); 23 May 2009 18:33:18 -0000 Received: from unknown (HELO ?192.168.1.102?) (johannes%schlueters.de@88.217.62.247) by mailout2.netbeat.de with ESMTPA; 23 May 2009 18:33:18 -0000 To: patrick@serru.net Cc: internals@lists.php.net, Philip Olson In-Reply-To: <200905221251.42831@----Apocryphe----> References: <1242665645.6751.17.camel@goldfinger> <200905221251.42831@----Apocryphe----> Content-Type: text/plain Date: Sat, 23 May 2009 20:02:53 +0200 Message-ID: <1243101773.1976.3.camel@goldfinger> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] How to contribute for PHP Internals From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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