Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  Workaraound against false positive GCC array bounds error (#15078)
This commit is contained in:
Dmitry Stogov 2024-07-24 08:21:37 +03:00
commit 1511172b1b
No known key found for this signature in database

View File

@ -2635,8 +2635,8 @@ static void zend_check_magic_method_no_return_type(
ZEND_API void zend_check_magic_method_implementation(const zend_class_entry *ce, const zend_function *fptr, zend_string *lcname, int error_type) /* {{{ */
{
if (ZSTR_VAL(fptr->common.function_name)[0] != '_'
|| ZSTR_VAL(fptr->common.function_name)[1] != '_') {
if (ZSTR_VAL(lcname)[0] != '_'
|| ZSTR_VAL(lcname)[1] != '_') {
return;
}