summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-07-161-0/+16
|\
| * Fixed bug #78297Nikita Popov2019-07-161-0/+16
| |
* | 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
| |
* | 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
| | |
* | | Merge branch 'PHP-7.1'Bob Weinand2016-12-201-0/+11
|\ \ \ | |/ /
| * | Fixed bug #73794 (Crash (out of memory) when using run and # command separator)Bob Weinand2016-12-201-0/+11
| | |
* | | Merge branch 'PHP-7.1'Bob Weinand2016-12-062-0/+90
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-12-062-0/+90
| |\ \ | | |/
| | * Fixed issue getting executable lines from custom wrappersBob Weinand2016-12-062-0/+90
| | | | | | | | | | | | See also krakjoe/phpdbg#161
* | | Merge branch 'PHP-7.1'Bob Weinand2016-11-301-1/+1
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-11-301-1/+1
| |\ \ | | |/
| | * Fix run-tests.php to always include TEST_PHPDBG_EXECUTABLE if phpdbg availableBob Weinand2016-11-301-1/+1
| | |
* | | Merge branch 'PHP-7.1'Bob Weinand2016-11-302-0/+20
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-11-302-0/+20
| |\ \ | | |/
| | * Fixed bug #73615 (phpdbg without option never load .phpdbginit at startup)Bob Weinand2016-11-302-0/+20
| | |
* | | Merge branch 'PHP-7.1'Bob Weinand2016-11-132-3/+3
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-11-132-3/+3
| |\ \ | | |/
| | * Properly escape all filenames when exporting breakpointsBob Weinand2016-11-132-3/+3
| | |
| | * Update NEWSBob Weinand2016-10-121-0/+3
| | | | | | | | | | | | Also add missing include.inc test file
| | * Fix phpdbg tests after lineno changeNikita Popov2016-10-125-12/+9
| | |
| | * Add stdin command and -s command line parameter to phpdbgBob Weinand2016-10-123-0/+60
| | | | | | | | | | | | | | | | | | | | | This allows reading the initial script file from stdin instead of being forced to put the script into a file in order to run it with phpdbg. Especially important for programmatic execution of phpdbg. Also adding tests/include_once.phpt and tests/set_exception_handler.phpt as I seem to have forgotten to git add them sometime long ago...
* | | phpdbg standard input changesJoe Watkins2016-11-131-4/+4
|/ /
* | Fix searching for catch blocksBob Weinand2016-10-161-2/+4
| | | | | | | | Since PHP-7.1 catch blocks are addressed with relative byte difference between two catch blocks as opposed to absolute opcode number
* | Merge remote-tracking branch 'origin/PHP-7.0' into PHP-7.1Bob Weinand2016-10-141-0/+3
| | | | | | | | (cherry picked from commit 457e68626257e8b5c891f2edf20d31907080063a)
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-10-149-20/+13
| | | | | | | | (cherry picked from commit 9669ec707ab99d33404d3132792a24ebd1130fcf)
* | Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-10-143-0/+60
| | | | | | | | (cherry picked from commit 37ae5f3931b60c55e5004b6da912c4a957bca274)
* | Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-10-021-0/+50
|\ \ | |/
| * Fix run command args passing when inmidst executionBob Weinand2016-10-021-0/+50
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-09-231-0/+37
|\ \ | |/ | | | | | | | | * PHP-7.0: update NEWS phpdbg next command must stop when leaving function
| * phpdbg next command must stop when leaving functionBob Weinand2016-09-231-0/+37
| |
* | Disable optimizer when it conflicts with phpdbg testsBob Weinand2016-07-132-0/+4
| |
* | Rewrite watchpoints to be much more stableBob Weinand2016-07-116-2/+232
| | | | | | | | | | | | | | | | This mainly involves a separate abstraction layer for elements (e.g. $a->b) and watchpoints (on pointer of the Bucket for example). Also better comparison handling (value backup vs. page dumps). It is not yet finished (there are sometimes false positives announced and names not yet perfect), but the functionality is working and not crashing as far as I have tested. Future scope is also relative watchpoints, e.g. "w $this->val expression()" which does not have the symbol tables as basis, but the value (in this example: return value of expression()) as basis.
* | Inline simple constant functionsDmitry Stogov2016-06-301-0/+2
| |
* | Fixed bug #72213 (Finally leaks on nested exceptions).Dmitry Stogov2016-05-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 8461b0407fc9eab0869d43b84e6a92ba2fe06997 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed May 25 00:34:42 2016 +0300 Rmoved zend_try_catch_element.parent and walk through op_array.try_catch_array backward from the current try_cacth_offset. commit 0c71e249649bed178bfbef30bb3e63c57f07af05 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed May 25 00:04:53 2016 +0300 Move SAVE_OPLINE() to its original place commit 111432a4df738fcd65878a42f23194dc3c4983a2 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed May 25 00:01:10 2016 +0300 Separate the common part of ZEND_HANDLE_EXCEPTION and FAST_RET into zend_dispatch_try_catch_finally_helper. commit 4f21c06c2ec17819a708bc037f318784554a6ecd Author: Nikita Popov <nikic@php.net> Date: Tue May 24 14:55:27 2016 +0200 Improve finally fix commit da5c7274997b8308e682b5bf280124e3a1483086 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue May 24 10:36:08 2016 +0300 Fixed Zend/tests/try/bug70228_3.phpt and Zend/tests/try/bug70228_4.phpt commit cfcedf2fb4f4fc1f7de9f7d53a3037fed7795f19 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue May 24 02:59:27 2016 +0300 Added test commit 4c6aa93d43da941eb4fda15b48154bfb104bdc04 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue May 24 00:38:20 2016 +0300 Added tests commit 8a8f4704b0eca2e460d42c1f253a363b0db8e510 Author: Dmitry Stogov <dmitry@zend.com> Date: Mon May 23 23:27:34 2016 +0300 Fixed bug #72213 (Finally leaks on nested exceptions)
* | Fixed bug #72188 (Nested try/finally blocks losing return value)Dmitry Stogov2016-05-131-1/+1
| |
* | Evaluate arguments of new for classes without ctorNikita Popov2016-03-251-1/+1
| | | | | | | | ML: http://markmail.org/message/4b3mk7jid64zvz34