Skip to content

Preferably include from build dir #13516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TSRM/TSRM.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

#if !defined(__CYGWIN__) && defined(WIN32)
# define TSRM_WIN32
# include "Zend/zend_config.w32.h"
# include <Zend/zend_config.w32.h>
#else
# include "main/php_config.h"
# include <main/php_config.h>
#endif

#include <stdint.h>
Expand Down
3 changes: 1 addition & 2 deletions build/Makefile.global
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
INSTALL = $(top_srcdir)/build/shtool install -c
INSTALL_DATA = $(INSTALL) -m 644

DEFS = -I$(top_builddir)/main -I$(top_srcdir)
COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
COMMON_FLAGS = $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)

all: $(all_targets)
@echo
Expand Down
15 changes: 8 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1351,13 +1351,14 @@ LIBZEND_BASIC_CHECKS
LIBZEND_DLSYM_CHECK
LIBZEND_OTHER_CHECKS

INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
INCLUDES="$INCLUDES -I\$(top_builddir)/Zend"

if test "$abs_srcdir" != "$abs_builddir"; then
INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend"
INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/"
fi
PHP_ADD_INCLUDE([$abs_srcdir], [1])
PHP_ADD_INCLUDE([$abs_srcdir/main], [1])
PHP_ADD_INCLUDE([$abs_builddir], [1])
PHP_ADD_INCLUDE([$abs_builddir/main], [1])
PHP_ADD_INCLUDE([$abs_builddir/TSRM])
PHP_ADD_INCLUDE([$abs_builddir/Zend])
PHP_ADD_INCLUDE([$abs_srcdir/Zend])
PHP_ADD_INCLUDE([$abs_srcdir/TSRM])

ZEND_EXTRA_LIBS="$LIBS"
unset LIBS
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/bcmath.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/bz2/bz2.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/bz2/bz2_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/calendar/calendar.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_dotnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include <intsafe.h>
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_olechar.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_persist.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* (can wait till 5.1) */

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_saproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* */

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_typeinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_variant.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* using IDispatchEx */

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/ctype.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/share.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_cdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_db1.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_db2.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_db3.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_db4.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_dbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_flatfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_gdbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_inifile.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_lmdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_ndbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_qdbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba_tcadb.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/cdatasection.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/characterdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/comment.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif

#include "php.h"
Expand Down
Loading