| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| |
| |
| | |
* PHP-7.4:
Also support absolute Windows filenames
|
| | |
| |
| |
| |
| |
| |
| | |
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).
|
| | |
| |
| |
| |
| | |
According to <https://wiki.php.net/rfc/unbundle_xmlprc> we unbundle
ext/xmlrpc.
|
| | |
| |
| |
| |
| |
| | |
RFC: https://wiki.php.net/rfc/arithmetic_operator_type_checks
Closes GH-5331.
|
| | |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| |
| |
| | |
of it, and thus extension can use it as it is already in Makefile
|
| | |
| |
| |
| | |
Needed to add support for nullabiltiy in some places.
|
| | | |
|
| |\ \
| |/
| |
| |
| | |
* PHP-7.4:
Apply tidy formatting
|
| | |
| |
| |
| | |
Mostly reindent PHP scripts to spaces.
|
| | | |
|
| |\ \
| |/
| |
| |
| | |
* PHP-7.4:
Add tidy.php to enforce formatting
|
| | |
| |
| |
| |
| | |
Many parts are disabled for the PHP-7.4 branch. We only strip
trailing whitespace in C files and reindent .php files to spaces.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
Similar to what is done for socket read/write errors.
|
| | |
| |
| |
| | |
Closes GH-4732.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | |
| |
| |
| | |
Closes GH-4528
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Also remove the dead parseClass() function.
|
| | |
| |
| |
| | |
Closes GH-4502.
|
| | |
| |
| |
| | |
Support #ifdef, #ifndef, #else and nested #if's.
|
| | |
| |
| |
| | |
This avoids many spurious false return values.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| | |
If a string var_dump contains a wildcard, also make the length a
wildcard.
|
| |\ \
| |/
| |
| |
| | |
* PHP-7.4:
Set Computer English language for credits sorting
|
| | |
| |
| |
| |
| | |
This makes the script a bit more portable when used on systems with
different LC_ALL and LANG settings.
|
| |/
|
|
|
| |
More type checks that are not part of zpp and should generate a
TypeError in PHP 8.
|
| |
|
|
|
|
|
|
|
|
|
| |
This enhances the makidst script:
- integrate both snapshot and makedist scripts together
- add help and options
- generated files are created in the php-src repository directly
- other minor enhancemenets such as CS fixes
- functionality moved from the Makefile to only shell script
- Add missed patching of the Zend Parsers to the main build step
- Add all *.tmp files to gitignore
|
| |
|
|
|
|
|
| |
The vcsclean script is really only a wrapper for a git clean command.
Developers should use the more proper and clear native Git command
directly instead:
`git clean -Xfd`
|
| |
|
|
|
|
|
|
| |
This script hasn't been used since using PEAR as a package manager for
PHP extensions since it is using Makefile.in as an indicator if the
current directory is extension. Instead of this script extensions can
be packaged differently and more properly with either current PEAR
or with some other manual method.
|
| |
|
|
|
|
|
|
|
| |
The buildmk.stamp file has been created by the *nix build checking step
to run the check step only once. Instead of poluting the project root
directory, the stamp file can be also omitted. Performance difference is
very minimal to not justify having the stamp check at all today anymore.
This patch integrates the buildcheck.sh to buildconf script directly.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch refactors these macros to also checks for the required given
versions of bison and re2c.
- PHP_PROG_RE2C and PHP_PROG_BISON take optional args - minmimum version
required, and bison also excluded versions.
- Instead of caching values this uses manual checking and messaging
outputs.
- It looks like the minimum version of RE2C 0.13.4 is working ok so far.
The genfiles script improvements:
- Add make override in genfiles
- Move checkings from makedist to genfiles
- Refactored output messages
- Various minor enhancements
|
| |
|
|
|
|
|
|
|
|
| |
With Bison 3.0 some directives are deprecated:
- %name-prefix "x" should be %define api.prefix {x}
- %error-verbose should be %define parse.error verbose
Bison 3.3 also started emiting more warnings and since PHP souce parsers
are not POSIX compliant this patch fixes this as pointed out via
495a46aa1dc564656bf919cb49aae48a31ae15f4.
|
| |
|
|
|
|
| |
When building lexer and parser files leave bundled files untouched as
are tracked in the Git. *.orig files also don't need to be cleaned
anymore.
|
| |
|
|
|
|
|
|
|
|
|
| |
The more proper place for shell scripts dedicated for development, and
releasing PHP should be the scripts/dev directory. Having a cleaner root
project directory helps find the main README.md and files relevant to
install PHP.
These scripts are also used by the release managers mostly who create
release packages and aren't used often by the majority of developers
working on and installing PHP.
|