From 758503e26fe809a90a92fcc44651179f18d3b84b Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 20 Jun 2005 01:08:57 +0000 Subject: - Show true/flase --- ext/reflection/php_reflection.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 56af747dee..58f763b8aa 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -563,7 +563,13 @@ static void _parameter_string(string *str, zend_function *fptr, struct _zend_arg 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); -- cgit v1.2.1