cvs: ZendEngine2 / zend_interfaces.c
| From: | Marcus Boerger | Date: | Tue, 05 Apr 2005 09:16:28 +0000 |
| Subject: | cvs: ZendEngine2 / zend_interfaces.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3536@lists.php.net to get a copy of this message | ||
helly Tue Apr 5 05:16:28 2005 EDT
Modified files:
/ZendEngine2 zend_interfaces.c
Log:
- Just return FAILURE & allow NULL without emmidiate error
http://cvs.php.net/diff.php/ZendEngine2/zend_interfaces.c?r1=1.30&r2=1.31&ty=u
Index: ZendEngine2/zend_interfaces.c
diff -u ZendEngine2/zend_interfaces.c:1.30 ZendEngine2/zend_interfaces.c:1.31
--- ZendEngine2/zend_interfaces.c:1.30 Fri Mar 18 20:11:48 2005
+++ ZendEngine2/zend_interfaces.c Tue Apr 5 05:16:27 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_interfaces.c,v 1.30 2005/03/19 01:11:48 andi Exp $ */
+/* $Id: zend_interfaces.c,v 1.31 2005/04/05 09:16:27 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -409,8 +409,8 @@
switch(Z_TYPE_P(retval)) {
case IS_NULL:
/* we could also make this '*buf_len = 0' but this allows to skip variables */
- result = FAILURE;
- break;
+ zval_ptr_dtor(&retval);
+ return FAILURE;
case IS_STRING:
*buffer = estrndup(Z_STRVAL_P(retval), Z_STRLEN_P(retval));
*buf_len = Z_STRLEN_P(retval);