php-src/ext/curl
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 Merge branch 'PHP-8.3' 2024-05-24 14:42:50 +02:00
config.m4 Use default argument in AS_CASE instead of pattern 2024-06-11 11:26:52 +02:00
config.w32 ext/curl: Cleanup config.w32 to remove superfluous checks and outdated comments (#13684) 2024-03-12 17:56:07 +01:00
CREDITS
curl.stub.php ext/curl: Bump minimum Curl version to >= 7.61.0 (#13259) 2024-01-31 13:48:17 +00:00
curl_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
curl_file.c Make lots of string pointers const (#10646) 2023-02-21 14:01:37 +00:00
curl_file.stub.php Use single line phpdoc in stubs where possible 2021-07-20 13:16:56 +02:00
curl_file_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
curl_private.h ext/curl: Refactor cURL to only use FCC (#13291) 2024-05-01 15:09:11 +01:00
interface.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
multi.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
php_curl.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
share.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
sync-constants.php ext/curl: Bump minimum Curl version to >= 7.61.0 (#13259) 2024-01-31 13:48:17 +00:00