[php-src] PR #16784: Fix GH-16770: Tracing JIT type mismatch when returning UNDEF
| From: | nielsdos | Date: | Wed, 13 Nov 2024 17:31:53 +0000 |
| Subject: | [php-src] PR #16784: Fix GH-16770: Tracing JIT type mismatch when returning UNDEF | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29626@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16784
Author: nielsdos
When returning an UNDEF value, it actually becomes NULL. The following code took this into account:
https://github.com/php/php-src/blob/28344e0445bc2abae8dc5f1376aa0ff350e6d66d/ext/opcache/jit/zend_jit_trace.c#L2196-L2199
But the stack does not update the type to NULL, causing a mismatch.