Skip to content

Commit 1511172

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Workaraound against false positive GCC array bounds error (#15078)
2 parents e43d9c7 + d41e97a commit 1511172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_API.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,8 +2635,8 @@ static void zend_check_magic_method_no_return_type(
26352635

26362636
ZEND_API void zend_check_magic_method_implementation(const zend_class_entry *ce, const zend_function *fptr, zend_string *lcname, int error_type) /* {{{ */
26372637
{
2638-
if (ZSTR_VAL(fptr->common.function_name)[0] != '_'
2639-
|| ZSTR_VAL(fptr->common.function_name)[1] != '_') {
2638+
if (ZSTR_VAL(lcname)[0] != '_'
2639+
|| ZSTR_VAL(lcname)[1] != '_') {
26402640
return;
26412641
}
26422642

0 commit comments

Comments
 (0)