Lines Matching refs:zend_ce_exception

32 ZEND_API zend_class_entry *zend_ce_exception;  variable
49 …if (instanceof_function(class_type, zend_ce_exception) || instanceof_function(class_type, zend_ce_… in zend_implement_throwable()
55 ZSTR_VAL(zend_ce_exception->name), in zend_implement_throwable()
63 …return instanceof_function(Z_OBJCE_P(object), zend_ce_exception) ? zend_ce_exception : zend_ce_err… in i_get_exception_base()
370 zend_update_property_ex(zend_ce_exception, object, ZSTR_KNOWN(ZEND_STR_MESSAGE), &tmp); in ZEND_METHOD()
376 zend_update_property_ex(zend_ce_exception, object, ZSTR_KNOWN(ZEND_STR_CODE), &tmp); in ZEND_METHOD()
380 zend_update_property_ex(zend_ce_exception, object, ZSTR_KNOWN(ZEND_STR_PREVIOUS), previous); in ZEND_METHOD()
384 zend_update_property_ex(zend_ce_exception, object, ZSTR_KNOWN(ZEND_STR_SEVERITY), &tmp); in ZEND_METHOD()
388 zend_update_property_ex(zend_ce_exception, object, ZSTR_KNOWN(ZEND_STR_FILE), &tmp); in ZEND_METHOD()
394 zend_update_property_ex(zend_ce_exception, object, ZSTR_KNOWN(ZEND_STR_LINE), &tmp); in ZEND_METHOD()
837 zend_ce_exception = zend_register_internal_class_ex(&ce, NULL); in zend_register_default_exception()
838 zend_ce_exception->create_object = zend_default_exception_new; in zend_register_default_exception()
839 zend_class_implements(zend_ce_exception, 1, zend_ce_throwable); in zend_register_default_exception()
841 …zend_declare_property_string(zend_ce_exception, "message", sizeof("message")-1, "", ZEND_ACC_PROTE… in zend_register_default_exception()
842 …zend_declare_property_string(zend_ce_exception, "string", sizeof("string")-1, "", ZEND_ACC_PRIVATE… in zend_register_default_exception()
843 zend_declare_property_long(zend_ce_exception, "code", sizeof("code")-1, 0, ZEND_ACC_PROTECTED); in zend_register_default_exception()
844 zend_declare_property_null(zend_ce_exception, "file", sizeof("file")-1, ZEND_ACC_PROTECTED); in zend_register_default_exception()
845 zend_declare_property_null(zend_ce_exception, "line", sizeof("line")-1, ZEND_ACC_PROTECTED); in zend_register_default_exception()
846 zend_declare_property_null(zend_ce_exception, "trace", sizeof("trace")-1, ZEND_ACC_PRIVATE); in zend_register_default_exception()
847 zend_declare_property_null(zend_ce_exception, "previous", sizeof("previous")-1, ZEND_ACC_PRIVATE); in zend_register_default_exception()
850 zend_ce_error_exception = zend_register_internal_class_ex(&ce, zend_ce_exception); in zend_register_default_exception()
896 return zend_ce_exception; in zend_exception_get_default()
914 exception_ce = zend_ce_exception; in zend_throw_exception()
917 exception_ce = zend_ce_exception; in zend_throw_exception()
1022 …if (instanceof_function(ce_exception, zend_ce_exception) || instanceof_function(ce_exception, zend… in zend_exception_error()