[php-src] PR #21476: zend_vm_gen.php: Make room for new `zend_vm_opcodes_flags` flags
| From: | arnaud-lb | Date: | Fri, 20 Mar 2026 14:23:09 +0000 |
| Subject: | [php-src] PR #21476: zend_vm_gen.php: Make room for new `zend_vm_opcodes_flags` flags | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35278@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21476
Author: arnaud-lb
Make room for new
zend_vm_opcodes_flags flags.
I needed several times to add new ZEND_VM_OP_ or ZEND_VM_EXT_ flags, but
there is no room left. Here I make some room to facilitate future experiments that may need new
flags.
Essentially I'm promoting zend_get_opcode_flags() to a uint64_t. In
zend_vm_gen.php I split the OP and EXT flags in two separate sets to maintain 32bit
support. In Zend/zend_vm_opcodes.c we can unify them again.