summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Export the zend_string_concat3() APINikita Popov2020-04-095-33/+32
|
* Export API for fetching internal func defaultNikita Popov2020-04-093-98/+105
| | | | Make this functionality available outside reflection.
* Fix typo (UNKOWN -> UNKNOWN)Christoph M. Becker2020-04-096-25/+8
|
* Convert if blocks to assertions and adapt stubs accordinglyGeorge Peter Banyard2020-04-093-91/+68
|
* Cache MBFL encoding for Oniguruma regex functions.George Peter Banyard2020-04-091-26/+13
| | | | Closes GH-5355
* cleanupDmitry Stogov2020-04-091-61/+50
|
* Don't get number of passed arguments from "fake" INIT framesDmitry Stogov2020-04-091-1/+1
|
* Fix #79462: method_exists and property_exists incoherent behaviorChristoph M. Becker2020-04-093-24/+31
| | | | | Both functions are closely related, so should behave the same for wrong input types, i.e. both should throw a TypeError.
* Add test to make sure internal param default eval doesn't errorNikita Popov2020-04-091-0/+33
|
* Merge branch 'PHP-7.4'Nikita Popov2020-04-093-5/+31
|\ | | | | | | | | * PHP-7.4: Fixed bug #78434
| * Fixed bug #78434Nikita Popov2020-04-094-5/+34
| | | | | | | | | | | | The DO_INIT flag, which will skip the first resume on a primed generator, should always be set when starting to yield from a new generator, not only when the yield from happens during priming.
* | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-08132-1273/+1788
| | | | | | | | | | | | | | 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>
* | Merge branch 'PHP-7.4'Nikita Popov2020-04-0833-251/+83
|\ \ | |/ | | | | | | * PHP-7.4: Add php_cli_server_connect() helper
| * Add php_cli_server_connect() helperNikita Popov2020-04-0833-251/+83
| | | | | | | | | | | | | | To encapsulate the repeated fsockopen() code. This gives us a chance to control the timeout in one place: Raise it to one second.
* | Merge branch 'PHP-7.4'Nikita Popov2020-04-081-4/+6
|\ \ | |/ | | | | | | * PHP-7.4: Make mysqli_poll test more deterministic
| * Make mysqli_poll test more deterministicNikita Popov2020-04-081-5/+7
| | | | | | | | Handle errors appearing in different order.
* | Fix typo in GD stubNikita Popov2020-04-081-1/+1
| |
* | Update mb_strrpos() stubNikita Popov2020-04-082-7/+2
| | | | | | | | | | We no longer accept the encoding as 3rd param, so we can make this a proper int argument.
* | Dump information about trace side exitsDmitry Stogov2020-04-082-1/+56
| |
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-04-081-2/+1
|\ \ | |/ | | | | | | * PHP-7.4: Relax overly strict test expectation
| * Relax overly strict test expectationChristoph M. Becker2020-04-081-2/+1
| | | | | | | | | | | | | | There is no reason to expect a `1` after the PID; neither the session ID nor the memory usage are required to contain one. Actually, we just want to verify here, that the process with the $child_pid is running, and is a php.exe process.
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-04-081-2/+9
|\ \ | |/ | | | | | | * PHP-7.4: Fix memory leak introduced by fixing bug #78221
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-04-081-2/+9
| |\ | | | | | | | | | | | | * PHP-7.3: Fix memory leak introduced by fixing bug #78221
| | * Fix memory leak introduced by fixing bug #78221Christoph M. Becker2020-04-081-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have to free the retrieved text content; to keep the code readable, we extract a helper function to check for empty nodes. Unfortunately, we cannot use xmlIsBlankNode(), because that also recognizes whitespace only text content. We also make sure to properly handle NULL returns from xmlNodeGetContent().
* | | Merge branch 'PHP-7.4'Nikita Popov2020-04-080-0/+0
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix test
| * | Fix testNikita Popov2020-04-081-2/+3
| | |
* | | Update stack type, only if necessaryDmitry Stogov2020-04-081-1/+1
| | |
* | | Fixed TYPE/INFO mismatchDmitry Stogov2020-04-081-1/+1
| | |
* | | Merge branch 'PHP-7.4'George Peter Banyard2020-04-075-29/+35
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.4: Revert "Went to fast and forgot to update tests" Revert "Fix Bug #79448 0 is a valid Unicode codepoint, but mb_substitute_character(0) fails"
| * | Merge branch 'PHP-7.3' into PHP-7.4George Peter Banyard2020-04-075-28/+33
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.3: Revert "Went to fast and forgot to update tests" Revert "Fix Bug #79448 0 is a valid Unicode codepoint, but mb_substitute_character(0) fails"
| | * Revert "Went to fast and forgot to update tests"George Peter Banyard2020-04-073-16/+32
| | | | | | | | | | | | This reverts commit 656eac74fa6074aebc087bb73d2e4651f7dc8c9e.
| | * Revert "Fix Bug #79448 0 is a valid Unicode codepoint, but ↵George Peter Banyard2020-04-072-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | mb_substitute_character(0) fails" This commit brings some substantial changes in behaviour due to the weird implementation. This will be fixed in master due to BC concerns. This reverts commit 1333b46d6dc0c293c1fd626803f91bc69743eb79.
* | | cleanupDmitry Stogov2020-04-071-14/+17
| | |
* | | Revert "cleanup" (wrong commit)Dmitry Stogov2020-04-071-798/+3
| | | | | | | | | | | | This reverts commit 5db5f71f2831df4d32484a5638f6f6aa72e364a5.
* | | cleanupDmitry Stogov2020-04-071-3/+798
| | |
* | | Remove most uses of _default_get_name()Nikita Popov2020-04-072-33/+53
| | | | | | | | | | | | | | | | | | Instead fetch the name from the respective structure. The only place where this is still used is ReflectionClassConst, as zend_class_const does not store the name.
* | | Eliminate uses of _default_load_name()Nikita Popov2020-04-072-92/+69
| | | | | | | | | | | | | | | | | | Instead fetch the name from the function/class/property, as appropriate. This makes us independent of the property, and eliminates error conditions related to it.
* | | Optimize internal name fetching in reflectionNikita Popov2020-04-071-1/+5
| | | | | | | | | | | | | | | | | | Directly fetch the name property, instead of construction the properties hash table and performing a lookup in it. This is both slow and wastes a lot of memory.
* | | Assert that arginfo parameter name is presentNikita Popov2020-04-073-20/+12
| | |
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-04-072-0/+25
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #78221: DOMNode::normalize() doesn't remove empty text nodes
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-04-073-0/+29
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #78221: DOMNode::normalize() doesn't remove empty text nodes
| | * Fix #78221: DOMNode::normalize() doesn't remove empty text nodesChristoph M. Becker2020-04-073-0/+29
| | | | | | | | | | | | | | | If a text node is not followed by another text node, we remove it, if its textContent is empty.
* | | Free room for information about register allocation at astact stack and at ↵Dmitry Stogov2020-04-072-38/+81
| | | | | | | | | | | | trace_exit_info. Implement simple deoptimizer.
* | | Save CPU regesters on side exit for deoptimizationDmitry Stogov2020-04-066-8/+66
| | |
* | | Minor register allocator refactoringDmitry Stogov2020-04-063-27/+30
| | |
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-04-0616-33/+227
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #69264: __debugInfo() ignored while extending SPL classes
| * | Fix #69264: __debugInfo() ignored while extending SPL classesChristoph M. Becker2020-04-067-36/+193
| | | | | | | | | | | | | | | | | | | | | We actually implement `::__debugInfo()` and drop the `get_debug_info()` handlers of all relevant SPL classes. This is cleaner and gives more flexibility regarding overriding the functionality in descendant classes.
* | | Inline a ZEND_NUM_ARGS() variableNikita Popov2020-04-061-2/+1
| | |
* | | Clean up constructor handling in com_dotnetChristoph M. Becker2020-04-069-123/+149
| | | | | | | | | | | | | | | | | | We substitute the construction magic with standard constructors, move the ZPP checks to the beginning of the ctors, and also let the function entries be generated from the stubs.
* | | Improve some ValueError messagesMáté Kocsis2020-04-0654-247/+274
| | | | | | | | | | | | Closes GH-5340