cvs: ZendEngine2 / zend_object_handlers.c
| From: | Marcus Boerger | Date: | Thu, 06 Oct 2005 18:46:02 +0000 |
| Subject: | cvs: ZendEngine2 / zend_object_handlers.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4203@lists.php.net to get a copy of this message | ||
helly Thu Oct 6 14:46:02 2005 EDT
Modified files:
/ZendEngine2 zend_object_handlers.c
Log:
- Any php object converts to boolean as true
http://cvs.php.net/diff.php/ZendEngine2/zend_object_handlers.c?r1=1.148&r2=1.149&ty=u
Index: ZendEngine2/zend_object_handlers.c
diff -u ZendEngine2/zend_object_handlers.c:1.148 ZendEngine2/zend_object_handlers.c:1.149
--- ZendEngine2/zend_object_handlers.c:1.148 Wed Oct 5 15:02:27 2005
+++ ZendEngine2/zend_object_handlers.c Thu Oct 6 14:46:01 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_object_handlers.c,v 1.148 2005/10/05 19:02:27 helly Exp $ */
+/* $Id: zend_object_handlers.c,v 1.149 2005/10/06 18:46:01 helly Exp $ */
#include "zend.h"
#include "zend_globals.h"
@@ -1038,6 +1038,10 @@
}
}
return FAILURE;
+ case IS_BOOL:
+ INIT_PZVAL(writeobj);
+ ZVAL_BOOL(writeobj, 1);
+ return SUCCESS;
default:
break;
}