[php-src] master: Merge branch 'PHP-8.6'
| From: | Weilin Du | Date: | Thu, 19 Nov 2026 09:47:53 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.6' | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143868@lists.php.net to get a copy of this message | ||
Author: Weilin Du (LamentXU123)
Date: 2026-11-19T17:43:01+08:00
Commit: https://github.com/php/php-src/commit/32f1eaf96c1e69d1939d3620812b3e0ec71cac4c
Raw diff: https://github.com/php/php-src/commit/32f1eaf96c1e69d1939d3620812b3e0ec71cac4c.diff
Merge branch 'PHP-8.6'
* PHP-8.6:
Fix null handler generation for unspecialized VMs (#25579)
Changed paths:
M Zend/zend_vm_gen.php
Diff:
diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php
index 04f958a469a9..5f724f904a5e 100755
--- a/Zend/zend_vm_gen.php
+++ b/Zend/zend_vm_gen.php
@@ -1463,18 +1463,7 @@ function gen_labels($f, $spec, $kind, $prolog, &$specs, $switch_labels =
array()
while ($next != $num) {
// If some opcode numbers are not used then fill hole with pointers
// to handler of undefined opcode
- switch ($kind) {
- case ZEND_VM_KIND_CALL:
- case ZEND_VM_KIND_TAILCALL:
- out($f,$prolog."ZEND_NULL{$variant}_HANDLER,\n");
- break;
- case ZEND_VM_KIND_SWITCH:
- out($f,$prolog."-1,\n");
- break;
- case ZEND_VM_KIND_GOTO:
- out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
- break;
- }
+ gen_null_label($f, $kind, $prolog);
$next++;
}
if ($num >= 256) {
@@ -1510,18 +1499,7 @@ function gen_labels($f, $spec, $kind, $prolog, &$specs, $switch_labels =
array()
}
$list[] = $dsc["op"];
} else {
- switch ($kind) {
- case ZEND_VM_KIND_CALL:
- case ZEND_VM_KIND_TAILCALL:
- out($f,$prolog."ZEND_NULL{$variant}_HANDLER,\n");
- break;
- case ZEND_VM_KIND_SWITCH:
- out($f,$prolog."-1,\n");
- break;
- case ZEND_VM_KIND_GOTO:
- out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
- break;
- }
+ gen_null_label($f, $kind, $prolog);
$list[] = null;
}
}