Dmitry Stogov
51e52e20ef
Support for nested exceptions and fatal errors in destructors
2006-05-31 12:59:31 +00:00
Marcus Boerger
637a40423c
- MFH as discussed
...
. zend_exception_get_default() -> zend_exception_get_default(TSRMLS_D)
. zend_get_error_exception() -> zend_get_error_exception(TSRMLS_D)
. added E_RECOVERABLE_ERROR
. added ZEND_TOSTRING_FUNC_NAME
. added __tostring function cache to zend_class_entry
. added ZEND_NAMED_ME
. modified ZEND_ME_MAPPING to support method flags
. added ZEND_MN
. method entries now use prefix "zim_" instead of "zif_"
. drop EG(ze1_compatibility_mode)
. changed cast handler, now without (int should_free):
typedef int (*zend_object_cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC);
. changed get_iterator, now receives whether value is by ref:
zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC);
. added zend_objects_store_add_ref_by_handle
. added zend_objects_store_del_ref_by_handle
. convert_to_explicit_type(pzv, type)
2006-05-09 23:53:23 +00:00
Antony Dovgal
1fa58ec003
initialize bucket #0 with nulls (normally it shouldn't be used at all, but if it is - we don't want any memory issues, do we?)
2006-03-28 21:58:01 +00:00
Dmitry Stogov
b8360c376b
Fixed bug #36006 (Problem with $this in __destruct())
2006-01-16 10:12:36 +00:00
Andi Gutmans
61e93ccfe8
- Update copyright notices to 2006
2006-01-04 23:53:05 +00:00
Dmitry Stogov
5519008169
Fixed call to __destruct() for objects of classes delivered from internal ones those use zend_objects_store_put(obj, NULL, ...
2005-11-15 12:41:31 +00:00
Ilia Alshanetsky
58a0906bf9
MFH: Fixed bug #34802 (Fixed crash on object instantiation failure).
2005-10-10 14:31:12 +00:00
Dmitry Stogov
386a3b9305
Fixed bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called)
2005-09-27 18:07:41 +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
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Marcus Boerger
296529b886
Split isset/isempty for object property and object dimension hooking.
2003-11-10 16:14:44 +00:00
Zeev Suraski
3f5acc73a5
Remove redundant callback, simplify API
2003-10-05 07:52:28 +00:00
Marcus Boerger
ca9c03b504
Add missing entry
2003-08-13 07:17:16 +00:00
Zeev Suraski
6a50660cfe
Fix isset()/empty() for non-trivial object elements
...
(API change - read_property now accepts an extra element)
Fixes bug #24436
2003-07-22 13:49:33 +00:00
Marcus Boerger
c9c1fcc026
More informative errors here and these are real core errors
2003-07-20 17:50:23 +00:00
Zeev Suraski
3cfa6a68f4
Add get_dim callback
2003-07-07 10:53:27 +00:00
Zeev Suraski
65f8bafb29
Fix & whitespace
2003-07-07 09:08:33 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Zeev Suraski
f660d28143
- read_property cleanup
...
- Implement unset/isset/empty for PPP
2003-02-05 14:27:30 +00:00
foobar
333406bdc2
- Added some missing CVS $Id$ tags, headers and footers.
2003-02-01 01:49:15 +00:00
Stanislav Malyshev
683cf733bd
extra safety
2003-01-29 14:27:40 +00:00
Sterling Hughes
d3f04d8ecc
fix by phanto to the cloning
2003-01-21 00:00:38 +00:00
Harald Radi
5795ed62f4
make std_object_handlers struct available for shared modules
2003-01-17 21:16:12 +00:00
Andi Gutmans
94e6eb06dd
- Don't check if the handle is bogus. We should crash.
2003-01-13 04:55:34 +00:00
Stanislav Malyshev
0ccbd37df7
validate handle
2003-01-12 12:56:04 +00:00
Andi Gutmans
43139dc755
- WS - Always use "if (" and not "if("
2002-09-15 07:45:26 +00:00
Stanislav Malyshev
11fb07a360
Add ZEND_API to functions
2002-08-08 17:53:32 +00:00