summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Allow observer handlers disabling optimization in RETURN opcode handler, ↵Dmitry Stogov2021-01-263-11/+14
| | | | | | | | | | | | | | | | that may cause loss value of returned local variable.
* | | | Remove unused mmap member in phpdbg_file_sourceNikita Popov2021-01-261-3/+0
| | | |
* | | | Merge branch 'PHP-8.0'Dmitry Stogov2021-01-262-2/+41
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Skip dummy frames allocated on CPU stack of zend_call_function(). (Usage of "current_observed_frame" varible looks unsafe to me).
| * | | Skip dummy frames allocated on CPU stack of zend_call_function().Dmitry Stogov2021-01-262-2/+41
| | | | | | | | | | | | | | | | (Usage of "current_observed_frame" varible looks unsafe to me).
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-262-6/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix VAR return type verification
| * | | Fix VAR return type verificationNikita Popov2021-01-262-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should also set retval_ref when de-indirecting. Otherwise the retval_ref != retval_ptr comparison below may incorrect assume that we're returning a reference. I don't have a reliable reproducer for this issue, but it sometimes appears in certain configurations in arrow_functions/007.phpt in conjunction with other changes.
* | | | Fix proptable canonicalization bypass in ArrayObjectNikita Popov2021-01-262-174/+179
| | | | | | | | | | | | | | | | | | | | | | | | When an ArrayObject wraps an object, we should be using the proptable canonicalilzation rules, which require all keys to be strings.
* | | | Add missing resource key warning for unset()Nikita Popov2021-01-263-0/+43
| | | | | | | | | | | | | | | | | | | | It was present on other operations, including isset(), but was missing for unset().
* | | | Add support for generating class entries from stubsMáté Kocsis2021-01-2648-295/+1300
| | | | | | | | | | | | | | | | | | | | | | | | Closes GH-6289 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* | | | Distinguishing opcache SHM on stats tools for MacDavid CARLIER2021-01-261-7/+15
| | | | | | | | | | | | | | | | Closes GH-6628.
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-252-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #75850: Unclear error message wrt. __halt_compiler() w/o semicolon
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-253-2/+6
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #75850: Unclear error message wrt. __halt_compiler() w/o semicolon
| | * | Fix #75850: Unclear error message wrt. __halt_compiler() w/o semicolonChristoph M. Becker2021-01-253-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | We add the failure reason to the error message. Closes GH-6638.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-252-10/+38
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Improve switch continue warning
| * | | Improve switch continue warningNikita Popov2021-01-252-10/+38
| | | | | | | | | | | | | | | | | | | | Don't suggest "continue N+1" if there is no wrapping loop. The resulting code would be illegal.
* | | | Remove unnecessary TRUE/FALSE defines in tidyNikita Popov2021-01-251-10/+2
| | | | | | | | | | | | | | | | Instead use standard true/false.
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-254-9/+36
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #53251: bindtextdomain with null dir doesn't return old value
| * | | Fix #53251: bindtextdomain with null dir doesn't return old valueChristoph M. Becker2021-01-255-9/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently, users expect `bindtextdomain` and `bind_textdomain_codeset` with `null` as second argument to work like their C counterparts, namely to return the previously set value. Thus, we support that. Closes GH-6631.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-251-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-8.0: Fix opcache phpize build on FreeBSD Updated to version 2021.1 (2021a)
| * | | Fix opcache phpize build on FreeBSDAlex Samorukov2021-01-251-0/+3
| | | | | | | | | | | | | | | | Closes GH-6589.
| * | | Updated to version 2021.1 (2021a)Derick Rethans2021-01-251-2360/+2559
| | | |
| * | | Empty mergeDerick Rethans2021-01-250-0/+0
| |\ \ \ | | |/ /
* | | | Allow specifying sqlite3 DSN (file:/) in PDO SQLitetzmfreedom2021-01-254-0/+84
| | | | | | | | | | | | | | | | Closes GH-6610.
* | | | Fix parsing of semi-reserved tokens at offset > 4 GBNikita Popov2021-01-253-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid increasing the size of parser stack elements by storing size_t offset and length, this instead only stores the start offset (or rather pointer now) and determines the length of the identifier in zend_lex_tstring.
* | | | Updated to version 2021.1 (2021a)Derick Rethans2021-01-251-2360/+2559
| | | |
* | | | Empty mergeDerick Rethans2021-01-250-0/+0
|\ \ \ \ | | |/ / | |/| |
| * | | Updated to version 2021.1 (2021a)Derick Rethans2021-01-251-2360/+2559
| | | |
| * | | Empty mergeDerick Rethans2021-01-250-0/+0
| |\ \ \ | | | |/ | | |/|
| | * | Updated to version 2021.1 (2021a)Derick Rethans2021-01-251-2360/+2559
| | | |
* | | | Improve error message for leading comma in keyed list assignmentNikita Popov2021-01-252-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | Print "Cannot use empty array entries in keyed array assignment" instead of "Cannot mix keyed and unkeyed array entries in assignments" for a leading comma.
* | | | Disable jit in observer opline testNikita Popov2021-01-251-0/+1
| | | | | | | | | | | | | | | | This test fails in --repeat mode with tracing JIT.
* | | | Fix #80330: Replace language in APIs and source code/docsDarek Slusarczyk2021-01-256-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename MYSQLI_REFRESH_SLAVE to MYSQLI_REFRESH_REPLICA in line with upstream change in MySQL. The old name is retained for backwards-compatibility reasons, and may be deprecated/removed in the future. Closes GH-6632.
* | | | Add documentation of array_is_list() to UPGRADINGTyson Andre2021-01-241-0/+4
| | | |
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-242-1/+10
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | * PHP-8.0: Add missing stub for SNMPException
| * | | Add missing stub for SNMPExceptionChristoph M. Becker2021-01-242-1/+10
| | | |
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-242-1/+10
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Add missing stub for com_exception
| * | | Add missing stub for com_exceptionChristoph M. Becker2021-01-242-1/+10
| | | |
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-211-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Add missing SKIPIF clause for recently introduced test case
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-211-0/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Add missing SKIPIF clause for recently introduced test case
| | * | Add missing SKIPIF clause for recently introduced test caseChristoph M. Becker2021-01-211-0/+1
| | | |
* | | | Accept zend_string in zend_prepare_string_for_scanningNikita Popov2021-01-215-15/+16
| | | |
* | | | Fixed crash in ZTS build with --repeat optionDmitry Stogov2021-01-211-0/+1
| | | |
* | | | Add array_is_list(array $array) functionDusk2021-01-207-23/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function tests if an array contains only sequential integer keys. While list isn't an official type, this usage is consistent with the community usage of "list" as an annotation type, cf. https://psalm.dev/docs/annotating_code/type_syntax/array_types/#lists Rebased and modified version of #4886 - Use .stub.php files - Add opcache constant evaluation when argument is a constant - Change from is_list(mixed $value) to array_is_list(array $array) RFC: https://wiki.php.net/rfc/is_list Co-Authored-By: Tyson Andre <tysonandre775@hotmail.com> Co-Authored-By: Dusk <dusk@woofle.net> Closes GH-6070
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-200-0/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #80648: Fix for bug 79296 should be based on runtime version
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-200-0/+0
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #80648: Fix for bug 79296 should be based on runtime version
| | * | Fix #80648: Fix for bug 79296 should be based on runtime versionChristoph M. Becker2021-01-202-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of checking for actually affected libzip versions, we now always `ZIP_TRUNCATE` empty files unless `ZIP_RDONLY` is set. Closes GH-6625.
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-202-0/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Add missing SKIPIF clauses to new test cases
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-202-0/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Add missing SKIPIF clauses to new test cases
| | * | Add missing SKIPIF clauses to new test casesChristoph M. Becker2021-01-202-0/+2
| | | |
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-201-2/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Skip preloading test on windows