php-src/ext/bcmath
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
..
libbcmath ext/bcmath: Minor fixes to bcmul() (#14564) 2024-06-14 02:20:32 +09:00
tests Merge branch 'PHP-8.3' 2024-05-30 15:52:45 +01:00
bcmath.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
bcmath.stub.php [RFC] Add bcfloor, bcceil and bcround to BCMath (#13096) 2024-04-30 18:32:33 +01:00
bcmath_arginfo.h [RFC] Add bcfloor, bcceil and bcround to BCMath (#13096) 2024-04-30 18:32:33 +01:00
config.m4 Normalize bcmath extension sources (#14655) 2024-06-24 22:51:51 +02:00
config.w32 Remove some dead code from BCMath (#14130) 2024-05-04 16:00:54 +02:00
CREDITS
php_bcmath.h BCMath: Avoid using the heap for temporary objects by using arena allocations (#14170) 2024-05-08 19:36:14 +02:00