]> granicus.if.org Git - php/commitdiff
Fix symtable_cache_limit assignment in phpdbg
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 13 Sep 2019 21:49:50 +0000 (23:49 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 13 Sep 2019 22:25:07 +0000 (00:25 +0200)
The meaning of the limit changed in 7.4, it now points one past the
end. Adjust code accordingly.

sapi/phpdbg/phpdbg.c

index 17de15fa9130d50fc06748b575fbea0928d24ba7..8b01acdfe23df82bf9996cb54d056ea8def064a3 100644 (file)
@@ -272,7 +272,7 @@ static PHP_MSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
 static PHP_RINIT_FUNCTION(phpdbg) /* {{{ */
 {
        /* deactivate symbol table caching to have these properly destroyed upon stack leaving (especially important for watchpoints) */
-       EG(symtable_cache_limit) = EG(symtable_cache) - 1;
+       EG(symtable_cache_limit) = EG(symtable_cache);
 
        return SUCCESS;
 } /* }}} */