diff options
author | Zeev Suraski <zeev@php.net> | 2004-02-12 10:24:40 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2004-02-12 10:24:40 +0000 |
commit | d9630a595b94e54a1837bf773a3c5f7fade5d75b (patch) | |
tree | e111a12ab3ce3d2d03070d509df41b7f3784c81b /Zend/zend_execute_API.c | |
parent | 559b14611df00e3b73600a51eb6233c181cca325 (diff) | |
download | php-git-d9630a595b94e54a1837bf773a3c5f7fade5d75b.tar.gz |
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()
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index ee1d88ca68..72dd623979 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1221,13 +1221,6 @@ void zend_throw_exception_internal(zval *exception TSRMLS_DC) EG(current_execute_data)->opline = &EG(active_op_array)->opcodes[EG(active_op_array)->last-1-1]; } -ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC) -{ - if (exception == NULL) { - zend_error(E_ERROR, "Need to supply object when throwing exception"); - } - zend_throw_exception_internal(exception TSRMLS_CC); -} |