Hello Brandon,
create_object is your new handler that is supposed to deliver an empty
object. You cannot have this NULL. The __construct part allows to define
what the actual constructor does afterwards. Forcing __construct to be
called is a bit more complicated but a bunch of exts already do so
When registering a new class, what are the consequences of setting
zend_class_entry.create_object = NULL? INIT_CLASS_ENTRY() defaults it to NULL,
but the tutorial I'm looking at sets it to the address of a function
immediately afterwards.
My concern is that setting this allows the engine to ca