php-src/TSRM
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
..
config.w32 Remove unused tsrm_strtok_r() function 2019-07-12 13:14:24 +02:00
LICENSE
threads.m4 Sync logical operators in shell scripting code (#13560) 2024-03-01 20:40:16 +01:00
TSRM.c Fix GH-11188: Error when building TSRM in ARM64 (for IR JIT) (#14459) 2024-06-04 19:47:07 +02:00
TSRM.h Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
tsrm.m4 Merge branch 'PHP-7.4' 2019-07-01 13:26:17 +02:00
tsrm_win32.c TSRM: change uses of sprintf into snprintf 2024-06-14 08:12:03 -07:00
tsrm_win32.h Join shm_pair.info and .segment of Windows shm implementation 2022-06-10 17:18:27 +02:00