mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Do not display EXT_TYPE_UNUSED in phpdbg opcodes
This commit is contained in:
parent
b3ab7c13dc
commit
a919fe8606
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ static inline char *phpdbg_decode_op(zend_op_array *ops, znode_op *op, uint32_t
|
||||||
{
|
{
|
||||||
char *decode = NULL;
|
char *decode = NULL;
|
||||||
|
|
||||||
switch (type &~ EXT_TYPE_UNUSED) {
|
switch (type) {
|
||||||
case IS_CV: {
|
case IS_CV: {
|
||||||
zend_string *var = ops->vars[EX_VAR_TO_NUM(op->var)];
|
zend_string *var = ops->vars[EX_VAR_TO_NUM(op->var)];
|
||||||
asprintf(&decode, "$%.*s%c", ZSTR_LEN(var) <= 19 ? (int) ZSTR_LEN(var) : 18, ZSTR_VAL(var), ZSTR_LEN(var) <= 19 ? 0 : '+');
|
asprintf(&decode, "$%.*s%c", ZSTR_LEN(var) <= 19 ? (int) ZSTR_LEN(var) : 18, ZSTR_VAL(var), ZSTR_LEN(var) <= 19 ? 0 : '+');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue