summaryrefslogtreecommitdiff
path: root/sapi/phpdbg
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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.4'Nikita Popov2019-07-162-7/+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.
| * | Drop free_filename field from zend_file_handleNikita Popov2019-07-161-4/+0
| | | | | | | | | | | | free_filename was always zero.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-07-162-0/+17
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-07-162-0/+17
| |\ \ | | |/
| | * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-07-162-0/+17
| | |\
| | | * Fixed bug #78297Nikita Popov2019-07-162-0/+17
| | | |
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-06-041-17/+17
| | |\ \ | | | |/
| | | * Fixed bug #78050Nikita Popov2019-06-041-17/+17
| | | | | | | | | | | | | | | | This is a backport of a9821255612a99f9773c3601ff1914de4e7a7e32.
* | | | 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-07-011-0/+1
|\ \ \ \ | |/ / /
| * | | Initialize last_line in phpdbg globalsNikita Popov2019-07-011-0/+1
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-283-17/+3
|\ \ \ \ | |/ / /
| * | | Use strcmp() in phpdbg_eol_global_updateNikita Popov2019-06-281-3/+3
| | | | | | | | | | | | | | | | | | | | memcmp() only makes sense on equal length strings, and here we don't know anything about the length of the input.
| * | | Remove phpdbg_xml_asprintf()Nikita Popov2019-06-282-14/+0
| | | | | | | | | | | | | | | | | | | | Clang doesn't like the use of promoted zend_bool in va_start. As the function isn't used anyway, I'm simply dropping it...
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-286-0/+18
|\ \ \ \ | |/ / /
| * | | 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.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-282-6/+4
|\ \ \ \ | |/ / /
| * | | Avoid reliance on arena details on phpdbg oplogNikita Popov2019-06-282-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | Instead of guessing what the address of the first arena allocation is going to be, embed the sentinel in the oplog_list structure directly.
* | | | Merge branch 'PHP-7.4'Joe Watkins2019-06-281-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: implement tsrm_is_shutdown API
| * | | implement tsrm_is_shutdown APIJoe Watkins2019-06-281-2/+2
| | | |
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-06-281-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Use the portable zend_strndup() instead of strndup()
| * | | Use the portable zend_strndup() instead of strndup()Christoph M. Becker2019-06-281-1/+1
| | | |
* | | | 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-273-32/+33
|\ \ \ \ | |/ / /
| * | | Fix phpdbg shutdown orderNikita Popov2019-06-271-24/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, make sure that everything using zmm is released before zmm is shut down. phpdbg currently gets away with this, because either a) its custom handlers are used and no auto-free happens or b) the system allocator is used and no auto-free happens. With the tracking allocator for asan this no longer works.
| * | | Don't use zmm for PHPDBG_G(exec)Nikita Popov2019-06-273-8/+8
| | | | | | | | | | | | | | | | | | | | 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-212-4/+11
|\ \ \ \ | |/ / /
| * | | Fix stack leak in phpdbgNikita Popov2019-06-211-1/+8
| | | |
| * | | Fix prompt leak in phpdbgNikita Popov2019-06-211-3/+3
| | | |
| * | | Fix skipif syntax errorsNikita Popov2019-06-146-6/+6
| | | | | | | | | | | | | | | | Apparently I did this only on masster...
* | | | Constify some char* arguments or return values of ZEND_APItwosee2019-06-122-2/+2
| | | | | | | | | | | | | | | | Closes GH-4247.
* | | | Skip syntax errors in skipif conditionsNikita Popov2019-06-126-6/+6
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-121-1/+1
|\ \ \ \ | |/ / /
| * | | Use %define api.pure instead of %pure-parserNikita Popov2019-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | %pure-parser is deprecated. In our case there is no difference between true & full, as we don't use locations.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-111-3/+3
|\ \ \ \ | |/ / /
| * | | Register class before fetching parentNikita Popov2019-06-111-3/+3
| | | | | | | | | | | | | | | | | | | | We want the class declaration to be available while compiling the parent class.
| * | | use XFAILIF rather than XFAIL to avoid warnings [ci skip]Joe Watkins2019-06-116-12/+36
| | | |
* | | | use XFAILIF rather than XFAIL to avoid warnings [ci skip]Joe Watkins2019-06-116-12/+36
| | | |
* | | | Merge branch 'PHP-7.4'Joe Watkins2019-06-106-0/+12
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: watchpoints have flaws in implementation
| * | | watchpoints have flaws in implementationJoe Watkins2019-06-106-0/+12
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-041-17/+17
|\ \ \ \ | |/ / /
| * | | Try to fix phpdbg + opcache compatibilityNikita Popov2019-06-041-17/+17
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-05-291-1/+1
|\ \ \ \ | |/ / /
| * | | Update phpdbg oplog testNikita Popov2019-05-291-1/+1
| | | |