php-src/ext/phar
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
..
phar Fix implicitly marking parameter as nullable deprecation warning (#13714) 2024-03-14 21:51:55 +01:00
tests Merge branch 'PHP-8.3' 2024-06-21 05:08:56 +01:00
build_precommand.php
config.m4
config.w32 Sync headers installation 2024-01-28 19:50:55 +01:00
CREDITS
dirstream.c Mark multple functions as static (#13864) 2024-05-22 13:11:46 +02:00
dirstream.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
func_interceptors.c ext/phar: Fix recently introduced potential NULL dereferencement segfaults (#11065) 2023-04-12 17:05:03 +01:00
func_interceptors.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
gdbhelp
Makefile.frag Define default RE2C_FLAGS (#14615) 2024-06-24 22:09:04 +02:00
Makefile.frag.w32 Define default RE2C_FLAGS (#14615) 2024-06-24 22:09:04 +02:00
makestub.php Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phar_internal.h Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
phar_object_arginfo.h Declare the missing true return types (#13709) 2024-03-16 07:26:37 +01:00
phar_object.c ext/spl: Remove spl_engine.h header (#14418) 2024-06-08 23:46:34 +01:00
phar_object.stub.php Declare the missing true return types (#13709) 2024-03-16 07:26:37 +01:00
phar_path_check.re Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phar.1.in Update year to 2024 2024-01-04 19:26:32 +01:00
phar.c Remove unused return value from phar_entry_delref() 2024-05-06 19:50:22 +02:00
phar.phar.1.in
pharzip.h Fix GH-12532: PharData created from zip has incorrect timestamp 2023-10-29 17:20:44 +01:00
php_phar.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
shortarc.php
stream.c Mark multple functions as static (#13864) 2024-05-22 13:11:46 +02:00
stream.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
stub.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
tar.c Introduce some const pointers 2024-05-06 19:50:22 +02:00
tar.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
util.c Remove unused fields from phar_entry_data() (#14144) 2024-05-07 18:23:47 +02:00
zip.c Merge branch 'PHP-8.3' 2024-06-21 05:08:56 +01:00