summaryrefslogtreecommitdiff
path: root/build
Commit message (Collapse)AuthorAgeFilesLines
* Generate method entries for ext/domMáté Kocsis2020-04-131-1/+1
| | | | Closes GH-5374
* Fix an undefined class error running gen_stub in php8Tyson Andre2020-04-112-16/+16
| | | | | | | | | | | | For whatever reason, php 8 would not have loaded the subsequent classes when running `php build/gen_stub.php path/to/filename.php`. I assume it didn't load the classes immediately because there's a possibility the code before it would throw. (Probably because __toString was added recently and prevents early binding) Also, fix a typo Closes GH-5369
* Generate method entries from stubs for a couple of extensionsMáté Kocsis2020-04-111-7/+7
| | | | Closes GH-5368
* Add support for generating method entries from stubsMáté Kocsis2020-04-111-48/+224
| | | | Closes GH-5363
* Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-15/+50
| | | | | | | Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* Move variable declaration closer to its usageMáté Kocsis2020-04-051-1/+1
|
* Improve gen_stub.phpMáté Kocsis2020-04-041-8/+22
| | | | | | Closes GH-5350 Add support for generating deprecated function entries, as well as forward declaration of function aliases.
* Annotate function aliases in stubsMáté Kocsis2020-04-041-0/+0
|
* Verify that all stubs have a return typeNikita Popov2020-04-031-7/+56
|
* Stubs: Store information per-classNikita Popov2020-04-031-13/+37
| | | | We'll need this if we want to generate method entries.
* Generate function entries from stubsNikita Popov2020-04-031-40/+147
| | | | | | | If @generate-function-entries is specified in the stub file, also generate function entries for the extension. Currently limited to free functions only.
* add some output when generating arginfoRemi Collet2020-04-031-0/+2
|
* Move gen_stub.php to build directory and install it so phpize can take care ↵Remi Collet2020-04-032-3/+644
| | | | of it, and thus extension can use it as it is already in Makefile
* Update bundled config.guess and config.subAnatol Belski2020-02-152-54/+58
|
* Improved the checkXinchen Hui2020-02-131-8/+10
| | | | makefile.global is also used while building shared extension
* Fixed build (Only PHP above 7.1 could run the gen_stub.php)Xinchen Hui2020-02-121-1/+8
|
* Merge branch 'PHP-7.4'Anatol Belski2020-02-081-0/+3
|\ | | | | | | | | * PHP-7.4: Update bundled stdxx check macros
| * Update bundled stdxx check macrosAnatol Belski2020-02-081-0/+3
| |
* | Bison: enable all the warnings and fix themAkim Demaille2020-02-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | First, fix 5547d361208d90e12d53bb62bb2ffbbff9b93ca0: the definition of YFLAGS was not passed into the Makefile: AC_SUBST does not suffice, we need PHP_SUBST_OLD. While at it, allow to pass variable and value at the same time. Then pass -Wall to bison, rather than only -Wempty-rules. Use %precedence where associativity is useless. Remove useless %precedence. GH-5138
* | Use "%empty" in the parsers, instead of commentsAkim Demaille2020-01-311-0/+1
| | | | | | | | | | | | | | | | | | | | The annotation %empty is properly enforced: warnings when it's missing, and errors when it's inappropriate. Support for %empty was introduced in Bison 3.0. Pass -Wempty-rule to Bison. Closes GH-5134
* | Merge branch 'PHP-7.4'Nikita Popov2020-01-201-7/+1
|\ \ | |/ | | | | | | * PHP-7.4: Fix bug #79112: IMAP can't find OpenSSL during configure
| * Fix bug #79112: IMAP can't find OpenSSL during configureNikita Popov2020-01-201-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the check of PHP_OPENSSL inside SETUP_OPENSSL. It's the responsibility of the caller to determine whether they want to enable openssl or not. This makes SSL detection in IMAP work, which uses a different option. Additionally also clarify that --with-openssl-dir cannot actually be used to specify an OpenSSL directory -- these options just serve as a way to enable OpenSSL in extensions without also enabling the OpenSSL extension. They need to be renamed to something clearer in master. Closes GH-5091.
* | Merge branch 'PHP-7.4'Nikita Popov2019-11-041-0/+24
|\ \ | |/ | | | | | | * PHP-7.4: Revert "Remove configure checks for supported instruction sets"
| * Revert "Remove configure checks for supported instruction sets"Nikita Popov2019-11-041-0/+24
| | | | | | | | | | | | | | | | This reverts commit edccf32f7f36a8bc759b9482737e0c3efcb3a005. This was reported to cause issues for as yet unknown reasons in bug #78769. As this was intended as code cleanup, revert this from 7.4 at least. May reapply it to master later.
* | Merge branch 'PHP-7.4'Nikita Popov2019-10-311-24/+0
|\ \ | |/ | | | | | | * PHP-7.4: Remove configure checks for supported instruction sets
| * Remove configure checks for supported instruction setsNikita Popov2019-10-311-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These were checking whether the instruction set is supported by the host CPU, however they were only used to condition on whether this instruction set is targeted at all. It would still use dynamic dispatch (e.g. based on ifunc resolvers) to select the actual implementation. Whether the target is guaranteed to support the instruction set without dispatch is determined based on pre-defined macros like __SSE2__. This removes the configure-time builtin cpu checks to remove confusion. Additionally this allows targeting an architecture that is newer than the host architecture.
* | Fix bug #78681 by renaming libphp8.so to libphp.soNikita Popov2019-10-292-11/+11
| | | | | | | | The major version number is no longer included.
* | Merge branch 'PHP-7.4'Nikita Popov2019-10-141-0/+2
|\ \ | |/ | | | | | | * PHP-7.4: Add "-pthread" to EXTRA_LDFLAGS_PROGRAM as well
| * Add "-pthread" to EXTRA_LDFLAGS_PROGRAM as wellNikita Popov2019-10-141-0/+2
| |
* | Merge branch 'PHP-7.4'Nikita Popov2019-10-111-18/+44
|\ \ | |/
| * Azure: Publish code coverage resultsGerard Roche2019-10-111-18/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add an Azure Publish Code Coverage Results task * Add `make gcovr-html` to generate a gcovr test coverage report in HTML * Add `make gcovr-xml` to generate a gcovr test coverage report in XML * Remove `test` target dependency from `make lcov-html`; Run the two targets together instead: `make test lcov-html`. Re: https://github.com/php/php-src/pull/4739#issuecomment-534911441 See: https://externals.io/message/107113, https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results?view=azure-devops, and https://github.com/php/php-src/pull/4759.
* | Merge branch 'PHP-7.4'Nikita Popov2019-10-111-0/+3
|\ \ | |/
| * Remove configure checks for ltp when using --enable-gcovNikita Popov2019-10-111-0/+3
| | | | | | | | | | gcov builds can also be used with other tools like gcovr, so remove the hard dependency on LTP.
| * Revert "Don't buid static libaraies when only DSO required"Dmitry Stogov2019-10-102-2/+2
| | | | | | | | This reverts commit f633c347574c0d814050b4bf2493e0cac6a5988c.
* | Merge branch 'PHP-7.4'Dmitry Stogov2019-10-041-2/+2
|\ \ | |/ | | | | | | * PHP-7.4: Fixed bug #78614 (Does not compile with DTRACE anymore)
| * Fixed bug #78614 (Does not compile with DTRACE anymore)Dmitry Stogov2019-10-041-2/+2
| |
* | Merge branch 'PHP-7.4'Nikita Popov2019-09-251-58/+15
|\ \ | |/
| * Fix GCOV not working for PHP-7.4 and master branchesGerard Roche2019-09-251-58/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code coverage reports (`make lcov`), since commit eef8522 (7.4 branch), generates incorrect coverage and emits warnings. Simplifying the Makefile.gcov file has the side-effect of resolving the issue. Processing sapi/cli/php_http_parser.gcda php-src/lcov_data/sapi/cli/php_http_parser.gcda:stamp mismatch with notes file geninfo: WARNING: gcov did not create any files for php-src/lcov_data/sapi/cli/php_http_parser.gcda! ... Processing ext/mbstring/mb_gpc.gcda php-src/lcov_data/ext/mbstring/mb_gpc.gcda:stamp mismatch with notes file geninfo: WARNING: gcov did not create any files for php-src/lcov_data/ext/mbstring/mb_gpc.gcda! Closes: https://bugs.php.net/bug.php?id=52718. See also: https://bugs.php.net/bug.php?id=78288.
* | Merge branch 'PHP-7.4'Dmitry Stogov2019-09-192-2/+2
|\ \ | |/ | | | | | | * PHP-7.4: Don't buid static libaraies when only DSO required
| * Don't buid static libaraies when only DSO requiredDmitry Stogov2019-09-192-2/+2
| |
* | Port various autoconf bits to C99 compilersFlorian Weimer2019-09-102-11/+11
| | | | | | | | | | | | C99 no longer has implicit function declarations and implicit ints. Current GCC versions enable them as an extension, but this will change in a future GCC version.
* | Fix gen_stubs with out-of-tree buildNikita Popov2019-09-031-1/+1
| | | | | | | | We need to prefix with $(top_srcdir).
* | Generate arginfo from PHP stub filesNikita Popov2019-08-091-0/+6
| | | | | | | | | | | | | | | | | | | | Signature stubs for internal functions are specified in xyz.stub.php, from which we generate actual arginfo structures in xyz_arginfo.h. This file then needs to be included in the implementation appropriately. Arginfo from stubs can be regenerated using scripts/dev/gen_stub.php. However, this should also automatically happen when the stub file is modified.
* | Merge branch 'PHP-7.4'Peter Kokot2019-07-211-40/+0
|\ \ | |/ | | | | | | * PHP-7.4: Remove build.mk usage
| * Remove build.mk usagePeter Kokot2019-07-211-40/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First step when creating the `configure` script is currently using make. This is helpful when developing buildsystem to only rebuild `configure` and `main/php_config.h.in` files when one of the *.m4 or configure.ac file changes and saves the developer time a little. Realistically however, it is not needed that much considering the times of several seconds to fully rebuild the configure script and configuration header. The next step when running the `configure` script is much more time consuming so performance on buildconf level is a bit questionable and won't be noticed on today's systems. Additionally: - buildconf now removes cache and all targets and uses -f option on the first step i.e. autoconf. The autoheader does not need the -f option in this case. Closes GH-4437
* | Merge branch 'PHP-7.4'Peter Kokot2019-07-181-20/+0
|\ \ | |/ | | | | | | * PHP-7.4: Remove duplicate socklen_t check
| * Remove duplicate socklen_t checkPeter Kokot2019-07-181-20/+0
| | | | | | | | | | | | - Use Autoconf's default AC_CHECK_TYPES Closes GH-4418
* | Merge branch 'PHP-7.4'Peter Kokot2019-07-112-3/+17
|\ \ | |/ | | | | | | * PHP-7.4: Refactor undefining PACKAGE_* symbols
| * Refactor undefining PACKAGE_* symbolsPeter Kokot2019-07-112-3/+17
| | | | | | | | | | | | | | | | | | | | Instead of patching configuration headers template generated by the given tools - autoheader, this moves patching these symbols to the configure step before creating and invoking the config.status and before the configuration header file is generated from the patched template. Closes GH-4374
* | Merge branch 'PHP-7.4'Peter Kokot2019-07-081-26/+40
|\ \ | |/ | | | | | | * PHP-7.4: Refactor genif.sh