summaryrefslogtreecommitdiff
path: root/sapi/phpdbg
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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-023-7/+55
|\ \ | |/ | | | | | | * 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-023-7/+55
| | | | | | | | | | | | 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.
* | Improve type error messages when an object is givenMáté Kocsis2020-05-261-2/+2
| | | | | | | | | | | | | | From now on, we always display the given object's type instead of just reporting "object". Additionally, make the format of return type errors match the format of argument errors. Closes GH-5625
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-05-266-8/+28
|\ \ | |/ | | | | | | | | | | | | * 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
| |
| * Fix several mostly Windows related phpdbg bugsChristoph M. Becker2020-05-264-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
| * Fix #73926: phpdbg will not accept input on restart executionChristoph M. Becker2020-05-261-1/+1
| | | | | | | | We are more liberal, and accept Windows line endings (CRLF) as well.
* | 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.
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-05-191-1/+1
|\ \ | |/ | | | | | | * PHP-7.4: Fix INI setting member name
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-05-191-1/+1
| |\ | | | | | | | | | | | | * PHP-7.3: Fix INI setting member name
| | * Fix INI setting member nameChristoph M. Becker2020-05-191-1/+1
| | | | | | | | | | | | | | | | | | Since the member is not used in `OnUpdateEol()` that's not really an issue, but still it's confusing to apparently have two INI settings targeting the same member.
* | | 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...
* | | Remove some uses of zend_inline_hash_funcNikita Popov2020-05-152-9/+9
| | | | | | | | | | | | There's no need to force-inline the hashing for all of these.
* | | Add stubs for some SAPIsMáté Kocsis2020-05-143-31/+43
| | | | | | | | | | | | | | | For apache2handler, fpm, litespeed, phpdbg, specifically. Partially implements GH-5295
* | | Fix [-Wundef] warning in PHPDBG SAPIGeorge Peter Banyard2020-05-121-3/+3
| | |
* | | Code tweaks: Remove unneeded semicolonsAlex Dowad2020-04-292-2/+2
| | |
* | | Improve a last couple of argument error messagesMáté Kocsis2020-04-201-1/+1
| | | | | | | | | | | | Closes GH-5404
* | | Remove return value from llist apply functionsNikita Popov2020-04-152-3/+1
| | | | | | | | | | | | Unlike the hash apply functions, these do not return int.
* | | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-2/+2
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Use separate typedef for bucket comparison functionNikita Popov2020-03-041-7/+3
| | | | | | | | | | | | | | | Avoid performing the same casting dance inside each sort compare function.
* | | Fix [-Wmissing-field-initializers] compiler warning in PHPDBG_COMMAND_HELP_D ↵George Peter Banyard2020-02-101-1/+1
| | | | | | | | | | | | macro
* | | Fix some -Wold-style-declaration compiler warningsGeorge Peter Banyard2020-02-051-2/+2
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2020-02-033-108/+108
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Apply tidy formatting
| * | Apply tidy formattingNikita Popov2020-02-033-108/+108
| | | | | | | | | | | | Mostly reindent PHP scripts to spaces.
* | | Clean up the generation of the parsersAkim Demaille2020-02-013-18/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefer '%define api.value.type' to '#define YYSTYPE', so that Bison know the type. Use '%code requires' to declare what is needed to define the api.value.type (that code is output in the generated header before the generated definition of YYSTYPE). Prefer '%define api.prefix' inside the grammar file to '-p' outside, as anyway the functions defined in the file actually use this prefix. Prefer `%param` to both `%parse-param` and `%lex-param`. Closes GH-5138
* | | Use "%empty" in the parsers, instead of commentsAkim Demaille2020-01-312-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The annotation %empty is properly enforced: warnings when it's missing, and errors when it's inappropriate. Support for %empty was introduced in Bison 3.0. Pass -Wempty-rule to Bison. Closes GH-5134
* | | 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.
* | | Fix #78880: Another bunch of spelling errorsMáté Kocsis2020-01-164-5/+5
| | |
* | | Use RETURN_THROWS() during ZPP in main, sapi, win32, and ZendMáté Kocsis2019-12-301-11/+11
| | |
* | | Fix typoChristoph M. Becker2019-12-301-1/+1
| | |
* | | Remove phpdbg READMEekinhbayar2019-12-091-78/+0
| | | | | | | | | | | | | | | phpdbg documentation has been moved to PHP manual and the link at the bottom of this README is dead, so the file can be removed.
* | | Add union return types for function stubsMáté Kocsis2019-11-112-3/+2
| | |
* | | Make zend_type a 2-field structNikita Popov2019-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now store the pointer payload and the type mask separately. This is in preparation for union types, where we will be using both at the same time. To avoid increasing the size of arginfo structures, the pass_by_reference and is_variadic fields are now stored as part of the type_mask (8-bit are reserved for custom use). Different types of pointer payloads are distinguished based on bits in the type_mask.
* | | Convert phpdbg arginfo to php stubsCraig Duncan2019-10-293-55/+79
| | | | | | | | | | | | Closes GH-4867.
* | | Small phpdbg cleanupsNikita Popov2019-10-291-6/+16
| | | | | | | | | | | | Add a zpp_none() call, convert E_ERROR to ValueError.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-10-191-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix miscellaneous typos in docs
| * | Fix miscellaneous typos in docsTyson Andre2019-10-191-1/+1
| | |
| * | Revert "Link executable files using non PIC object files. This reduces PIC ↵Dmitry Stogov2019-10-101-3/+3
| | | | | | | | | | | | | | | | | | overhead and improves performance." This reverts commit eef85229d0fe9f69d325aa0231e592f35c468afb.
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-2548-96/+0
| | | | | | | | | | | | Closes GH-4732.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-09-141-1/+1
|\ \ \ | |/ /
| * | Fix symtable_cache_limit assignment in phpdbgNikita Popov2019-09-141-1/+1
| | | | | | | | | | | | | | | The meaning of the limit changed in 7.4, it now points one past the end. Adjust code accordingly.
| * | Link executable files using non PIC object files. This reduces PIC overhead ↵Dmitry Stogov2019-09-071-3/+3
| | | | | | | | | | | | and improves performance.
* | | Link executable files using non PIC object files. This reduces PIC overhead ↵Dmitry Stogov2019-09-031-3/+3
| | | | | | | | | | | | and improves performance.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-07-241-0/+4
|\ \ \ | |/ /
| * | Revert "Drop free_filename field from zend_file_handle"Nikita Popov2019-07-241-0/+4
| | | | | | | | | | | | | | | | | | | | | This reverts commit e0eca262852dba1a78afcde64a49126c81fead1a. free_filename is used by the wincache extension, restore this field for PHP 7.4.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-07-222-2/+2
|\ \ \ | |/ /
| * | Report errors from stream read and write operationsNikita Popov2019-07-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The php_stream_read() and php_stream_write() functions now return an ssize_t value, with negative results indicating failure. Functions like fread() and fwrite() will return false in that case. As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams should not be regarded as error conditions, and be reported as successful zero-length reads/writes instead. The handling of EINTR remains unclear and is internally inconsistent (e.g. some code-paths will automatically retry on EINTR, while some won't). I'm landing this now to make sure the stream wrapper ops API changes make it into 7.4 -- however, if the user-facing changes turn out to be problematic we have the option of clamping negative returns to zero in php_stream_read() and php_stream_write() to restore the old behavior in a relatively non-intrusive manner.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-07-171-0/+1
|\ \ \ | |/ /