Skip to content

Commit d7f6242

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: fix: indirect_return compilation warning
2 parents cc4e958 + c936c02 commit d7f6242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_portability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ extern "C++" {
701701
# define ZEND_VOIDP(ptr) (ptr)
702702
#endif
703703

704-
#if defined(__GNUC__) && ZEND_GCC_VERSION >= 9000
704+
#if __has_attribute(__indirect_return__)
705705
# define ZEND_INDIRECT_RETURN __attribute__((__indirect_return__))
706706
#else
707707
# define ZEND_INDIRECT_RETURN

0 commit comments

Comments
 (0)