Skip to content

Commit aa8486e

Browse files
committed
Include config.h with the brackets form
`#include "config.h"` searches in the directory containing the including-file before any other include path. This can include the wrong config.h when building out of tree and a config.h exists in the source tree. Using `#include <config.h>` uses exclusively the include path, and gives priority to the build dir.
1 parent dada90e commit aa8486e

File tree

207 files changed

+209
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+209
-209
lines changed

TSRM/TSRM.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
#if !defined(__CYGWIN__) && defined(WIN32)
1717
# define TSRM_WIN32
18-
# include "Zend/zend_config.w32.h"
18+
# include <Zend/zend_config.w32.h>
1919
#else
20-
# include "main/php_config.h"
20+
# include <main/php_config.h>
2121
#endif
2222

2323
#include <stdint.h>

ext/bcmath/bcmath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#ifdef HAVE_CONFIG_H
18-
#include "config.h"
18+
#include <config.h>
1919
#endif
2020

2121
#include "php.h"

ext/bcmath/libbcmath/src/bcmath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ typedef struct bc_struct {
5252
} bc_struct;
5353

5454
#ifdef HAVE_CONFIG_H
55-
#include "config.h"
55+
#include <config.h>
5656
#endif
5757

5858
#include "zend.h"

ext/bz2/bz2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#ifdef HAVE_CONFIG_H
18-
#include "config.h"
18+
#include <config.h>
1919
#endif
2020

2121
#include "php.h"

ext/bz2/bz2_filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#ifdef HAVE_CONFIG_H
18-
#include "config.h"
18+
#include <config.h>
1919
#endif
2020

2121
#include "php.h"

ext/calendar/calendar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
#ifdef HAVE_CONFIG_H
21-
#include "config.h"
21+
#include <config.h>
2222
#endif
2323

2424
#include "php.h"

ext/com_dotnet/com_com.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#ifdef HAVE_CONFIG_H
18-
#include "config.h"
18+
#include <config.h>
1919
#endif
2020

2121
#include "php.h"

ext/com_dotnet/com_dotnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#ifdef HAVE_CONFIG_H
18-
#include "config.h"
18+
#include <config.h>
1919
#endif
2020

2121
#include "php.h"

ext/com_dotnet/com_extension.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#ifdef HAVE_CONFIG_H
18-
#include "config.h"
18+
#include <config.h>
1919
#endif
2020

2121
#include <intsafe.h>

ext/com_dotnet/com_handlers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#ifdef HAVE_CONFIG_H
18-
#include "config.h"
18+
#include <config.h>
1919
#endif
2020

2121
#include "php.h"

0 commit comments

Comments
 (0)