php-src/ext/pdo_pgsql
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
..
tests Merge branch 'PHP-7.3' into PHP-7.4 2019-04-12 13:08:44 +02:00
config.m4 Add AS_HELP_STRING to *nix build configure options 2019-03-07 20:36:59 +01:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS
pdo_pgsql.c Disable PACKAGE_* preprocessor symbols 2019-04-13 07:00:17 +02:00
pgsql_driver.c Disable PACKAGE_* preprocessor symbols 2019-04-13 07:00:17 +02:00
pgsql_statement.c Remove local variables 2019-02-03 21:03:00 +01:00
php_pdo_pgsql_int.h Remove local variables 2019-02-03 21:03:00 +01:00
php_pdo_pgsql.h Remove local variables 2019-02-03 21:03:00 +01:00