# How to contribute for PHP Internals

- Thread: https://externals.io/message/44045
- Original archive: https://news-web.php.net/php.internals/44045
- Started by Patrick Serru on 2009-05-24T16:27:28+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #44045 — Patrick Serru — 2009-05-24T16:27:28+00:00

URL: https://externals.io/message/44045#44045

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
