summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-8.0'Christoph M. Becker2021-01-111-10/+0
|\ | | | | | | | | * PHP-8.0: Revert fix for bug 76813 and re2c version bump
| * Revert fix for bug 76813 and re2c version bumpChristoph M. Becker2021-01-111-10/+0
| | | | | | | | | | | | | | | | | | | | | | CentOS 7 ships with re2c 0.13.5 by default, so we should not have bumped the required re2c version to 0.13.7. However, 0.13.5 does not support default rules, so we cannot use them to fix bug 76813. This reverts commit 420184ad529443182c9a348a55b1c9216005c613 and 5e15c9c41f8318a8392c2e2c78544f218736549c. Closes GH-6593.
* | Restrict allowed usages of $GLOBALSNikita Popov2021-01-061-2/+1
| | | | | | | | | | | | | | | | | | This restricts allowed usage of $GLOBALS, with the effect that plain PHP arrays can no longer contain INDIRECT elements. RFC: https://wiki.php.net/rfc/restrict_globals_usage Closes GH-6487.
* | Ensure consistent error message in phpdbg parserNikita Popov2020-12-021-3/+3
|/ | | | | | This would be either $end or "end of file" depending on bison version. Explicitly specify "end of command" instead, which seems more appropriate in context.
* Drop all JIT related XFAILS from phpdbg test suiteChristoph M. Becker2020-11-3019-93/+0
| | | | phpdbg now disables JIT, so these cause XFAIL warnings.
* Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-11-301-0/+10
|\ | | | | | | | | * PHP-7.4: Fix #76813: Access violation near NULL on source operand
| * Fix #76813: Access violation near NULL on source operandChristoph M. Becker2020-11-301-0/+10
| | | | | | | | | | | | | | | | | | | | We avoid `YYCURSOR` becoming `NULL` by initializing `YYMARKER`, and add a default rule for `<NORMAL>` where we catch unexpected input. We also fix the only superficially related issue regarding empty input followed by `T_SEPARATOR` and command, which caused another segfault. Closes GH-6464.
* | Adjust assignment line number for matchIlija Tovilo2020-09-084-0/+128
| | | | | | | | | | | | | | | | Otherwise the assignment will have the same number as the default arm which will 1. mis-trigger a breakpoint and 2. mark the line as covered even when it isn't. Closes GH-6083
* | Mark phpdbg test as XFAIL on Windows with JIT enabledChristoph M. Becker2020-06-241-0/+6
| | | | | | | | The test fails as of commit 8b12ea04ee405f746ca2394672f8372c57fd05b2.
* | Fix typo in skipif sectionNikita Popov2020-06-031-0/+1
| | | | | | | | Merge mistake...
* | Merge branch 'PHP-7.4'Nikita Popov2020-06-031-1/+3
|\ \ | |/ | | | | | | * PHP-7.4: Skip new watch point test under asan
| * Skip new watch point test under asanNikita Popov2020-06-031-0/+6
| |
* | Skip new test case on Windows when JIT is enabledChristoph M. Becker2020-06-021-0/+6
| | | | | | | | Cf. <http://git.php.net/?p=php-src.git;a=commit;h=c5cf0af8a98cbc574fd315bf9d78033b896886f3>.
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-06-021-0/+51
|\ \ | |/ | | | | | | * PHP-7.4: Fix #73927: phpdbg fails with windows error prompt at "watch array"
| * Fix #73927: phpdbg fails with windows error prompt at "watch array"Christoph M. Becker2020-06-021-0/+51
| | | | | | | | | | | | We expect zvals, so we should request zvals. We also suppress spurious watchpoint removal notices.
* | Mark several phpdbg tests as xfailChristoph M. Becker2020-05-2717-0/+84
| | | | | | | | | | | | Apparently, breakpoints and watchpoints are practically disabled if run with OPcache JIT under Windows, so we mark the affected tests as xfail in that case for the time being.
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-05-261-1/+1
|\ \ | |/ | | | | | | | | | | | | * PHP-7.4: Enable phpdbg tests on AppVeyor Make phpdbg test portable Fix several mostly Windows related phpdbg bugs Fix #73926: phpdbg will not accept input on restart execution
| * Make phpdbg test portableChristoph M. Becker2020-05-261-1/+1
| |
* | Add --file-cache-prime/use options to run-testsNikita Popov2020-05-201-1/+1
| | | | | | | | | | | | | | | | --file-cache-prime populates the file cache, --file-cache-use uses the file cache. And fix a number of tests to run under file cache or disabled timestamp validation.
* | Fix phpdbg test with JITNikita Popov2020-05-181-1/+1
| | | | | | | | | | | | With JIT one extra cache slot is allocated, so the extended_value needs one more character, and the output ends up having one space less...
* | Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-171-2/+2
|/ | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* Avoid double buffering in Zend streamsNikita Popov2019-07-171-0/+1
| | | | | | | | Disable buffering in PHP streams, to avoid storing and copying the file contents twice. This will call stream_set_option() on custom stream wrapper as well, so the method needs to be implemented to avoid a warning.
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-07-161-0/+16
|\
| * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-07-161-0/+16
| |\
| | * Fixed bug #78297Nikita Popov2019-07-161-0/+16
| | |
* | | Set up asan+ubsan scheduled build on azureNikita Popov2019-06-286-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds an --asan flag to run-tests.php to setup all the necessary environment variables. Some tests are marked as skipped because they are incompatible with asan or too slow. I'm basing this on the DEBUG_ZTS build, which seems to give us the most mileage.
* | | Fix skipif syntax errorsNikita Popov2019-06-146-6/+6
| | | | | | | | | | | | Apparently I did this only on masster...
* | | use XFAILIF rather than XFAIL to avoid warnings [ci skip]Joe Watkins2019-06-116-12/+36
| | |
* | | watchpoints have flaws in implementationJoe Watkins2019-06-106-0/+12
| | |
* | | Update phpdbg oplog testNikita Popov2019-05-291-1/+1
| | |
* | | Merge branch 'PHP-7.3' into PHP-7.4Joe Watkins2019-03-234-0/+30
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: fix bug #76801: phpdbg too many open files error
| * | Merge branch 'PHP-7.2' into PHP-7.3Joe Watkins2019-03-234-0/+30
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: fix bug #76801: phpdbg too many open files error
| | * fix bug #76801: phpdbg too many open files errorAlessandro Chitolina2019-03-234-0/+30
| | |
| | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-159-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | * Trim trailing whitespace in *.phptPeter Kokot2018-10-141-1/+1
| | |
| * | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-159-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| * | Trim trailing whitespace in *.phptPeter Kokot2018-10-141-1/+1
| | |
* | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-159-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | | Trim trailing whitespace in testsGabriel Caruso2018-10-141-1/+1
| | |
* | | Perform "early-binding" directly during compilationDmitry Stogov2018-08-242-15/+13
|/ /
* | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-203-3/+3
| | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | Moved "zval.u2.cache_slot" into free room of "zend_op"Dmitry Stogov2018-02-052-2/+2
| |
* | Use int instead of integer in type errorsGabriel Caruso2018-02-041-3/+3
| | | | | | | | | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* | Changed CATCH instruction format (extended_value moved into op2, op2 into ↵Dmitry Stogov2018-01-312-2/+2
| | | | | | | | result, result into extended_value)
* | Added "argv" and "argc" as known strings.Dmitry Stogov2017-12-011-1/+1
|/ | | | Fixed incorrect "argc" update and corresponding phpdbg test.
* fix tests for 32-bitRemi Collet2017-09-132-2/+2
|
* Update tests and add NEWS entry for phpdbg opcode dump changeSara Golemon2017-03-295-15/+15
|
* Merge branch 'PHP-7.1'Bob Weinand2016-12-221-0/+27
|\
| * Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-12-221-0/+27
| |\
| | * Fixed bug #73704 (phpdbg shows the wrong line in files with shebang)Bob Weinand2016-12-221-0/+27
| | |