cvs: ZendEngine2 / zend_API.c

From: Date: Wed, 29 Sep 2004 20:57:07 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3062@lists.php.net to get a copy of this message
helly Wed Sep 29 16:57:07 2004 EDT Modified files: /ZendEngine2 zend_API.c Log: - MFB (synch correctly not only for one problem) http://cvs.php.net/diff.php/ZendEngine2/zend_API.c?r1=1.267&r2=1.268&ty=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.267 ZendEngine2/zend_API.c:1.268 --- ZendEngine2/zend_API.c:1.267 Wed Sep 29 16:24:35 2004 +++ ZendEngine2/zend_API.c Wed Sep 29 16:57:07 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.267 2004/09/29 20:24:35 helly Exp $ */ +/* $Id: zend_API.c,v 1.268 2004/09/29 20:57:07 helly Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -338,12 +338,13 @@ *pl = Z_STRLEN_PP(arg); break; case IS_OBJECT: { - SEPARATE_ZVAL_IF_NOT_REF(arg); - if (Z_OBJ_HANDLER_PP(arg, cast_object) - && Z_OBJ_HANDLER_PP(arg, cast_object)(*arg, *arg, IS_STRING, 0 TSRMLS_CC) == SUCCESS) { - *pl = Z_STRLEN_PP(arg); - *p = Z_STRVAL_PP(arg); - break; + if (Z_OBJ_HANDLER_PP(arg, cast_object)) { + SEPARATE_ZVAL_IF_NOT_REF(arg); + if (Z_OBJ_HANDLER_PP(arg, cast_object)(*arg, *arg, IS_STRING, 0 TSRMLS_CC) == SUCCESS) { + *pl = Z_STRLEN_PP(arg); + *p = Z_STRVAL_PP(arg); + break; + } } }

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