Commit Graph

73 Commits

Author SHA1 Message Date
Antony Dovgal
9e15036270 fix bug #47353 (crash when creating a lot of objects in object destructor) 2009-02-11 09:58:13 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Marcus Boerger
3110bffd16 - Fix issue with destruction of overloaded objects
# The issue is that we assume default object handlers when calling method
# __destruct(). Now the default handlers might not be compatible with the
# correct handlers which would result in crashes or they simply do cannot
# support everything the object was supposed to do. The latter case will be
# demonstrated in ext/spl/tests/iterator_068.phpt.
2008-08-24 16:45:50 +00:00
Felipe Pena
a5f867f3d5 - Constness (Added const qualifier to several function parameters) 2008-08-12 17:15:59 +00:00
Dmitry Stogov
6847c18150 Added garbage collector 2008-01-22 09:29:29 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Jani Taskinen
5d0176a32b - Fix compile warnings 2007-07-21 00:34:41 +00:00
Antony Dovgal
dd8af0654a fix folding, CS and WS 2007-07-11 11:19:58 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Dmitry Stogov
6b2f3046e8 Fixed bug #39602 (Invalid session.save_handler crashes PHP) 2006-11-23 08:07:16 +00:00
Dmitry Stogov
c021824fc1 Fixed bug #38287 (static variables mess up global vars) 2006-08-07 15:15:36 +00:00
Dmitry Stogov
75fac72dc5 Support for nested exceptions and fatal errors in destructors 2006-05-31 12:59:45 +00:00
Antony Dovgal
e697da651c fix the typo before everybody forgets about it 2006-05-20 19:08:25 +00:00
Marcus Boerger
8e42a84335 - Destructors must not be called twice 2006-05-20 09:51:41 +00:00
Andrei Zmievski
fae915844b Happy, Pierre? 2006-04-21 16:58:14 +00:00
Andrei Zmievski
f096990ea0 Add:
* zend_objects_store_add_ref_by_handle()
 * zend_objects_store_del_ref_by_handle()
 * zend_objects_store_get_object_by_handle()
2006-04-21 16:36:38 +00:00
Antony Dovgal
e98f9777db initialize bucket #0 with nulls 2006-03-28 21:58:21 +00:00
Dmitry Stogov
2e5d0a3a9d WS 2006-02-21 08:00:39 +00:00
Dmitry Stogov
b424a32610 Preparation for portable string API (use macroses to access zval). 2006-02-20 19:03:43 +00:00
Dmitry Stogov
c93396ae1a Fixed bug #36006 (Problem with $this in __destruct()) 2006-01-16 10:12:54 +00:00
Andi Gutmans
5de7cc3194 - Update copyright notices to 2006 2006-01-04 23:54:12 +00:00
Dmitry Stogov
c4f93961b5 Fixed call to __destruct() for objects of classes delivered from internal ones those use zend_objects_store_put(obj, NULL, ... 2005-11-15 12:39:54 +00:00
Ilia Alshanetsky
f14cf0f7d8 Fixed bug #34802 (Fixed crash on object instantiation failure). 2005-10-10 14:30:05 +00:00
Dmitry Stogov
a7c91fec3a Fixed bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called) 2005-09-27 18:08:26 +00:00
Andrei Zmievski
b80cb7bd2f Unicode support 2005-08-11 23:35:03 +00:00
foobar
916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
Dmitry Stogov
ce23692663 Fixed bug #32799 (crash: calling the corresponding global var during the destruct) 2005-06-06 10:38:43 +00:00
Marcus Boerger
237cd7e511 - We cannot provide this fallback becuase it requires zend_object ptr's.
# Found that out after discussing with Stas. As a consequence still every
# extension that provides specialised class types is responsible for
# calling its __destruct. This is currently not done for several exts.
2005-02-22 14:53:57 +00:00
Marcus Boerger
93e13aff05 - Force calling of dtors unless otherwise specified (fixes several __destruct bugs) 2005-02-22 11:43:05 +00:00
Stanislav Malyshev
3755c03291 fix crash when dtor is fialing on shutdown 2004-09-17 10:13:52 +00:00
Marcus Boerger
f5cf052225 - Fix bug #29368 : The destructor is called when an exception is thrown from the constructor 2004-07-25 17:25:44 +00:00
Andi Gutmans
0b0c5d3fac - Fix problem with object being destroyed more than once 2004-05-23 20:33:09 +00:00
Wez Furlong
3a4f33e31f As discussed with Andi, add this helper API for setting the object pointer from
within the constructor.

Please read the comment for notes about how to use it; in general, you don't
need it, so don't use it.
2004-05-17 11:27:16 +00:00
Wez Furlong
d056b25c3f Add count_elements handler for overloaded objects. 2004-05-04 15:03:28 +00:00
Ilia Alshanetsky
bf997c3eb3 Removed unused variable. 2004-04-04 18:28:59 +00:00
Stanislav Malyshev
7cf92e79ed return zval *, to make it useful for read_property 2004-03-21 18:27:58 +00:00
Stanislav Malyshev
b372b86b89 update to new API 2004-03-21 18:21:46 +00:00
Andi Gutmans
a87cc63aaa - Real fix for bug #27535 (Dmitry) 2004-03-11 13:40:19 +00:00
Andi Gutmans
aa472500e1 - Attempt to fix bug #27535 2004-03-11 13:27:18 +00:00
Andi Gutmans
1c180ba3e8 - Fix crash:
<?
class foo {
        function __destruct() {
                foreach ($this->x as $x);
        }
}
new foo();
echo 'OK';
?>
2004-03-03 09:58:58 +00:00
Marcus Boerger
ccef2cfb67 As Andi found out the dtor may increase the refcount. 2004-02-25 21:39:59 +00:00
Marcus Boerger
b0529e5485 Fix object destruction/free in shutdown
- set destructor_called even when no dtor is given
- use free_storage even when no dtor hat to be called
2004-02-25 08:16:54 +00:00
Marcus Boerger
98f725b0e0 Checking once for dtor is enough 2004-02-25 07:47:56 +00:00
Andi Gutmans
8a129bfc47 - Check if free_storage exists 2004-02-08 17:08:11 +00:00
Zeev Suraski
5c3e03a2ff The valid bit was necessary after all - restored 2004-02-04 12:30:48 +00:00
Zeev Suraski
6584dca194 Fixlets 2004-02-04 12:17:57 +00:00
Zeev Suraski
f5f7d569a0 Change destructor implementation (details will follow on internals@) 2004-02-04 09:56:20 +00:00
Zeev Suraski
3be75ceda2 Remove more garbage - valid bit was not really necessary 2004-02-03 15:49:15 +00:00
Zeev Suraski
c5a7b668cd - Clean garbage (delete was nuked a long time ago) 2004-02-03 15:37:37 +00:00