Commit graph

10 commits

Author SHA1 Message Date
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
Peter Kokot
02294f0c84 Make PHP development tools files and scripts executable
This patch makes several scripts and PHP development tools files
executable and adds more proper shebangs to the PHP scripts.

The `#!/usr/bin/env php` shebang provides running the script via
`./script.php` and uses env to find PHP script location on the system.
At the same time it still provides running the script with a user
defined PHP location using `php script.php`.
2018-08-29 20:58:17 +02:00
Peter Kokot
a5e80b22e1 Fix typos in code comments 2018-07-25 11:57:11 +02:00
Stanislav Malyshev
23917b451b Upgrade PCRE to 8.36, it fixes some crashes
We probably will need to go to 8.37 once it is released.
2015-04-27 23:16:54 -07:00
Scott MacVicar
6ec23faa99 Update bundled PCRE to 8.12 2011-05-13 07:00:45 +00:00
Scott MacVicar
2fad7df98c Update PCRE to 8.00 2009-11-03 12:15:03 +00:00
Nuno Lopes
d3ec4e3630 MFB: export pcre API when using gcc 4 2008-12-10 10:16:20 +00:00
Nuno Lopes
4592c892c6 MFB5.2: fix script for files with short names 2008-01-14 09:40:53 +00:00
Nuno Lopes
c6ba92b7ac MFB: remove HAVE_CONFIG_H 2007-09-11 16:19:14 +00:00
Nuno Lopes
f02ff43715 upgrade to PCRE 7.2 RC3
add script to automate upgrade of the bundled PCRE lib
2007-06-14 19:43:42 +00:00