Follow the object constructor chain ... options

From: Date: Sat, 29 Oct 2005 02:35:02 +0000
Subject: Follow the object constructor chain ... options
Groups: php.internals 
Request: Send a blank email to internals+get-19805@lists.php.net to get a copy of this message
What would be the suggested method of simulating parent::__construct in C-level objects? I looked through the source and could find no examples to draw from. Since my base object is the foundation of my extension, its constructor has to be called on each derived object creation. I have a few ideas that have to do with looping through ce->parent and zend_call_function. Was wondering if you guys can offer some of your experience on how you would approach this problem. Bob Silva

« previous php.internals (#19805) next »