php-src/ext/openssl
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 Fix GH-13343: openssl_x509_parse should not allow omitted seconds in UTCTimes 2024-06-09 12:35:05 +01:00
config0.m4 Fix RAND_egd check (#14588) 2024-06-17 13:02:53 +02:00
config.w32 Sync HAVE_OPENSSL* symbols (#14333) 2024-06-11 19:18:19 +02:00
CREDITS Add support for Cryptographic Message Syntax (CMS) 2020-06-07 16:58:34 +01:00
openssl_arginfo.h Add support for Curve25519 + Curve448 based keys 2024-05-27 12:52:57 +01:00
openssl.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
openssl.stub.php Add support for Curve25519 + Curve448 based keys 2024-05-27 12:52:57 +01:00
php_openssl.h Sync HAVE_OPENSSL* symbols (#14333) 2024-06-11 19:18:19 +02:00
xp_ssl.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00