summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-02-022-2/+2
|\ | | | | | | | | * PHP-7.4: Update year to 2021
| * Update year to 2021Peter Kokot2021-02-022-2/+2
| | | | | | | | Closes GH-6636.
* | Fix phpt reindentation in tidy scriptNikita Popov2020-11-251-2/+2
| | | | | | | | This was missing adjacent SKIPIF/FILE/CLEAN sections.
* | Allow running tidy.php on specific directoryNikita Popov2020-11-251-2/+11
| |
* | Apply tidy to SKIPIF and CLEAN section as wellNikita Popov2020-09-181-1/+1
| |
* | Merge branch 'PHP-7.4'Nikita Popov2020-09-081-3/+10
|\ \ | |/ | | | | | | * PHP-7.4: Support more placeholders in bless_tests.php
| * Support more placeholders in bless_tests.phpNikita Popov2020-09-081-3/+10
| | | | | | | | And don't replace trailing --CLEAN-- sections.
| * Backport bless_tests.php changes from PHP 8Nikita Popov2020-08-051-3/+168
| |
* | ensure all files have same date in official archivesRemi Collet2020-06-251-1/+2
| |
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-06-101-3/+3
|\ \ | |/ | | | | | | * PHP-7.4: Also support absolute Windows filenames
| * Also support absolute Windows filenamesChristoph M. Becker2020-06-101-3/+3
| | | | | | | | | | | | | | The output normalization of bless_tests.php only detected absolute Unix filenames; we extend this for absolute Windows filenames, regardless of the platform we're running on (tests may have been run on Windows, but bless_tests.php may be run from WSL or a Linux VM, for instance).
* | Unbundle ext/xmlrpcChristoph M. Becker2020-05-291-1/+0
| | | | | | | | | | According to <https://wiki.php.net/rfc/unbundle_xmlprc> we unbundle ext/xmlrpc.
* | Make numeric operations on resources, arrays and objects type errorsNikita Popov2020-05-051-1/+2
| | | | | | | | | | | | RFC: https://wiki.php.net/rfc/arithmetic_operator_type_checks Closes GH-5331.
* | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-1/+1
| | | | | | | | | | | | | | 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 gen_stub.php to build directory and install it so phpize can take care ↵Remi Collet2020-04-033-642/+3
| | | | | | | | of it, and thus extension can use it as it is already in Makefile
* | mb_detect_encoding(): Use proper array|string parameterNikita Popov2020-03-301-2/+3
| | | | | | | | Needed to add support for nullabiltiy in some places.
* | Enable formatting of phpt files in tidy.phpNikita Popov2020-02-031-5/+3
| |
* | Merge branch 'PHP-7.4'Nikita Popov2020-02-033-317/+317
|\ \ | |/ | | | | | | * PHP-7.4: Apply tidy formatting
| * Apply tidy formattingNikita Popov2020-02-033-317/+317
| | | | | | | | Mostly reindent PHP scripts to spaces.
* | Add bundled jit libraries to exclude listNikita Popov2020-02-031-0/+3
| |
* | Merge branch 'PHP-7.4'Nikita Popov2020-02-031-0/+145
|\ \ | |/ | | | | | | * PHP-7.4: Add tidy.php to enforce formatting
| * Add tidy.php to enforce formattingNikita Popov2020-02-031-0/+145
| | | | | | | | | | Many parts are disabled for the PHP-7.4 branch. We only strip trailing whitespace in C files and reindent .php files to spaces.
* | Support union types for args in gen stubsNikita Popov2019-11-151-2/+10
| | | | | | | | | | | | | | | | Using this requires care! The zpp implementation for this union must be consistent with the arginfo implementation! Apart from array|object, this is probably only the case for int|float right now.
* | Support single class unions in gen stubsNikita Popov2019-11-151-23/+53
| |
* | Add union return types for function stubsMáté Kocsis2019-11-111-0/+2
| |
* | Add support for union types in stubsNikita Popov2019-11-081-37/+148
| | | | | | | | | | | | | | | | This is the MVP for supporting union types in PHP stubs. Return types with only builtin types work, which is the part we mainly need. Closes GH-4895.
* | Allow generating stubs for directoryNikita Popov2019-11-011-3/+14
| |
* | Improve bless tests script to minimize diffsNikita Popov2019-10-011-2/+166
| | | | | | | | | | | | Compute the diff between the old EXPECTF and the new output and don't touch lines that still match the old EXPECTF. This reduces the amount of manual fixup necessary after running bless_tests.php.
* | Merge branch 'PHP-7.4'Nikita Popov2019-09-271-0/+4
|\ \ | |/
| * Handle resources used as array keys consistentlyNikita Popov2019-09-271-0/+4
| | | | | | | | | | | | | | | | Resources used as array keys are generally handled by throwing a notice and converting the resource to the resource handle. The only exception is the [$resource => null] syntax, where this was treated as an illegal offset type instead. However, this also only happened for VM evaluations, the AST evaluator did handle resources correctly.
| * Throw notice for plain wrapper fread/fwrite errorsNikita Popov2019-07-251-0/+1
| | | | | | | | Similar to what is done for socket read/write errors.
* | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-253-6/+0
| | | | | | | | Closes GH-4732.
* | Make arginfo printing of prefer-ref arguments nicerNikita Popov2019-08-261-5/+17
| |
* | Make sure that params with null default are marked nullableNikita Popov2019-08-261-1/+10
| |
* | Convert remaining array function arginfo to PHP stubsTheodore Brown2019-08-261-10/+54
| |
* | Fix escapes for namespaced classes in gen_stub.phpTyson Andre2019-08-231-2/+2
| | | | | | | | | | | | | | | | Fix the string generated when the `ns\class` is passed to a macro #define ESCAPE(x) #x // puts(ESCAPE(ns\class)); // warning: unknown escape sequence: \c puts(ESCAPE(ns\\class)); // Properly prints ns\class to stdout.
* | Support typed variadic args in gen_stubsNikita Popov2019-08-151-14/+8
| |
* | Add a prefix to differeniate between class methods and functionsCraig Duncan2019-08-121-1/+1
| | | | | | | | Closes GH-4528
* | Support regenerating all stubsNikita Popov2019-08-121-11/+25
| |
* | Add support for callable to the stub generator [ci skip]Stephen Reay2019-08-111-0/+2
| |
* | Handle preprocessor conditions inside classesNikita Popov2019-08-101-35/+26
| | | | | | | | Also remove the dead parseClass() function.
* | Fallback to curl in gen_stub if wget failsStephen Reay2019-08-101-0/+4
| | | | | | | | Closes GH-4502.
* | Expand preprocessor support in gen_stubsNikita Popov2019-08-101-22/+46
| | | | | | | | Support #ifdef, #ifndef, #else and nested #if's.
* | Make uninitialized DateTime an ErrorNikita Popov2019-08-091-3/+7
| | | | | | | | This avoids many spurious false return values.
* | Generate arginfo from PHP stub filesNikita Popov2019-08-091-0/+380
| | | | | | | | | | | | | | | | | | | | 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'Nikita Popov2019-07-121-0/+1
|\ \ | |/
| * Improve bless_testsNikita Popov2019-07-121-0/+1
| | | | | | | | | | If a string var_dump contains a wildcard, also make the length a wildcard.
* | Merge branch 'PHP-7.4'Peter Kokot2019-07-112-4/+2
|\ \ | |/ | | | | | | * PHP-7.4: Refactor undefining PACKAGE_* symbols
| * Refactor undefining PACKAGE_* symbolsPeter Kokot2019-07-112-4/+2
| | | | | | | | | | | | | | | | | | | | 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-4/+0
|\ \ | |/ | | | | | | * PHP-7.4: Remove some unused variables