Akshat Gupta

Finally invoved in Open Source :)

Pit Falls for “C side” php Extensions – I

Just thought of documenting all the pit falls that I went through 😉 :
1. For returning an object from a method use init_object_ex() instead of init_object() as this would help one to distinguish the object then and there so that there is no ambiguity.
2. Never forget to increase the reference count of an object so that the object is not destroyed earlier than expected .. believe me it can happen !!!

Well I am not able to think about other pit falls that I came across … but will surely update this as soon as I remember one …

Till then … as my mentor puts it … “Show me the code !!!”


June 6, 2008 - Posted by | gsoc

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: