[PHP-CVS] cvs: php-src /ext/pcre upgrade-pcre.php /ext/pcre/pcrelib config.h
nlopess Wed Dec 10 10:16:22 2008 UTC Modified files: /php-src/ext/pcre upgrade-pcre.php /php-src/ext/pcre/pcrelib config.h Log: MFB: export pcre API when using gcc 4 http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/upgrade-pcre.php?r1=1.3&r2=1.4&diff_format=u Index: php-src/ext/pcre/upgrade-pcre.php diff -u php-src/ext/pcre/upgrade-pcre.php:1.3 php-src/ext/pcre/upgrade-pcre.php:1.4 --- php-src/ext/pcre/upgrade-pcre.php:1.3 Mon Jan 14 09:40:53 2008 +++ php-src/ext/pcre/upgrade-pcre.php Wed Dec 10 10:16:20 2008 @@ -106,6 +106,16 @@ #define SUPPORT_UCP #define SUPPORT_UTF8 +#if defined(__GNUC__) && __GNUC__ >= 4 +# ifdef __cplusplus +# define PCRE_EXP_DECLextern "C" __attribute__ ((visibility("default"))) +# else +# define PCRE_EXP_DECLextern __attribute__ ((visibility("default"))) +# endif +# define PCRE_EXP_DEFN __attribute__ ((visibility("default"))) +# define PCRE_EXP_DATA_DEFN__attribute__ ((visibility("default"))) +#endif + '; http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/config.h?r1=1.8&r2=1.9&diff_format=u Index: php-src/ext/pcre/pcrelib/config.h diff -u php-src/ext/pcre/pcrelib/config.h:1.8 php-src/ext/pcre/pcrelib/config.h:1.9 --- php-src/ext/pcre/pcrelib/config.h:1.8 Sun Sep 14 14:37:10 2008 +++ php-src/ext/pcre/pcrelib/config.h Wed Dec 10 10:16:20 2008 @@ -8,6 +8,16 @@ #define SUPPORT_UCP #define SUPPORT_UTF8 +#if defined(__GNUC__) && __GNUC__ >= 4 +# ifdef __cplusplus +# define PCRE_EXP_DECLextern "C" __attribute__ ((visibility("default"))) +# else +# define PCRE_EXP_DECLextern __attribute__ ((visibility("default"))) +# endif +# define PCRE_EXP_DEFN __attribute__ ((visibility("default"))) +# define PCRE_EXP_DATA_DEFN__attribute__ ((visibility("default"))) +#endif + /* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/pcre upgrade-pcre.php
nlopess Mon Jan 14 09:40:53 2008 UTC Modified files: /php-src/ext/pcre upgrade-pcre.php Log: MFB5.2: fix script for files with short names http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/upgrade-pcre.php?r1=1.2&r2=1.3&diff_format=u Index: php-src/ext/pcre/upgrade-pcre.php diff -u php-src/ext/pcre/upgrade-pcre.php:1.2 php-src/ext/pcre/upgrade-pcre.php:1.3 --- php-src/ext/pcre/upgrade-pcre.php:1.2 Tue Sep 11 16:19:14 2007 +++ php-src/ext/pcre/upgrade-pcre.php Mon Jan 14 09:40:53 2008 @@ -37,9 +37,9 @@ if ($file[0] === '.' || $file === 'CVS' || - substr_compare($file, '.lo', -3, 3) == 0 || - substr_compare($file, '.loT', -4, 4) == 0 || - substr_compare($file, '.o', -2, 2) == 0) continue; + @substr_compare($file, '.lo', -3, 3) === 0 || + @substr_compare($file, '.loT', -4, 4) === 0 || + @substr_compare($file, '.o', -2, 2) === 0) continue; $file = "$path/$file"; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php