Felipe Pena
0fbe6a0c14
- MFH: Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments.
2008-07-24 19:52:24 +00:00
Marcus Boerger
2bf3bfc746
- MFH Exception handling
...
[DOC]
- Exceptions can be thrown while exceptions are pending, they are linked
- Exceptions can be handled in __destruct
- Add optional Exception $previous parameter to
. Exception::__construct
. ErrorException::__construct
2008-07-13 21:42:49 +00:00
Antony Dovgal
205ba532cf
apply correct fix
2008-07-13 09:32:46 +00:00
Antony Dovgal
68a61e9981
fix segfault in Exception::__toString()
2008-07-13 09:29:44 +00:00
Marcus Boerger
d34b08646d
- Missed one line in merge
2008-07-12 14:59:46 +00:00
Marcus Boerger
61a808dfa9
- MFH Add support for linking exceptions (implements TODO)
2008-07-12 14:57:14 +00:00
Dmitry Stogov
fcaa1c6d86
Fixed bug #44226 (Throwing an exception causes crash in multithreaded SAPI)
2008-04-17 10:21:38 +00:00
Felipe Pena
cc2b17d51d
MFH: Added new macro for check void parameters.
...
(deprecating ZEND_WRONG_PARAM_COUNT for this cases)
2008-03-10 22:02:41 +00:00
Dmitry Stogov
fa47e900e2
Changed exception handling. Now each op_array doesn't contain ZEND_HANDLE_EXCEPTION opcode in the end
2008-01-21 19:39:55 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Antony Dovgal
23eaae2211
MFH
2007-05-30 16:32:02 +00:00
Antony Dovgal
b6a89efcda
fix folding
2007-01-18 12:20:15 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
ff9d0fcc78
is_numeric_string() optimization
...
# Original Patch by Matt Wilmas
2006-12-26 16:44:20 +00:00
Dmitry Stogov
9a98904ddd
Fixed wrong "type" argument to read_property() handler
2006-07-21 08:39:30 +00:00
Marcus Boerger
704eced26b
- MFH Fixed Bug #37667 (Object is not added into array returned by __get)
2006-07-10 00:36:28 +00:00
Marcus Boerger
9660548a22
- MFH Arginfo fix (Hannes)
2006-06-13 20:57:35 +00:00
Antony Dovgal
80d7ac0e9e
there is no %v in 5.2
2006-05-18 21:24:04 +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
Andi Gutmans
61e93ccfe8
- Update copyright notices to 2006
2006-01-04 23:53:05 +00:00
Antony Dovgal
4ce11c2a63
improve error messages
2005-12-05 13:39:52 +00:00
Antony Dovgal
ca0d712c3c
MFH: fix #35539 (typo in error message for ErrorException)
2005-12-04 11:47:00 +00:00
Marcus Boerger
16177d63f2
- MFH Move reflection to its own extension
...
# As discussed with RM
2005-11-30 21:46:26 +00:00
Sebastian Bergmann
f5117c81b3
MFH: Add an additional field $frame['object'] to the result array of debug_backtrace() that contains a reference to the respective object when the frame was called from an object.
2005-11-24 05:07:28 +00:00
Dmitry Stogov
496bc9fce3
Fixed memory leak
2005-08-16 10:49:25 +00:00
foobar
916815b779
Bump up the year
2005-08-03 13:30:58 +00:00
foobar
9f6e05964f
- Fixed bug #33967 (misuse of Exception constructor doesn\'t display errorfile)
2005-08-02 16:31:53 +00:00
Stanislav Malyshev
d5a1296008
fix various "Class entry requested for an object without PHP class" messages
...
when working with non-PHP objects.
# Using Z_OBJCE(object)->name is usually bad idea unless you know it's
# a pure PHP object
2005-06-27 18:13:13 +00:00
foobar
0e57528666
No c++ comments in C code
2005-04-19 11:41:04 +00:00
Dmitry Stogov
5b18b931d0
Fixed bug #30904 (segfault when recording soapclient into session).
2004-12-07 07:46:12 +00:00
Marcus Boerger
8bf02ee681
- Fix protos
2004-10-30 10:18:10 +00:00
Marcus Boerger
f775ea0ae3
- Fix memeleak
2004-09-27 22:06:10 +00:00
Andi Gutmans
96ab56e146
- Roll back VM commit
2004-09-09 16:47:22 +00:00
Andi Gutmans
8eb8850c90
- Some architectural changes:
...
a) We specialize opcodes according to op_type fields. Each opcode has to
be marked with which op_type's it uses.
b) We support different execution methods. Function handlers, switch()
and goto dispatching. goto seems to be the fastest but it really
depends on the compiler and how well it optimizes. I suggest playing
around with optimization flags.
- Warning: Things might break so keep us posted on how things are going.
(Dmitry, Andi)
2004-09-08 22:14:12 +00:00
Marcus Boerger
e9549a4f9c
- Be specific about visibility
2004-07-27 16:21:56 +00:00
Marcus Boerger
2b9c90efd3
- Add optional parameters $filename and $lineno to ErrorException
...
constructor to allow overwriting automatically retrieved information.
# It may be reasonable to delete the trace in case that feature is used.
2004-07-25 07:05:48 +00:00
Zeev Suraski
8a153add90
Fix prototypes
2004-07-20 10:43:19 +00:00
Zeev Suraski
7601484612
Add descriptions
2004-07-20 09:24:22 +00:00
Marcus Boerger
1cdf7e66f4
- Add new class ErrorException to encapsulate errors in exceptions
2004-07-15 22:21:36 +00:00
Wez Furlong
3ec72d3ed9
Revert; obviously I missed the function at the bottom of the file...
2004-05-20 17:59:27 +00:00
Wez Furlong
892ec5f535
Export this, so extensions may throw their own exception objects that
...
they have already instantiated.
2004-05-20 17:41:09 +00:00
Marcus Boerger
087ed66b69
Classnames shall start with an uppercase character
2004-04-13 20:25:49 +00:00
Andi Gutmans
979da66118
- Add hook for exception handler (Derick)
2004-04-13 15:19:21 +00:00
Andi Gutmans
7c72f6ff61
- Fix crash in exception handling (zend_exception_error(...) and
...
zend_eval_string_ex() were buggy (Dmitry, Andi)
2004-03-01 13:29:45 +00:00
foobar
c0885c93fe
Improve error messages
2004-02-25 13:11:00 +00:00
Derick Rethans
ca64573e1b
- Fixed bug #27391 (typo in Fatal Error message).
2004-02-25 10:43:36 +00:00
Zeev Suraski
00ed3bad29
Centralize exceptions code in zend_exceptions.[ch].
...
Remove zend_default_classes.h (use zend_exceptions.h instead)
NOTE: This currently breaks the build, fixes to php-src and pecl coming
soon
2004-02-12 10:38:14 +00:00
Zeev Suraski
d9630a595b
Exceptions updates:
...
- Enforce exceptions to be derived from class Exception. This allows
users to perform catch-all. It's not yet complete, so don't get
comfortable with it just yet :) Updates are coming soon.
- Implement zend_throw_exception() using zend_throw_exception_ex()
2004-02-12 10:24:40 +00:00