Fix bug #50140: With default compilation option, php symbols are unresolved for nsapi
authorUwe Schindler <thetaphi@php.net>
Tue, 17 Nov 2009 21:17:49 +0000 (21:17 +0000)
committerUwe Schindler <thetaphi@php.net>
Tue, 17 Nov 2009 21:17:49 +0000 (21:17 +0000)
NEWS
sapi/nsapi/nsapi.c

diff --git a/NEWS b/NEWS
index e631fd8fce06aea31b0a542b9f5cf5d713a1e8ae..82a7fe64c736842ca12399ca42b4bf6561db3fc8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,8 @@ PHP                                                                        NEWS
 - Fixed memory leak in extension loading when an error occurs on Windows.
   (Pierre)
 
+- Fixed bug #50140 (With default compilation option, php symbols are
+  unresolved for nsapi). (Uwe Schindler)
 - Fixed bug #50174 (Incorrectly matched docComment). (Felipe)
 - Fixed bug #50158 (FILTER_VALIDATE_EMAIL fails with valid addresses
   containing = or ?). (Pierrick)
index 4ab461c2beeb6d5e0e5900630ef99e56ed37bbd7..5fb1c3750cbf6d6db8ebbbb461b9344721a6640b 100644 (file)
  */
 #include "nsapi.h"
 
+/* fix for gcc4 visibility issue */
+#ifndef PHP_WIN32
+# undef NSAPI_PUBLIC
+# define NSAPI_PUBLIC PHPAPI
+#endif
+
 #define NSLS_D         struct nsapi_request_context *request_context
 #define NSLS_DC                , NSLS_D
 #define NSLS_C         request_context