php-src/ext/intl/collator
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
..
collator.h Declare ext/intl constants in stubs - part 2 (#9219) 2022-08-02 16:55:12 +02:00
collator.stub.php Declare the missing true return types (#13709) 2024-03-16 07:26:37 +01:00
collator_arginfo.h Declare the missing true return types (#13709) 2024-03-16 07:26:37 +01:00
collator_attr.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
collator_class.c ext/intl: Various refactoring (#14360) 2024-05-30 12:51:36 +01:00
collator_class.h Declare ext/intl constants in stubs - part 2 (#9219) 2022-08-02 16:55:12 +02:00
collator_compare.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
collator_convert.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
collator_convert.h Avoid make_printable_zval() in intl collator 2021-06-10 10:12:47 +02:00
collator_create.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
collator_error.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
collator_functions_arginfo.h Do not include the same stub multiple times 2020-04-03 14:23:54 +02:00
collator_is_numeric.c zend_compiler, ...: use uint8_t instead of zend_uchar (#10621) 2023-02-23 14:56:54 +00:00
collator_is_numeric.h zend_compiler, ...: use uint8_t instead of zend_uchar (#10621) 2023-02-23 14:56:54 +00:00
collator_locale.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
collator_sort.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
collator_sort.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00