mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
- Show true/flase
This commit is contained in:
parent
6a58298bf6
commit
758503e26f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user