mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
- use the handler name zval directly when listing stati, too
This commit is contained in:
parent
0ff7bc29d9
commit
31632b3458
1 changed files with 2 additions and 5 deletions
|
@ -1159,11 +1159,8 @@ static inline zval *php_output_handler_status(php_output_handler *handler, zval
|
|||
array_init(entry);
|
||||
}
|
||||
|
||||
if (Z_TYPE_P(handler->name) == IS_UNICODE) {
|
||||
add_assoc_unicodel(entry, "name", Z_USTRVAL_P(handler->name), Z_USTRLEN_P(handler->name), 1);
|
||||
} else {
|
||||
add_assoc_stringl(entry, "name", Z_STRVAL_P(handler->name), Z_STRLEN_P(handler->name), 1);
|
||||
}
|
||||
ZVAL_ADDREF(handler->name);
|
||||
add_assoc_zval(entry, "name", handler->name);
|
||||
add_assoc_long(entry, "type", (long) (handler->flags & 0xf));
|
||||
add_assoc_long(entry, "flags", (long) handler->flags);
|
||||
add_assoc_long(entry, "level", (long) handler->level);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue