]> granicus.if.org Git - php/commitdiff
- Fixed bug #54895 (Fix compiling with older gcc version without need for membar_prod...
authorFelipe Pena <felipe@php.net>
Fri, 20 May 2011 21:24:51 +0000 (21:24 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 20 May 2011 21:24:51 +0000 (21:24 +0000)
  patch by: mhei at heimpold dot de

NEWS
ext/standard/php_crypt_r.c

diff --git a/NEWS b/NEWS
index cfec4639abaf44640dc601e6d0d66666d79b14fe..405d763abfbc93ec24ea660299149ee0bcba2f1d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,8 @@ PHP                                                                        NEWS
   . Implemented FR #54459 (Range function accuracy). (Adam)
   . Added PHP_MANDIR constant telling where the manpages were installed into,
     and an --man-dir argument to php-config. (Hannes)
+  . Fixed bug #54895 (Fix compiling with older gcc version without need for
+    membar_producer macro). (mhei at heimpold dot de)
   . Fixed bug #54723 (getimagesize() doesn't check the full ico signature).
     (Scott)
   . Fixed bug #54580 (get_browser() segmentation fault when browscap ini
index c6700d6618072cb3868e8ed9756c2e75f7236bd4..d263269537b0fe3c51879faa9399309c7432b551 100644 (file)
@@ -94,7 +94,7 @@ void _crypt_extended_init_r(void)
        if (!initialized) {
 #ifdef PHP_WIN32
                InterlockedIncrement(&initialized);
-#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2))
+#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 1))
                __sync_fetch_and_add(&initialized, 1);
 #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */
                membar_producer();