cvs: ZendEngine2 / zend_reflection_api.c
| From: | Marcus Boerger | Date: | Mon, 20 Jun 2005 01:08:59 +0000 |
| Subject: | cvs: ZendEngine2 / zend_reflection_api.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3833@lists.php.net to get a copy of this message | ||
helly Sun Jun 19 21:08:59 2005 EDT
Modified files:
/ZendEngine2 zend_reflection_api.c
Log:
- Show true/flase
http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.159&r2=1.160&ty=u
Index: ZendEngine2/zend_reflection_api.c
diff -u ZendEngine2/zend_reflection_api.c:1.159 ZendEngine2/zend_reflection_api.c:1.160
--- ZendEngine2/zend_reflection_api.c:1.159 Thu Jun 16 19:02:23 2005
+++ ZendEngine2/zend_reflection_api.c Sun Jun 19 21:08:57 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_reflection_api.c,v 1.159 2005/06/16 23:02:23 helly Exp $ */
+/* $Id: zend_reflection_api.c,v 1.160 2005/06/20 01:08:57 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
#include "zend_exceptions.h"
@@ -563,7 +563,13 @@
zv_copy = precv->op2.u.constant;
zv = &zv_copy;
zval_update_constant(&zv, (void*)1 TSRMLS_CC);
- if (Z_TYPE_P(zv) == IS_NULL) {
+ if (Z_TYPE_P(zv) == IS_BOOL) {
+ if (Z_LVAL_P(zv)) {
+ string_write(str, "true", sizeof("true")-1);
+ } else {
+ string_write(str, "false", sizeof("false")-1);
+ }
+ } else if (Z_TYPE_P(zv) == IS_NULL) {
string_write(str, "NULL", sizeof("NULL")-1);
} else if (Z_TYPE_P(zv) == IS_STRING) {
string_write(str, "'", sizeof("'")-1);