summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_prompt.c
Commit message (Collapse)AuthorAgeFilesLines
* Change Zend Stream API to use zend_string* instead of char*.Dmitry Stogov2021-03-161-2/+3
| | | | | This allows to eliminate re-calculation of string lenght and hash value. See the detailed list of changes in UPGRADING.INTERNALS.
* Merge branch 'PHP-8.0'Nikita Popov2021-02-241-0/+1
|\ | | | | | | | | | | | | * PHP-8.0: Fix potential file collision in dom tests Fix bug #80757 (Exit code is 0 when could not open file) Update NEWS
| * Merge branch 'PHP-7.4' into PHP-8.0Felipe Pena2021-02-241-0/+1
| |\
| | * Fix bug #80757 (Exit code is 0 when could not open file)Felipe Pena2021-02-241-0/+1
| | |
* | | Replace zend_bool uses with boolNikita Popov2021-01-151-8/+8
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Add const modifier for zend_extension memberscodinghuang2020-12-011-5/+4
|/ / | | | | | | Closes GH-6462.
* | Accept zend_string instead of zval in zend_compile_stringNikita Popov2020-09-071-6/+1
| |
* | Accept zend_object* in zend_update_propertyNikita Popov2020-08-071-3/+2
| |
* | Accept zend_object* in zend_get_exception_baseNikita Popov2020-08-071-11/+8
| |
* | Accept zend_object in zend_read_propertyNikita Popov2020-08-071-6/+6
| |
* | Add more argument types to stubsMáté Kocsis2020-08-071-3/+1
| | | | | | | | Closes GH-5943
* | Remove no_separation flagNikita Popov2020-07-071-1/+0
| |
* | Make exit() unwind properlyNikita Popov2020-06-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | exit() is now internally implemented by throwing an exception, performing a normal stack unwind and a clean shutdown. This ensures that no persistent resource leaks occur. The exception is internal, cannot be caught and does not result in the execution of finally blocks. This may be relaxed in the future. Closes GH-5768.
* | Add zend_call_known_function() API familyNikita Popov2020-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the following APIs: void zend_call_known_function( zend_function *fn, zend_object *object, zend_class_entry *called_scope, zval *retval_ptr, int param_count, zval *params); void zend_call_known_instance_method( zend_function *fn, zend_object *object, zval *retval_ptr, int param_count, zval *params); void zend_call_known_instance_method_with_0_params( zend_function *fn, zend_object *object, zval *retval_ptr); void zend_call_known_instance_method_with_1_params( zend_function *fn, zend_object *object, zval *retval_ptr, zval *param); void zend_call_known_instance_method_with_2_params( zend_function *fn, zend_object *object, zval *retval_ptr, zval *param1, zval *param2); These are used to perform a call if you already have the zend_function you want to call. zend_call_known_function() is the base API, the rest are just really thin wrappers around it for the common case of instance method calls. Closes GH-5692.
* | Fix MSVC level 1 (severe) warningsChristoph M. Becker2020-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We fix (hopefully) all instances of: * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4005> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4024> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4028> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4047> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4087> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4090> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4273> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4312> `zend_llist_add_element()` and `zend_llist_prepend_element()` now explicitly expect a *const* pointer. We use the macro `ZEND_VOIDP()` instead of a `(void*)` cast to suppress C4090; this should prevent accidential removal of the cast by clarifying the intention, and makes it easier to remove the casts if the issue[1] will be resolved sometime. [1] <https://developercommunity.visualstudio.com/content/problem/390711/c-compiler-incorrect-propagation-of-const-qualifie.html>
* | Remove return value from llist apply functionsNikita Popov2020-04-151-2/+1
| | | | | | | | Unlike the hash apply functions, these do not return int.
* | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | | | | | Closes GH-4732.
* | Merge branch 'PHP-7.4'Nikita Popov2019-07-161-3/+0
|\ \ | |/
| * Remove ZEND_HANDLE_MAPPEDNikita Popov2019-07-161-3/+0
| | | | | | | | | | The buf/len members are now simply used in addition to the main stream, without changing the handle kind.
* | Merge branch 'PHP-7.4'Nikita Popov2019-07-151-46/+1
|\ \ | |/
| * Move shebang handling into the lexerNikita Popov2019-07-151-46/+1
| | | | | | | | | | | | | | | | | | | | Instead of handling shebang lines by adjusting the file pointer in individual SAPIs, move the handling into the lexer, where this is both a lot simpler and more robust. Whether the shebang should be skipped is controlled by CG(skip_shebang) -- we might want to do that in more cases. This fixed bugs #60677 and #78066.
* | Merge branch 'PHP-7.4'Nikita Popov2019-06-281-0/+1
|\ \ | |/
| * Fix init_file leak in phpdbgNikita Popov2019-06-281-0/+1
| |
* | Merge branch 'PHP-7.4'Nikita Popov2019-06-271-4/+4
|\ \ | |/
| * Don't use zmm for PHPDBG_G(exec)Nikita Popov2019-06-271-4/+4
| | | | | | | | | | Uses system allocator when backing up settings ... let's avoid unnecessary confusion.
* | Merge branch 'PHP-7.4'Nikita Popov2019-06-251-1/+1
|\ \ | |/
| * Fix out of bounds write in phpdbgNikita Popov2019-06-251-1/+1
| | | | | | | | | | | | | | It seems that this code has a peculiar interpretation of "len", where it actually points to the last character, not one past it. So we need +1 here for that extra char and another +1 for the terminating null byte.
* | Merge branch 'PHP-7.4'Nikita Popov2019-06-211-1/+8
|\ \ | |/
| * Fix stack leak in phpdbgNikita Popov2019-06-211-1/+8
| |
* | Merge branch 'PHP-7.4'Nikita Popov2019-04-121-23/+24
|\ \ | |/
| * Fix potentially uninitialized warnings in phpdbgNikita Popov2019-04-121-23/+24
| |
* | Merge branch 'PHP-7.4'Joe Watkins2019-03-271-8/+12
|\ \ | |/ | | | | | | * PHP-7.4: Fix #77805 phpdbg build fails when readline is shared
| * Merge branch 'PHP-7.3' into PHP-7.4Joe Watkins2019-03-271-8/+12
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #77805 phpdbg build fails when readline is shared
| | * Merge branch 'PHP-7.2' into PHP-7.3Joe Watkins2019-03-271-8/+12
| | |\ | | | | | | | | | | | | | | | | * PHP-7.2: Fix #77805 phpdbg build fails when readline is shared
| | | * Fix #77805 phpdbg build fails when readline is sharedJoe Watkins2019-03-271-8/+12
| | | |
| | | * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-1/+1
| | | |
| | | * year++Xinchen Hui2018-01-021-1/+1
| | | |
| * | | Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
| | | |
* | | | Refactor zend_object_handlers API to pass zend_object* and zend_string* ↵Dmitry Stogov2019-02-041-1/+1
| | | | | | | | | | | | | | | | insted of zval(s).
* | | | Remove year range from copyright noticeZeev Suraski2019-01-301-1/+1
|/ / /
* | | Fix localized error messages and memory leaksAnatol Belski2018-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The FormatMessage API needs to LocalFree the delivered error messages. In cases where messages are delivered in non ASCII compatible encoding, the messages might be unreadable. This aligns the error message encoding with the encoding settings in PHP, the focus is UTF-8 as default. Initialize error buffer Avoid code duplication
* | | Fix some misspellingsGabriel Caruso2018-08-121-1/+1
|/ /
* | Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-1/+1
| | | | | | | | | | | | | | destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
* | Avoid magic method hash lookupsDmitry Stogov2018-07-021-1/+1
| |
* | Trailing whitespacesGabriel Caruso2018-01-031-1/+1
| | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-1/+1
|/ | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
* Implemented HYBRID VM instruction dispatch method that takes advantages of ↵Dmitry Stogov2017-05-031-1/+1
| | | | both CALL and GOTO VMs.
* Merge branch 'PHP-7.1'Xinchen Hui2017-04-101-1/+1
|\ | | | | | | | | | | | | | | | | | | * PHP-7.1: Fixed condition check Fixed condition check another place Conflicts: ext/mcrypt/mcrypt.c
| * Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-04-101-1/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Fixed condition check