mirror of
https://github.com/php/php-src.git
synced 2026-04-02 05:32:28 +02:00
Merge branch 'PHP-8.2'
* PHP-8.2: Reorder conditions to avoid valgrind "Conditional jump or move depends on uninitialised value" warning.
This commit is contained in:
@@ -2202,9 +2202,10 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
|
||||
|
||||
/* see bug #15471 (old BTS) */
|
||||
if (persistent_script->script.filename) {
|
||||
if (!EG(current_execute_data) || !EG(current_execute_data)->opline ||
|
||||
if (!EG(current_execute_data) ||
|
||||
!EG(current_execute_data)->func ||
|
||||
!ZEND_USER_CODE(EG(current_execute_data)->func->common.type) ||
|
||||
!EG(current_execute_data)->opline ||
|
||||
EG(current_execute_data)->opline->opcode != ZEND_INCLUDE_OR_EVAL ||
|
||||
(EG(current_execute_data)->opline->extended_value != ZEND_INCLUDE_ONCE &&
|
||||
EG(current_execute_data)->opline->extended_value != ZEND_REQUIRE_ONCE)) {
|
||||
|
||||
Reference in New Issue
Block a user