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 !!!”
No comments yet.
Leave a comment
-
Recent
-
Links
-
Archives
- May 2009 (1)
- December 2008 (1)
- July 2008 (1)
- June 2008 (3)
- May 2008 (11)
- April 2008 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS