Skip to content

Commit c936c02

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: fix: indirect_return compilation warning
2 parents f340854 + 55514a1 commit c936c02

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
@@ -692,7 +692,7 @@ extern "C++" {
692692
# define ZEND_VOIDP(ptr) (ptr)
693693
#endif
694694

695-
#if defined(__GNUC__) && ZEND_GCC_VERSION >= 9000
695+
#if __has_attribute(__indirect_return__)
696696
# define ZEND_INDIRECT_RETURN __attribute__((__indirect_return__))
697697
#else
698698
# define ZEND_INDIRECT_RETURN

0 commit comments

Comments
 (0)