Hello,

this document is clearly outdated and for me so far confuse just gave
a try for 5 mins, and I am worry about the printf tech, lucky you are
not to be in multi-thread env..., at least fprintf on the stderr to
read un-buffered results, those guys have a job? maybe greenhouse
keepers certainly not developers.


Christian, the best way to enter in the zend engine, it's to create a
zend extension project, then go thru all the step of the code to
manipulate the hashtable, learn where object are living in the tree,
then when you know how to play with the "public" interface, that's
really easy to go deeper, the zend "bytecode engine" is so far less
complex that what you could find in any JVM (I know a couple of things
in area) even python bytecode and how the interpreter is able to
handle various version,

in two weeks you should have done your tour by using the zend
interface and reading the code, php zend core is tiny in term of code,
the only things that could appear weird and clumsy is the semantic
code used, this is the only thing that could appear like a mind
barrier.

Best,

On Mon, Dec 21, 2009 at 6:27 AM, Rob Nicholson <rob_nichol...@uk.ibm.com> wrote:
>
> Christian Grobmeier <grobme...@gmail.com> wrote on 21/12/2009 13:56:08:
>
>
>> I would like to learn more about how the interpreter works, but I was
>> unable to find good documents on the web. Basically I am thinking on
>> something about allocation of variables, how does object creation work
>> and such stuff. Maybe something on the overall architecture of PHP
>> would be of interest too.
>>
>> In java world there is the JVM specification, I hoped there is
>> something for PHP too.
>
> Hi Christian,
>
> The PHP architecture is a little different from the JVM in that it does not
> explicitly document/specify the interface between the compiler and the
> bytecode/opcode interpreter the way that Java does. It still exists though.
>
> I suggest you look at the links under here:
>
> http://www.php.net/manual/en/internals2.php
> In particular:
>  http://www.php.net/manual/en/internals2.opcodes.php
>
> Another good reference is Sara Goleman's book "Extending and Embedding PHP"
>
> Andy Wharmby produced a set of charts which you can find on Zoe's Blog
> here : http://zoomsplatter.blogspot.com/2008/08/php-opcodes.html .
> These may help you to make a fast start  understanding the overall design.
>
> Rob.
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to