diff options
author | Marcus Boerger <helly@php.net> | 2005-06-20 01:08:57 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-06-20 01:08:57 +0000 |
commit | 758503e26fe809a90a92fcc44651179f18d3b84b (patch) | |
tree | 3e4e882ba04a7971a6be706b0f608c868b394dc4 /ext | |
parent | 6a58298bf6ff53fe6a8604b71c9ea938a7966de7 (diff) | |
download | php-git-758503e26fe809a90a92fcc44651179f18d3b84b.tar.gz |
- Show true/flase
Diffstat (limited to 'ext')
-rw-r--r-- | ext/reflection/php_reflection.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); |