php-src/ext/tokenizer
Arnaud Le Blanc 11accb5cdf
Preferably include from build dir (#13516)
* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Before, out of tree builds would preferably include files from the src dir, as
the include path was defined as follows (ignoring includes from ext/ and sapi/) :

    -I$(top_builddir)/main
    -I$(top_srcdir)
    -I$(top_builddir)/TSRM
    -I$(top_builddir)/Zend
    -I$(top_srcdir)/main
    -I$(top_srcdir)/Zend
    -I$(top_srcdir)/TSRM
    -I$(top_builddir)/

As a result, an out of tree build would include configure artifacts such as
`main/php_config.h` from the src dir.

After this change, the include path is defined as follows:

    -I$(top_builddir)/main
    -I$(top_builddir)
    -I$(top_srcdir)/main
    -I$(top_srcdir)
    -I$(top_builddir)/TSRM
    -I$(top_builddir)/Zend
    -I$(top_srcdir)/Zend
    -I$(top_srcdir)/TSRM

* Fix extension include path for out of tree builds

* 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.
2024-06-26 00:26:43 +02:00
..
tests Add missing EXTENSION section to tests 2022-10-27 14:39:43 +01:00
.gitattributes Collapse more generated files in PRs (#8754) 2022-06-12 10:56:35 +02:00
config.m4 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
config.w32 Remove unsynced and unused HAVE_<extension> defines (#14233) 2024-05-18 14:10:47 +02:00
CREDITS
Makefile.frag Generate tokenizer_data.c from zend_language_parser.y 2021-05-27 14:35:05 +02:00
php_tokenizer.h Declare ext/tokenizer constants in stubs (#9148) 2022-08-01 10:50:56 +02:00
tokenizer.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
tokenizer.stub.php Declare ext/tokenizer constants in stubs (#9148) 2022-08-01 10:50:56 +02:00
tokenizer_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
tokenizer_data.c Clean-up some more headers (#14416) 2024-06-08 17:15:36 +01:00
tokenizer_data.stub.php Declare ext/tokenizer constants in stubs (#9148) 2022-08-01 10:50:56 +02:00
tokenizer_data_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
tokenizer_data_gen.php Clean-up some more headers (#14416) 2024-06-08 17:15:36 +01:00