mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Avoid reference counting (the value may be a persistent string)
This commit is contained in:
parent
d481d495cc
commit
fcb13fab6e
@ -543,6 +543,9 @@ static void _const_string(smart_str *str, char *name, zval *value, char *indent)
|
||||
if (Z_TYPE_P(value) == IS_ARRAY) {
|
||||
smart_str_append_printf(str, "%s Constant [ %s %s ] { Array }\n",
|
||||
indent, type, name);
|
||||
} else if (Z_TYPE_P(value) == IS_STRING) {
|
||||
smart_str_append_printf(str, "%s Constant [ %s %s ] { %s }\n",
|
||||
indent, type, name, Z_STRVAL_P(value));
|
||||
} else {
|
||||
zend_string *value_str = zval_get_string(value);
|
||||
smart_str_append_printf(str, "%s Constant [ %s %s ] { %s }\n",
|
||||
|
Loading…
Reference in New Issue
Block a user