summaryrefslogtreecommitdiff
path: root/Zend/zend_default_classes.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-10-15 06:23:07 +0000
committerMarcus Boerger <helly@php.net>2003-10-15 06:23:07 +0000
commitd148ff770f877a1b0cf823eb4c5130c64308d9ea (patch)
tree44a0b507dbdaac48c9bcf79279d2e0a92400c415 /Zend/zend_default_classes.c
parentfff7c6098bee4aa836c60876b160de44fdfa7fcd (diff)
downloadphp-git-d148ff770f877a1b0cf823eb4c5130c64308d9ea.tar.gz
Fix cast function
Diffstat (limited to 'Zend/zend_default_classes.c')
-rw-r--r--Zend/zend_default_classes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_default_classes.c b/Zend/zend_default_classes.c
index 4479921544..4bd6850b8f 100644
--- a/Zend/zend_default_classes.c
+++ b/Zend/zend_default_classes.c
@@ -358,7 +358,7 @@ static zend_function_entry default_exception_functions[] = {
{NULL, NULL, NULL}
};
-void zend_cast_exception(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC)
+int zend_cast_exception(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC)
{
if (type == IS_STRING) {
zval fname, *retval;
@@ -367,10 +367,10 @@ void zend_cast_exception(zval *readobj, zval *writeobj, int type, int should_fre
if (call_user_function_ex(NULL, &readobj, &fname, &retval, 0, NULL, 0, NULL TSRMLS_CC) == SUCCESS) {
ZVAL_STRING(writeobj, Z_STRVAL_P(retval), 1);
zval_ptr_dtor(&retval);
- return;
+ return SUCCESS;
}
}
- Z_TYPE_P(writeobj) = IS_NULL;
+ return FAILURE;
}
static void zend_register_default_exception(TSRMLS_D)