[php-src] PR #12090: Delay notice emission until end of opcode

From: Date: Thu, 31 Aug 2023 13:37:57 +0000
Subject: [php-src] PR #12090: Delay notice emission until end of opcode
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-23538@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12090 Author: iluuu1994 Rebased and extended version of GH-6903. I'd like to see how big the performance hit for RT_CONSTANT is. We should only check for (opline) != &EG(delayed_error_op)[0] in the relevant opcodes (those listed in ZEND_HANDLE_DELAYED_ERROR, and any that can directly follow any of them). It might also be an option to create an ANY, ANY, OP_DATA=ANY specialization that includes this check for CONST args. This should not bloat the VM, and the slow arg fetching seems acceptable for the warning case. Then there's _get_op_data_zval_ptr_r and _get_op_data_zval_ptr_deref_r. We'll have to check where they are called from.

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