[php-src] PR #17319: Fix GH-17307: Internal closure causes JIT failure

From: Date: Wed, 01 Jan 2025 21:12:35 +0000
Subject: [php-src] PR #17319: Fix GH-17307: Internal closure causes JIT failure
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30191@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17319 Author: nielsdos bcadd(...) is a closure for an internal function, and zend_jit_push_call_frame takes into account both last_var and the difference in argument numbers not only for user code but also for internal code. However, this is inconsistent with zend_vm_calc_used_stack, causing argument corruption. Making this consistent fixes the issue. I could only reproduce the assertion failure when using Valgrind. This needs a backport to 8.3, which I can do if this is right.

« previous php.git-pulls (#30191) next »