summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/aspell/aspell.c4
-rw-r--r--ext/bcmath/bcmath.c4
-rw-r--r--ext/calendar/calendar.c4
-rw-r--r--ext/cpdf/cpdf.c4
-rw-r--r--ext/crack/crack.c4
-rw-r--r--ext/ctype/ctype.c4
-rw-r--r--ext/curl/curl.c3
-rw-r--r--ext/cybercash/cybercash.c4
-rw-r--r--ext/cybermut/cybermut.c4
-rw-r--r--ext/db/db.c4
-rw-r--r--ext/dba/dba.c4
-rw-r--r--ext/dbase/dbase.c12
-rw-r--r--ext/dbx/dbx.c4
-rw-r--r--ext/domxml/php_domxml.c4
-rw-r--r--ext/exif/exif.c4
-rw-r--r--ext/fbsql/php_fbsql.c4
-rw-r--r--ext/fdf/fdf.c4
-rw-r--r--ext/filepro/filepro.c4
-rwxr-xr-xext/fribidi/fribidi.c4
-rw-r--r--ext/ftp/php_ftp.c4
-rw-r--r--ext/gd/gd.c4
-rw-r--r--ext/gettext/gettext.c4
-rw-r--r--ext/gmp/gmp.c4
-rw-r--r--ext/hyperwave/hw.c4
-rw-r--r--ext/icap/php_icap.c4
-rw-r--r--ext/iconv/iconv.c4
-rw-r--r--ext/imap/php_imap.c4
-rw-r--r--ext/ingres_ii/ii.c4
-rw-r--r--ext/interbase/interbase.c4
-rw-r--r--ext/ldap/ldap.c4
-rwxr-xr-xext/mailparse/mailparse.c4
-rw-r--r--ext/mbstring/mbstring.c4
-rw-r--r--ext/mcal/php_mcal.c4
-rw-r--r--ext/mcrypt/mcrypt.c4
-rw-r--r--ext/mhash/mhash.c4
-rw-r--r--ext/ming/ming.c4
-rw-r--r--ext/mnogosearch/php_mnogo.c4
-rw-r--r--ext/msql/php_msql.c4
-rw-r--r--ext/mssql/php_mssql.c4
-rw-r--r--ext/muscat/muscat.c9
-rw-r--r--ext/mysql/php_mysql.c4
-rw-r--r--ext/notes/php_notes.c4
-rw-r--r--ext/oci8/oci8.c4
-rw-r--r--ext/odbc/php_odbc.c4
-rw-r--r--ext/odbc/velocis.c4
-rw-r--r--ext/openssl/openssl.c4
-rw-r--r--ext/oracle/oracle.c4
-rw-r--r--ext/pcre/php_pcre.c4
-rw-r--r--ext/pdf/pdf.c4
-rw-r--r--ext/pfpro/pfpro.c5
-rw-r--r--ext/pgsql/pgsql.c4
-rw-r--r--ext/posix/posix.c4
-rw-r--r--ext/pspell/pspell.c4
-rw-r--r--ext/qtdom/qtdom.c4
-rw-r--r--ext/readline/readline.c4
-rw-r--r--ext/recode/recode.c4
-rw-r--r--ext/sablot/sablot.c4
-rw-r--r--ext/satellite/corba.c5
-rw-r--r--ext/satellite/php_orbit.c4
-rw-r--r--ext/session/session.c4
-rw-r--r--ext/shmop/shmop.c4
-rw-r--r--ext/skeleton/skeleton.c4
-rw-r--r--ext/snmp/snmp.c4
-rw-r--r--ext/sockets/sockets.c4
-rw-r--r--ext/swf/swf.c4
-rw-r--r--ext/sybase/php_sybase_db.c4
-rw-r--r--ext/sybase_ct/php_sybase_ct.c4
-rw-r--r--ext/sysvsem/sysvsem.c4
-rw-r--r--ext/sysvshm/sysvshm.c4
-rw-r--r--ext/vpopmail/php_vpopmail.c4
-rw-r--r--ext/xml/xml.c4
-rw-r--r--ext/xslt/sablot.c4
-rw-r--r--ext/yaz/php_yaz.c4
-rw-r--r--ext/yp/yp.c4
-rw-r--r--ext/zlib/zlib.c4
75 files changed, 307 insertions, 7 deletions
diff --git a/ext/aspell/aspell.c b/ext/aspell/aspell.c
index fa474ae182..dac32cb259 100644
--- a/ext/aspell/aspell.c
+++ b/ext/aspell/aspell.c
@@ -18,6 +18,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#ifdef COMPILE_DL_ASPELL
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 3faff36ad7..3ef8226fd0 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -18,6 +18,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if WITH_BCMATH
diff --git a/ext/calendar/calendar.c b/ext/calendar/calendar.c
index 676110b0fc..4443c97bdd 100644
--- a/ext/calendar/calendar.c
+++ b/ext/calendar/calendar.c
@@ -19,6 +19,10 @@
*/
/* $Id: */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "ext/standard/info.h"
#include "php_calendar.h"
diff --git a/ext/cpdf/cpdf.c b/ext/cpdf/cpdf.c
index 67f7d307d8..fbdcb2e842 100644
--- a/ext/cpdf/cpdf.c
+++ b/ext/cpdf/cpdf.c
@@ -38,6 +38,10 @@
#undef THREAD_SAFE
#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "zend/zend_list.h"
diff --git a/ext/crack/crack.c b/ext/crack/crack.c
index f2af001e65..f63b740f9c 100644
--- a/ext/crack/crack.c
+++ b/ext/crack/crack.c
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c
index 33cf94215f..8c88e7d9c0 100644
--- a/ext/ctype/ctype.c
+++ b/ext/ctype/ctype.c
@@ -17,6 +17,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_ctype.h"
diff --git a/ext/curl/curl.c b/ext/curl/curl.c
index 059b2a685b..7b0e740de5 100644
--- a/ext/curl/curl.c
+++ b/ext/curl/curl.c
@@ -18,6 +18,9 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "php.h"
diff --git a/ext/cybercash/cybercash.c b/ext/cybercash/cybercash.c
index 28b4f921ae..4cf2c44b72 100644
--- a/ext/cybercash/cybercash.c
+++ b/ext/cybercash/cybercash.c
@@ -28,6 +28,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "ext/standard/info.h"
#include "cybercash.h"
diff --git a/ext/cybermut/cybermut.c b/ext/cybermut/cybermut.c
index 7dd83600f5..239bc69aa5 100644
--- a/ext/cybermut/cybermut.c
+++ b/ext/cybermut/cybermut.c
@@ -17,6 +17,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_cybermut.h"
diff --git a/ext/db/db.c b/ext/db/db.c
index 80e19d47ae..26f3b7917e 100644
--- a/ext/db/db.c
+++ b/ext/db/db.c
@@ -22,6 +22,10 @@
#if 1
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "safe_mode.h"
diff --git a/ext/dba/dba.c b/ext/dba/dba.c
index c432b70018..54f337177f 100644
--- a/ext/dba/dba.c
+++ b/ext/dba/dba.c
@@ -29,6 +29,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_DBA
diff --git a/ext/dbase/dbase.c b/ext/dbase/dbase.c
index 63312f47b6..e8ecf09eb8 100644
--- a/ext/dbase/dbase.c
+++ b/ext/dbase/dbase.c
@@ -16,10 +16,8 @@
+----------------------------------------------------------------------+
*/
-#include <stdlib.h>
-
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
#endif
#include "php.h"
@@ -27,6 +25,12 @@
#include "fopen_wrappers.h"
#include "php_globals.h"
+#include <stdlib.h>
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
#if DBASE
#include "php_dbase.h"
#include "dbf.h"
diff --git a/ext/dbx/dbx.c b/ext/dbx/dbx.c
index 662433aedc..f587e16072 100644
--- a/ext/dbx/dbx.c
+++ b/ext/dbx/dbx.c
@@ -20,6 +20,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_dbx.h"
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c
index 8ad82c2e9c..51d0caebaa 100644
--- a/ext/domxml/php_domxml.c
+++ b/ext/domxml/php_domxml.c
@@ -19,6 +19,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_domxml.h"
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index 787ddf5fee..b4d0d18889 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -36,6 +36,10 @@
Matthias Wandel, Dec 1999 - April 2000
--------------------------------------------------------------------------
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_EXIF
diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c
index 8ef0c90b46..281c24ebbc 100644
--- a/ext/fbsql/php_fbsql.c
+++ b/ext/fbsql/php_fbsql.c
@@ -37,6 +37,10 @@
- Select db with no arguments
- Query with everything defaulted
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "php_globals.h"
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c
index 590df50d50..2a003130c7 100644
--- a/ext/fdf/fdf.c
+++ b/ext/fdf/fdf.c
@@ -24,6 +24,10 @@
/* Note that there is no code from the FdfTk lib in this file */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_FDFLIB
diff --git a/ext/filepro/filepro.c b/ext/filepro/filepro.c
index 85a24cadfb..37afbbecbe 100644
--- a/ext/filepro/filepro.c
+++ b/ext/filepro/filepro.c
@@ -26,6 +26,10 @@
web site at http://www.fileproplus.com/
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "safe_mode.h"
#include "fopen_wrappers.h"
diff --git a/ext/fribidi/fribidi.c b/ext/fribidi/fribidi.c
index ead833b25c..f4ac00d11e 100755
--- a/ext/fribidi/fribidi.c
+++ b/ext/fribidi/fribidi.c
@@ -17,6 +17,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_fribidi.h"
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c
index 2dcbdbda3e..acd73b77be 100644
--- a/ext/ftp/php_ftp.c
+++ b/ext/ftp/php_ftp.c
@@ -30,6 +30,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_FTP
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 434e68d020..c9ff442205 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -25,6 +25,10 @@
/* Note that there is no code from the gd package in this file */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "ext/standard/head.h"
#include <math.h>
diff --git a/ext/gettext/gettext.c b/ext/gettext/gettext.c
index 3de4b007f5..cdc96ae2cc 100644
--- a/ext/gettext/gettext.c
+++ b/ext/gettext/gettext.c
@@ -19,6 +19,10 @@
/* $Id$ */
#include <stdio.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_gettext.h"
diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c
index fb45cf222f..a52a1b2121 100644
--- a/ext/gmp/gmp.c
+++ b/ext/gmp/gmp.c
@@ -16,6 +16,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_gmp.h"
diff --git a/ext/hyperwave/hw.c b/ext/hyperwave/hw.c
index 2abaed7f75..7613bb00a7 100644
--- a/ext/hyperwave/hw.c
+++ b/ext/hyperwave/hw.c
@@ -21,6 +21,10 @@
#include <stdlib.h>
#include <errno.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/icap/php_icap.c b/ext/icap/php_icap.c
index e7455b2532..b2f9a613c1 100644
--- a/ext/icap/php_icap.c
+++ b/ext/icap/php_icap.c
@@ -34,6 +34,10 @@
#undef ERROR
#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_ICAP
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c
index ff98e204a3..7067bab1ac 100644
--- a/ext/iconv/iconv.c
+++ b/ext/iconv/iconv.c
@@ -17,6 +17,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 5dec6850c9..914d6cc8a1 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -31,6 +31,10 @@
#undef OP_RELOGIN
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "ext/standard/php_string.h"
diff --git a/ext/ingres_ii/ii.c b/ext/ingres_ii/ii.c
index 708dd769e7..8144dd4947 100644
--- a/ext/ingres_ii/ii.c
+++ b/ext/ingres_ii/ii.c
@@ -21,6 +21,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "php_ini.h"
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c
index a773050911..bc189b553c 100644
--- a/ext/interbase/interbase.c
+++ b/ext/interbase/interbase.c
@@ -35,6 +35,10 @@ A lot... */
emalloc & co. replaced with malloc & co.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index a8bbf99bcf..68317e4296 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -26,6 +26,10 @@
/* $Id$ */
#define IS_EXT_MODULE
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
diff --git a/ext/mailparse/mailparse.c b/ext/mailparse/mailparse.c
index 78ec53f458..1ca5d58b76 100755
--- a/ext/mailparse/mailparse.c
+++ b/ext/mailparse/mailparse.c
@@ -20,6 +20,10 @@
*/
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "ext/standard/file.h"
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index e6c9271634..7d6c64df80 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -43,6 +43,10 @@
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_config.h"
diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c
index b3e3f04710..cb42cbd962 100644
--- a/ext/mcal/php_mcal.c
+++ b/ext/mcal/php_mcal.c
@@ -23,6 +23,10 @@
#undef ERROR
#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_MCAL
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c
index 58875aba42..68ed41f1be 100644
--- a/ext/mcrypt/mcrypt.c
+++ b/ext/mcrypt/mcrypt.c
@@ -17,6 +17,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_LIBMCRYPT
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c
index c602308e61..a8b6b9f2fb 100644
--- a/ext/mhash/mhash.c
+++ b/ext/mhash/mhash.c
@@ -19,6 +19,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_LIBMHASH
diff --git a/ext/ming/ming.c b/ext/ming/ming.c
index 3ac7e47cfd..931da1b0f5 100644
--- a/ext/ming/ming.c
+++ b/ext/ming/ming.c
@@ -19,6 +19,10 @@
#include <stdio.h>
#include <math.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_MING
diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c
index 5114f86cf4..c76c2ea62f 100644
--- a/ext/mnogosearch/php_mnogo.c
+++ b/ext/mnogosearch/php_mnogo.c
@@ -22,6 +22,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_mnogo.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c
index 0f2847378c..6f77d4f42d 100644
--- a/ext/msql/php_msql.c
+++ b/ext/msql/php_msql.c
@@ -18,6 +18,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_msql.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index f47607b170..61870726b7 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -22,6 +22,10 @@
#define HAVE_MSSQL 1
#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/muscat/muscat.c b/ext/muscat/muscat.c
index 9bacc00524..89dbf82daf 100644
--- a/ext/muscat/muscat.c
+++ b/ext/muscat/muscat.c
@@ -28,10 +28,13 @@
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
-#include <php.h>
-#include <php_ini.h>
-#include <php_muscat.h>
+#include "php.h"
+#include "php_ini.h"
+#include "php_muscat.h"
/* You should tweak config.m4 so this symbol (or some else suitable)
gets defined.
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 947f9cf239..6a0e6cb452 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -24,6 +24,10 @@
* ? Safe mode implementation
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "php_mysql.h"
diff --git a/ext/notes/php_notes.c b/ext/notes/php_notes.c
index 6686e71918..0c887ec03e 100644
--- a/ext/notes/php_notes.c
+++ b/ext/notes/php_notes.c
@@ -22,6 +22,10 @@
#define HAVE_NOTES 1
#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "php_notes.h"
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 7c3599806e..6856da1402 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -53,6 +53,10 @@
/* {{{ includes & stuff */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "ext/standard/info.h"
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index d40867dd1f..355436f63b 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -22,6 +22,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
diff --git a/ext/odbc/velocis.c b/ext/odbc/velocis.c
index c9a82326cb..1491cb0239 100644
--- a/ext/odbc/velocis.c
+++ b/ext/odbc/velocis.c
@@ -24,6 +24,10 @@
* Check all on real life apps.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if WIN32
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 72082e31f3..8bbf5b9f9c 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -20,6 +20,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_openssl.h"
diff --git a/ext/oracle/oracle.c b/ext/oracle/oracle.c
index 3e37fc7a22..2c65df62a8 100644
--- a/ext/oracle/oracle.c
+++ b/ext/oracle/oracle.c
@@ -25,6 +25,10 @@
#define HAS_OLOG 1
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "zend_globals.h"
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index b380604507..582f1c623a 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -18,6 +18,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_globals.h"
#include "php_pcre.h"
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c
index 70109e1b8e..a0d98f6506 100644
--- a/ext/pdf/pdf.c
+++ b/ext/pdf/pdf.c
@@ -24,6 +24,10 @@
Copyright (C) 1997-1999 Thomas Merz. 2000-2001 PDFlib GmbH */
/* Note that there is no code from the pdflib package in this file */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_globals.h"
diff --git a/ext/pfpro/pfpro.c b/ext/pfpro/pfpro.c
index 8d9f728d90..860a4f1a1e 100644
--- a/ext/pfpro/pfpro.c
+++ b/ext/pfpro/pfpro.c
@@ -20,6 +20,11 @@
/* $Id$ */
/* {{{ includes */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_pfpro.h"
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index fe1d308087..4e94079c56 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -23,6 +23,10 @@
#define PHP_PGSQL_PRIVATE 1
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/posix/posix.c b/ext/posix/posix.c
index c562b2e2b7..5723768f3c 100644
--- a/ext/posix/posix.c
+++ b/ext/posix/posix.c
@@ -30,6 +30,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "ext/standard/info.h"
#if !defined(PHP_API_VERSION) || PHP_API_VERSION < 19990421
diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c
index f197e543cb..78f8eaf160 100644
--- a/ext/pspell/pspell.c
+++ b/ext/pspell/pspell.c
@@ -20,6 +20,10 @@
#define IS_EXT_MODULE
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include <stdlib.h>
diff --git a/ext/qtdom/qtdom.c b/ext/qtdom/qtdom.c
index 587ad62aba..4c08a97d9f 100644
--- a/ext/qtdom/qtdom.c
+++ b/ext/qtdom/qtdom.c
@@ -20,6 +20,10 @@
/* You should tweak config.m4 so this symbol (or some else suitable)
gets defined.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "qtdom.h"
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index f9a83a0fb2..3548fe7b9b 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -20,6 +20,10 @@
/* {{{ includes & prototypes */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_readline.h"
diff --git a/ext/recode/recode.c b/ext/recode/recode.c
index 6a6863881d..da4bcb1ba3 100644
--- a/ext/recode/recode.c
+++ b/ext/recode/recode.c
@@ -20,6 +20,10 @@
/* {{{ includes & prototypes */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_recode.h"
diff --git a/ext/sablot/sablot.c b/ext/sablot/sablot.c
index aefc0c82fb..dbe3fcc873 100644
--- a/ext/sablot/sablot.c
+++ b/ext/sablot/sablot.c
@@ -16,6 +16,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_SABLOT
diff --git a/ext/satellite/corba.c b/ext/satellite/corba.c
index 9c5ff446c6..267c26a835 100644
--- a/ext/satellite/corba.c
+++ b/ext/satellite/corba.c
@@ -28,6 +28,11 @@
*
* -----------------------------------------------------------------------
*/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "corba.h"
#include "php_config.h" /* for COMPILE_DL_ORBIT */
diff --git a/ext/satellite/php_orbit.c b/ext/satellite/php_orbit.c
index a1c31be396..6b740b9f82 100644
--- a/ext/satellite/php_orbit.c
+++ b/ext/satellite/php_orbit.c
@@ -24,6 +24,10 @@
/*
* Interface to PHP
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <php.h>
#include <php_ini.h> /* for DISPLAY_INI_ENTRIES() */
#include <ext/standard/info.h> /* for php_info_print_table_*() */
diff --git a/ext/session/session.c b/ext/session/session.c
index 80ab21844c..ce3d9f781a 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -17,6 +17,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#ifdef PHP_WIN32
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c
index 8b63984034..53746c2bb8 100644
--- a/ext/shmop/shmop.c
+++ b/ext/shmop/shmop.c
@@ -17,6 +17,10 @@
+----------------------------------------------------------------------+
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_shmop.h"
diff --git a/ext/skeleton/skeleton.c b/ext/skeleton/skeleton.c
index 77ac164654..25b5e3d847 100644
--- a/ext/skeleton/skeleton.c
+++ b/ext/skeleton/skeleton.c
@@ -1,5 +1,9 @@
/* __header_here__ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_ini.h"
#include "php_extname.h"
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 47cfac5e57..f6a361f982 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -19,6 +19,10 @@
*/
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "ext/standard/info.h"
#include "php_snmp.h"
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index e6b36e0c84..f37f9c5649 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -21,6 +21,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_SOCKETS
diff --git a/ext/swf/swf.c b/ext/swf/swf.c
index b81e9f7c94..e251df8523 100644
--- a/ext/swf/swf.c
+++ b/ext/swf/swf.c
@@ -19,6 +19,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_SWF
diff --git a/ext/sybase/php_sybase_db.c b/ext/sybase/php_sybase_db.c
index beb5684568..9d81981f51 100644
--- a/ext/sybase/php_sybase_db.c
+++ b/ext/sybase/php_sybase_db.c
@@ -23,6 +23,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_sybase_db.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c
index 21595a55f0..3196b43d83 100644
--- a/ext/sybase_ct/php_sybase_ct.c
+++ b/ext/sybase_ct/php_sybase_ct.c
@@ -20,6 +20,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_sybase_ct.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/sysvsem/sysvsem.c b/ext/sysvsem/sysvsem.c
index 950c4e6bcc..a55f1c1adb 100644
--- a/ext/sysvsem/sysvsem.c
+++ b/ext/sysvsem/sysvsem.c
@@ -27,6 +27,10 @@
* sas: Works for me on Linux 2.0.36 and FreeBSD 3.0-current
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_SYSVSEM
diff --git a/ext/sysvshm/sysvshm.c b/ext/sysvshm/sysvshm.c
index 874bbd7b1c..c8930ca793 100644
--- a/ext/sysvshm/sysvshm.c
+++ b/ext/sysvshm/sysvshm.c
@@ -24,6 +24,10 @@
* It may not compile or execute correctly on other systems.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_SYSVSHM
diff --git a/ext/vpopmail/php_vpopmail.c b/ext/vpopmail/php_vpopmail.c
index 19b7fb7786..206e5947ad 100644
--- a/ext/vpopmail/php_vpopmail.c
+++ b/ext/vpopmail/php_vpopmail.c
@@ -24,6 +24,10 @@
* incompat option is specified and work for minimal params
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#undef VPOPMAIL_IS_REALLY_OLD
#include <errno.h>
diff --git a/ext/xml/xml.c b/ext/xml/xml.c
index c6872522cd..d5e3bad988 100644
--- a/ext/xml/xml.c
+++ b/ext/xml/xml.c
@@ -20,6 +20,10 @@
/* $Id$ */
#define IS_EXT_MODULE
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#define PHP_XML_INTERNAL
diff --git a/ext/xslt/sablot.c b/ext/xslt/sablot.c
index 861e0817e5..2d06bd6388 100644
--- a/ext/xslt/sablot.c
+++ b/ext/xslt/sablot.c
@@ -17,6 +17,10 @@
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "php_xslt.h"
#include "php_sablot.h"
diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c
index ca241b6bb0..f4fb772e15 100644
--- a/ext/yaz/php_yaz.c
+++ b/ext/yaz/php_yaz.c
@@ -18,6 +18,10 @@
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#if HAVE_YAZ
diff --git a/ext/yp/yp.c b/ext/yp/yp.c
index 7e680920f2..82ba26b22d 100644
--- a/ext/yp/yp.c
+++ b/ext/yp/yp.c
@@ -18,6 +18,10 @@
*/
/* $Id$ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "ext/standard/info.h"
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index b3624bb78f..8f72cc0636 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -19,6 +19,10 @@
/* $Id$ */
#define IS_EXT_MODULE
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php.h"
#include "SAPI.h"
#include "php_ini.h"