Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_objects_API.c

From: Date: Mon, 10 Oct 2005 17:39:53 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_objects_API.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4231@lists.php.net to get a copy of this message
This appears to be the case when constructor fails to init the object, not specific to PDO actually. Ilia Dmitry Stogov wrote: > How is it possible to have object == NULL in "valid" bucket? > > Dmitry. > > >>-----Original Message----- >>From: Ilia Alshanetsky [mailto:iliaa@php.net] >>Sent: Monday, October 10, 2005 6:30 PM >>To: zend-engine-cvs@lists.php.net >>Subject: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_objects_API.c >> >> >>iliaa Mon Oct 10 10:30:07 2005 EDT >> >> Modified files: >> /ZendEngine2 zend_objects_API.c >> Log: >> Fixed bug #34802 (Fixed crash on object instantiation failure). >> >> >>http://cvs.php.net/diff.php/ZendEngine2/zend_objects_API.c?r1= > > 1.49&r2=1.50&ty=u > Index: ZendEngine2/zend_objects_API.c > diff -u ZendEngine2/zend_objects_API.c:1.49 > ZendEngine2/zend_objects_API.c:1.50 > --- ZendEngine2/zend_objects_API.c:1.49 Tue Sep 27 14:08:26 2005 > +++ ZendEngine2/zend_objects_API.c Mon Oct 10 10:30:05 2005 > @@ -17,7 +17,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: zend_objects_API.c,v 1.49 2005/09/27 18:08:26 dmitry Exp $ */ > +/* $Id: zend_objects_API.c,v 1.50 2005/10/10 14:30:05 iliaa Exp $ */ > > #include "zend.h" > #include "zend_globals.h" > @@ -51,7 +51,7 @@ > > if (!objects->object_buckets[i].destructor_called) { > objects->object_buckets[i].destructor_called > = 1; > - if (obj->dtor) { > + if (obj->dtor && obj->object) { > obj->dtor(obj->object, i TSRMLS_CC); > } > } >

« previous php.zend-engine.cvs (#4231) next »