Re: When will the extension and embedding APIs ever be cleaned or documented?

From: Date: Fri, 14 Feb 2014 00:17:44 +0000
Subject: Re: When will the extension and embedding APIs ever be cleaned or documented?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Am Fr. Feb. 14 2014 00:04:01 schrieb Johannes Schlüter:
> Mind: "Compatibility is a feature." (Bjarne Stroustrup) The fact that 10
> years old extensions can be used with php git master with quite little
> work is not only a help for old users but also promise to new users that
> their investment won't be lost easily.

But what if there was something like a wrapper above the old api, to give it a cleaner appearance,
so people could choose to work with the newer, or older, API?

BTW, in the API „book“, I dont find what I am looking for; storing a forgein thing into the
object. Like if I was to write a PHP module that exports a PHP class, I would like to create a class
instance to a C++ class, and store that instance within the php object (struct?). Like:

	zval* this = getThis();
	MyClass* mc = (MyClass*)get_pointer_from_zvalthis);

And, well, vice-versa.

Otherwise, that phpinternalsbook is very detailed, and I like how its written :)

Although its no real PHP project - why not just link it in the php.net docs? o.o


Thread (8 messages)

« previous php.internals (#72572) next »