php-src/ext
Peter Kokot 69b20f51e1 Disable PACKAGE_* preprocessor symbols
Autoconf defines PACKAGE_* symbols:
- PACKAGE_NAME
- PACKAGE_VERSION
- PACKAGE_TARNAME
- PACKAGE_STRING
- PACKAGE_BUGREPORT
- PACKAGE_URL

and appends them to the generated config.h.in files. With AC_INIT change
via afd52f9d99 where package version, URL,
bug report location and similar meta data are defined, these
preprocessor macros are then non empty strings in the generated
configuration header file. When using phpize, PHP shares the config
files in extensions, warnings of redefined macros appear, such as:
- `warning: 'PACKAGE_NAME' macro redefined`

This patch now disables these non utilized symbols in the generated
config header files.

Better practice would be to include only API specific headers where
needed but this would require even more refactorings. Some extensions
such as pcre, pgsql, and pdo_pgsql solve this issue by undefining some
of these symbols before including the library configuration headers in
the code also. Because these symbols can be defined by any library which
uses Autotools.

Additionally, the unused PACKAGE_* symbols were cleaned for the bundled
libmbfl library and with this patch not needed undef code removed.
2019-04-13 07:00:17 +02:00
..
bcmath Merge branch 'PHP-7.3' into PHP-7.4 2019-03-14 17:26:17 +01:00
bz2 Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
calendar Add AS_HELP_STRING to *nix build configure options 2019-03-07 20:36:59 +01:00
com_dotnet Merge branch 'PHP-7.3' into PHP-7.4 2019-03-18 19:26:08 +01:00
ctype Add AS_HELP_STRING to *nix build configure options 2019-03-07 20:36:59 +01:00
curl Remove curl gnutls locking 2019-04-11 16:45:45 +02:00
date Avoid time(NULL) call if explicit timestamp given 2019-04-08 09:43:47 +02:00
dba Remove extension readmes 2019-03-19 20:25:32 +01:00
dom Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
enchant Cleanup unused module globals 2019-03-12 13:44:05 +03:00
exif Remove dead JPEG2000 code 2019-04-02 21:18:06 +03:00
ffi Fixed ext/ffi/tests/044.phpt failure on 32-bit Linux 2019-04-09 16:12:13 +03:00
fileinfo Fix unused variable warnings in libmagic 2019-04-12 12:03:26 +02:00
filter Added range options to the float validation filter 2019-04-08 13:22:26 +02:00
ftp Avoid uninit warning in ftp 2019-04-12 15:54:29 +02:00
gd Fix uninit warning in gd.c 2019-04-12 16:03:01 +02:00
gettext Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
gmp Avoid uninitialized variable warnings in gmp 2019-04-12 15:12:39 +02:00
hash Merge branch 'PHP-7.3' into PHP-7.4 2019-04-06 19:06:21 -07:00
iconv Remove dubious memcmp optimization in iconv 2019-04-12 15:12:39 +02:00
imap Use release for regex in imap 2019-04-10 10:01:49 +02:00
interbase Merge branch 'PHP-7.3' into PHP-7.4 2019-03-25 16:43:33 +01:00
intl Merge branch 'PHP-7.3' into PHP-7.4 2019-03-18 12:16:18 +01:00
json Upgrade deprecated directives and use non-posix bison 2019-03-19 20:29:20 +01:00
ldap Sync AC_CHECK_SIZEOF m4 macro calls 2019-03-18 02:11:23 +01:00
libxml Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
mbstring Disable PACKAGE_* preprocessor symbols 2019-04-13 07:00:17 +02:00
mysqli Don't use random mode in mysqli_query test 2019-03-18 16:58:49 +01:00
mysqlnd Fix pointer signedness warning in mysqlnd 2019-04-11 14:14:21 +02:00
oci8 Sync AC_CHECK_SIZEOF m4 macro calls 2019-03-18 02:11:23 +01:00
odbc Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
opcache Avoid misc uninitialized variable warnings 2019-04-12 15:12:39 +02:00
openssl Remove extension readmes 2019-03-19 20:25:32 +01:00
pcntl Remove extension readmes 2019-03-19 20:25:32 +01:00
pcre Disable PACKAGE_* preprocessor symbols 2019-04-13 07:00:17 +02:00
pdo Avoid misc uninitialized variable warnings 2019-04-12 15:12:39 +02:00
pdo_dblib Remove extension readmes 2019-03-19 20:25:32 +01:00
pdo_firebird Add AS_HELP_STRING to *nix build configure options 2019-03-07 20:36:59 +01:00
pdo_mysql Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
pdo_oci Sync AC_CHECK_SIZEOF m4 macro calls 2019-03-18 02:11:23 +01:00
pdo_odbc Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
pdo_pgsql Disable PACKAGE_* preprocessor symbols 2019-04-13 07:00:17 +02:00
pdo_sqlite Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
pgsql Disable PACKAGE_* preprocessor symbols 2019-04-13 07:00:17 +02:00
phar Merge branch 'PHP-7.3' into PHP-7.4 2019-04-10 14:57:04 +02:00
posix Remove posix_getlogin() check from posix_getpwnam() test 2019-04-10 14:43:52 +02:00
pspell Remove extension readmes 2019-03-19 20:25:32 +01:00
readline Avoid potentially-uninitialized warnings in readline 2019-04-12 11:01:56 +02:00
recode Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
reflection Merge branch 'PHP-7.3' into PHP-7.4 2019-03-22 12:41:34 +01:00
session Use readdir() instead of readdir_r() 2019-04-11 16:52:36 +02:00
shmop Remove extension readmes 2019-03-19 20:25:32 +01:00
simplexml Remove extension readmes 2019-03-19 20:25:32 +01:00
skeleton Add AS_HELP_STRING to *nix build configure options 2019-03-07 20:36:59 +01:00
snmp snmp: remove unused var 2019-03-16 19:36:12 +01:00
soap Try to fix windows build 2019-04-12 17:04:44 +02:00
sockets Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
sodium Validate interoperability between libsodium and libargon for argon2i(d) hashing 2019-03-27 00:36:36 -04:00
spl Fix error message in spl_autoload test 2019-04-11 15:22:59 +02:00
sqlite3 Avoid misc uninitialized variable warnings 2019-04-12 15:12:39 +02:00
standard Avoid uninit warnin in http_fopen_wrapper 2019-04-12 15:12:39 +02:00
sysvmsg Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
sysvsem Add AS_HELP_STRING to *nix build configure options 2019-03-07 20:36:59 +01:00
sysvshm Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
tidy Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
tokenizer Revert "Switch to bison location tracking" 2019-03-28 09:29:08 +01:00
xml Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
xmlreader Remove extension readmes 2019-03-19 20:25:32 +01:00
xmlrpc Remove unused rcsid variables 2019-04-11 14:14:21 +02:00
xmlwriter Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
xsl Fix strict aliasing violation in phpdbg 2019-04-12 16:46:23 +02:00
zend_test Add AS_HELP_STRING to *nix build configure options 2019-03-07 20:36:59 +01:00
zip Remove unused variables 2019-03-17 23:29:51 +01:00
zlib Make zlib include_path tests more robust 2019-04-10 13:39:17 +02:00
ext_skel.php Integrate README.EXT_SKEL to help option 2019-03-13 20:56:10 +01:00