diff options
author | Zeev Suraski <zeev@php.net> | 2004-02-12 10:38:14 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2004-02-12 10:38:14 +0000 |
commit | 00ed3bad290543b2145339fc3c3e7c4d81b7c32d (patch) | |
tree | a9dd9e51ed44bc3ec6ec89430ac953f45cdb9bbd /Zend/zend_exceptions.h | |
parent | e189d89672167dee73d53ac642c2a85979249d83 (diff) | |
download | php-git-00ed3bad290543b2145339fc3c3e7c4d81b7c32d.tar.gz |
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
Diffstat (limited to 'Zend/zend_exceptions.h')
-rw-r--r-- | Zend/zend_exceptions.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Zend/zend_exceptions.h b/Zend/zend_exceptions.h index 68dd208f20..b5653c8488 100644 --- a/Zend/zend_exceptions.h +++ b/Zend/zend_exceptions.h @@ -12,18 +12,24 @@ | obtain it through the world-wide-web, please send a note to | | license@zend.com so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Sterling Hughes <sterling@php.net> | + | Authors: Andi Gutmans <andi@zend.com> | | Marcus Boerger <helly@php.net> | + | Sterling Hughes <sterling@php.net> | + | Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ /* $Id$ */ -#ifndef ZEND_DEFAULT_CLASSES_H -#define ZEND_DEFAULT_CLASSES_H +#ifndef ZEND_EXCEPTIONS_H +#define ZEND_EXCEPTIONS_H BEGIN_EXTERN_C() +void zend_throw_exception_internal(zval *exception TSRMLS_DC); + +void zend_register_default_exception(TSRMLS_D); + ZEND_API zend_class_entry *zend_exception_get_default(void); ZEND_API void zend_register_default_classes(TSRMLS_D); @@ -32,6 +38,7 @@ ZEND_API void zend_register_default_classes(TSRMLS_D); ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC); ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...); ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC); +ZEND_API void zend_clear_exception(TSRMLS_D); /* show an exception using zend_error(E_ERROR,...) */ ZEND_API void zend_exception_error(zval *exception TSRMLS_DC); |