summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace zend_bool uses with boolNikita Popov2021-01-151-5/+5
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Merge branch 'PHP-7.4'Christoph M. Becker2020-06-021-5/+1
|\ | | | | | | | | * 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-5/+1
| | | | | | | | | | | | We expect zvals, so we should request zvals. We also suppress spurious watchpoint removal notices.
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-05-261-2/+5
|\ \ | |/ | | | | | | | | | | | | * 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
| * Fix several mostly Windows related phpdbg bugsChristoph M. Becker2020-05-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Properly initialize PHPDBG_G(watch_tmp) Otherwise that may cause segfaults in ZTS builds. * Deactivate potentially remaining watchpoints after REPL Otherwise the memory could still be protected, resulting in segfaults during shutdown. * NULL zend_handlers_table after freeing As of commit 4130fe4[1], the `zend_handlers_table` is explicitly freed in the `zend_vm_dtor()`. Since phpdbg (and maybe some other SAPIs) may restart the engine afterwards, we have to make sure that the table is also NULLed. * Only set context option if there is a context In other words, we must not follow the null pointer. * Cater to file handles without attached console File handles do not necessarily have an attached console (for instance, pipes do not), in which case `GetConsoleScreenBufferInfo()` fails. In this case we set a default value (`40`) for lines like on other systems. [1] <http://git.php.net/?p=php-src.git;a=commit;h=4130fe437a5db7ead1444d3748bd0fbad9829cb2>
* | Remove return value from llist apply functionsNikita Popov2020-04-151-1/+0
| | | | | | | | Unlike the hash apply functions, these do not return int.
* | Fix some -Wold-style-declaration compiler warningsGeorge Peter Banyard2020-02-051-2/+2
| |
* | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
|/ | | | Closes GH-4732.
* Don't use zmm for PHPDBG_G(exec)Nikita Popov2019-06-271-1/+1
| | | | | Uses system allocator when backing up settings ... let's avoid unnecessary confusion.
* Fix potentially uninitialized warnings in phpdbgNikita Popov2019-04-121-1/+1
|
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Introduce get_properties_for() handlerNikita Popov2018-10-101-7/+3
| | | | | This handler allows getting the object properties for a particular purpose, such as array casting, serialization, etc.
* Change zend_lookup_class_ex() and zend_fetch_class_by_name() prototypes to ↵Dmitry Stogov2018-08-221-1/+1
| | | | accept optional lower-case class name as zend_string*, instead of zval*.
* Changed php_add[c]slashes prototypes (removed should_free argument)Dmitry Stogov2018-06-291-1/+1
|
* Moved "zval.u2.cache_slot" into free room of "zend_op"Dmitry Stogov2018-02-051-3/+3
|
* Changed CATCH instruction format (extended_value moved into op2, op2 into ↵Dmitry Stogov2018-01-311-4/+8
| | | | result, result into extended_value)
* year++Xinchen Hui2018-01-021-1/+1
|
* Always use IS_CONSTANT_AST (IS_CONSTANT is removed).Dmitry Stogov2017-10-101-5/+10
|
* Refactored recursion pretectionDmitry Stogov2017-10-061-7/+8
|
* Changed the way VM accesses constant operands in 64-bit builds.Dmitry Stogov2017-10-041-3/+3
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-11-131-1/+1
|\
| * Properly escape all filenames when exporting breakpointsBob Weinand2016-11-131-1/+1
| |
* | Fix searching for catch blocksBob Weinand2016-10-161-1/+1
| | | | | | | | Since PHP-7.1 catch blocks are addressed with relative byte difference between two catch blocks as opposed to absolute opcode number
* | Rewrite watchpoints to be much more stableBob Weinand2016-07-111-1/+1
| | | | | | | | | | | | | | | | 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.
* | Print .0 in phpdbg opcode dumpsNikita Popov2016-03-251-0/+12
|/
* Fix bug #71575 removing extra semicolons outside macrosJames Titcumb2016-03-031-1/+1
|
* Format string fixesNikita Popov2016-02-141-7/+7
| | | | | Conflicts: ext/pgsql/pgsql.c
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
* | - Implemented output pagingFelipe Pena2015-10-181-0/+18
| |
* | Fixed bug #70214 (FASYNC possibly not defined)Bob Weinand2015-08-081-6/+11
| |
* | Remove -Wunused-result warningsBob Weinand2015-07-271-6/+3
| |
* | Cleanup shutdown, enable proper memory leak displayingBob Weinand2015-07-241-6/+10
| | | | | | | | phpdbg should not memory leak...
* | Fix misbehaviors with uncaught exceptions and finally or evalBob Weinand2015-07-201-3/+3
| |
* | Switch asprintf to spprintf in phpdbg opcode dumpNikita Popov2015-07-171-13/+17
| | | | | | | | | | | | | | Also use %td where appropriate, a lot of the values are ptrdiff based. Fix a leak in phpdbg_frame.c.
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-12/+12
| | | | | | | | semantick changes).
* | Make backtraces *much* more readableBob Weinand2015-06-291-0/+60
| |
* | Fix phpdbg class fetch / method opcodesBob Weinand2015-05-271-1/+1
| |
* | Also consider specific catches when checking for uncaughtBob Weinand2015-04-221-7/+29
| |
* | Break on uncaught exceptions in current frame in phpdbgBob Weinand2015-04-221-2/+2
| |
* | Add next command / Fix recursion/exceptions with u/F/LBob Weinand2015-04-211-0/+22
| |
* | Stabilize watchpointsBob Weinand2015-04-191-8/+56
| |
* | Stabilize (simple) watchpoints with IS_INDIRECT/IS_REFERENCE situationsBob Weinand2015-03-211-1/+1
| |
* | s/PHP Version 5/PHP Version 7/gLior Kaplan2015-03-131-1/+1
| | | | | | | | Follow up for d0cb7153
* | Merge branch 'PHP-5.6'Xinchen Hui2015-02-131-5/+1
|\ \ | |/ | | | | | | | | | | Conflicts: ext/soap/soap.c ext/standard/basic_functions.c ext/zlib/zlib.c
| * bump yearXinchen Hui2015-01-151-1/+1
| |
| * go back with phpdbg to the state of 5.6.3, reverting the controversial ↵Ferenc Kovacs2014-11-261-303/+116
| | | | | | | | commits(remote debugging/xml protocol)
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-41/+41
| |