cvs: ZendEngine2 / zend_default_classes.c

From: Date: Wed, 15 Oct 2003 06:23:07 +0000
Subject: cvs: ZendEngine2 / zend_default_classes.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1905@lists.php.net to get a copy of this message
helly Wed Oct 15 02:23:07 2003 EDT Modified files: /ZendEngine2 zend_default_classes.c Log: Fix cast function Index: ZendEngine2/zend_default_classes.c diff -u ZendEngine2/zend_default_classes.c:1.39 ZendEngine2/zend_default_classes.c:1.40 --- ZendEngine2/zend_default_classes.c:1.39 Wed Sep 17 06:15:00 2003 +++ ZendEngine2/zend_default_classes.c Wed Oct 15 02:23:07 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_default_classes.c,v 1.39 2003/09/17 10:15:00 helly Exp $ */ +/* $Id: zend_default_classes.c,v 1.40 2003/10/15 06:23:07 helly Exp $ */ #include "zend.h" #include "zend_API.h" @@ -358,7 +358,7 @@ {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 @@ 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)

« previous php.zend-engine.cvs (#1905) next »