# PHP 5.3 build patch

- Thread: https://externals.io/message/43802
- Original archive: https://news-web.php.net/php.internals/43802
- Started by Brian J. France on 2009-04-29T14:21:16+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #43802 — Brian J. France — 2009-04-29T14:21:16+00:00

URL: https://externals.io/message/43802#43802

Anybody have a problem with me committing the patch below?

We still use 2.9.5 for our FreeBSD builds (ya, I know its old) and  
while building extensions we get:

Zend/zend.h:379: warning: `always_inline' attribute directive ignored
Zend/zend.h:383: warning: `always_inline' attribute directive ignored
Zend/zend.h:387: warning: `always_inline' attribute directive ignored
Zend/zend.h:391: warning: `always_inline' attribute directive ignored
Zend/zend.h:395: warning: `always_inline' attribute directive ignored
Zend/zend.h:399: warning: `always_inline' attribute directive ignored
Zend/zend.h:403: warning: `always_inline' attribute directive ignored
Zend/zend.h:407: warning: `always_inline' attribute directive ignored

Adding the patch removes the warning.

Brian

Index: Zend/zend.h
===================================================================
RCS file: /repository/ZendEngine2/zend.h,v
retrieving revision 1.293.2.11.2.9.2.33
diff -u -p -r1.293.2.11.2.9.2.33 zend.h
--- Zend/zend.h	18 Mar 2009 01:08:12 -0000	1.293.2.11.2.9.2.33
+++ Zend/zend.h	29 Apr 2009 14:16:28 -0000
@@ -361,7 +361,11 @@ struct _zval_struct {
  #define Z_SET_ISREF_TO(z, isref)	Z_SET_ISREF_TO_P(&(z), isref)

  #if defined(__GNUC__)
+#if __GNUC__ >= 3
  #define zend_always_inline inline __attribute__((always_inline))
+#else
+#define zend_always_inline inline
+#endif
  #elif defined(_MSC_VER)
  #define zend_always_inline __forceinline
  #else
