summaryrefslogtreecommitdiff
path: root/sapi/cli
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-05-171-0/+34
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Added test for bug #74600
| | * Added test for bug #74600Xinchen Hui2017-05-171-0/+34
| | |
* | | Fix bug 60471 by correctly identifying unused speculative preconnectionsSammy Kaye Powers2017-04-113-74/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly identify unused speculative preconnections from browsers like Chrome and Firefox * Add a new message to the debug level that is emitted when a TCP connection is closed without sending any request (a preconnection) * Fix an issue where the existing debug messages were not being displayed even when debug mode was enabled
* | | Merge branch 'PHP-7.1'Anatol Belski2017-04-031-2/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: fix buffer overflow
| * | fix buffer overflowAnatol Belski2017-04-031-2/+1
| | |
* | | Change 'undefined constant' from E_NOTICE to E_WARNING and mention deprecationRowan Collins2017-03-231-1/+1
| | | | | | | | | | | | | | | Implements RFC "Deprecate and Remove Bareword (Unquoted) Strings" [https://wiki.php.net/rfc/deprecate-bareword-strings]
* | | Remove more unnecessary checks on Zend's allocator functionsThomas Punt2017-03-161-35/+2
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-181-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Remove remnants of TSMRLS_* macro calls
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-181-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Remove remnants of TSMRLS_* macro calls
| | * Remove remnants of TSMRLS_* macro callsThomas Punt2017-01-181-1/+1
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-131-3/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Increase wait time for tests involving sockets to improve Travis relability
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-131-3/+3
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Increase wait time for tests involving sockets to improve Travis relability
| | * Increase wait time for tests involving sockets to improve Travis relabilityMitch Hagstrand2017-01-131-3/+3
| | | | | | | | | | | | | | | 1. Increased sleep time from 25ms to 50ms 2. Added sleep to shutdown handlers
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-101-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed #73902 mention router support in usage output for php-cli
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-101-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed #73902 mention router support in usage output for php-cli
| | * Fixed #73902 mention router support in usage output for php-cliJoe Watkins2017-01-101-1/+1
| | |
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-049-10/+10
| | |
| * | Update copyright headers to 2017Sammy Kaye Powers2017-01-049-10/+10
| | |
* | | Update copyright headers to 2017Sammy Kaye Powers2017-01-029-10/+10
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-01-011-0/+3
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-01-011-0/+3
| |\ \ | | |/
| | * Flush stderr on win32 in cli_log_messageNikita Popov2017-01-011-0/+3
| | | | | | | | | | | | This allows us to unfork a bunch of tests for Windows.
* | | Merge branch 'PHP-7.1'Nikita Popov2016-12-272-18/+56
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-12-272-18/+56
| |\ \ | | |/
| | * Makes the sapi web server and curl tests more reliableMitch Hagstrand2016-12-272-18/+56
| | | | | | | | | | | | | | | | | | | | | | | | 1. Increased the time for the sapi/cli/tests/php_cli_server.inc to accept connections. 2. sapi/cli/tests/php_cli_server.inc has errors messages and a `stop` function. 3. bug67429.phpt uses the `stop` function to shutdown the webserver before starting a new one. 4. Removed ext/curl/tests/bug48203_multi-win32.phpt test now that ext/curl/tests/bug48203_multi.phpt runs on Windows also.
* | | Path handling related refactoringsAnatol Belski2016-12-221-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Primarily related to the path handling datatypes, to avoid unnecessary casts, where possible. Also some rework to avoid code dup. Probably more places are to go, even not path related, primarily to have less casts and unsigned integers where possible. That way, we've not only less warnings and casts, but are also safer with regard to the integer overflows. OFC it's not a panacea, but still significantly reduces the vulnerability potential.
* | | Finish remaining replacement uint => uint32_tAnatol Belski2016-12-221-3/+3
| | | | | | | | | | | | Tthe core should be normalized now, no uints anymore
* | | Merge branch 'PHP-7.1'Anatol Belski2016-11-181-0/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: extend skipif
| * | extend skipifAnatol Belski2016-11-181-0/+3
| | | | | | | | | | | | | | | | | | This test won't pass on Windows. The main reason is that the multiline input is not really possible to create on cmd. But also, because of the single quotes. And without multiline data piping, it doesn't make sense.
* | | Merge branch 'master' of git.php.net:/php-srcJoe Watkins2016-11-121-3/+0
|\ \ \
| * | | Remove Netware supportKalle Sommer Nielsen2016-11-121-3/+0
| | | | | | | | | | | | | | | | If this does not break the Unix system somehow, I'll be amazed. This should get most of it out, apologies for any errors this may cause on non-Windows ends which I cannot test atm.
* | | | Use "Standard input code" instead of "php://stdin"Andrea Faulds2016-11-122-3/+3
| | | |
* | | | Show "php://stdin" instead of "-" in error messagesAndrea Faulds2016-11-122-3/+3
|/ / /
* | | Add VT100 support for WindowsMichele Locati2016-10-281-0/+9
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix function names prefix Use Unicode version of GetFinalPathNameByHandle Use EG(windows_version_info) instead of RtlGetVersion Use the specified handle_id instead of STD_OUTPUT_HANDLE Switch from stream name to stream resource Allow running tests capturing only stdout and/or stderr Add tests for stream_vt100_support function Export Win32 console functions Fix x64 build Use zend_long instead of long long, use GetConsole instead of GetFinalPathNameByHandleW to check if a handle is a valid console stream Always use zend_long on any platform Use _get_osfhandle to determine the standard handle Accept stream names Raise warnings in case of invalid stream parameter Return true if disabling VT100 support on a not-console/redirected stream or on old Windows versions Remove php_win32_console_os_supports_vt100 Differentiate stdin vs stdout/stderr Simplify setting flag Allow avoid piping STDIN Let stream_vt100_support accept only resources Fix run-tests Revert console flags in case of failure Simplify logic of stream_vt100_support when setting the flag Return true if succeeded, false otherwise Drop support for STDIN More comprehensive tests for stream_vt100_support Remove old tests Fix name of included file and use absolute paths Enable ENABLE_VIRTUAL_TERMINAL_PROCESSING on Windows by default Remove tests for stream_vt100_support Split stream_vt100_support into stream_isatty+sapi_windows_vt100_support Add tests for stream_isatty Add tests for sapi_windows_vt100_support Return null from stream_isatty is neither Windows nor Posix Fallback to S_ISCHR if neither Windows nor Posix Avoid defining argc since it's only used once Better comment about php_win32_console_fileno_is_console Use events instead of cNumberOfEvents Do not restore previous console mode We need to restore previous console mode on failing SetConsole calls only for STDIN Don't configure STDOUT/STDERR on Windows with PHP_CLI_WIN32_NO_CONSOLE
* | Better fix for bug #73360Anatol Belski2016-10-211-3/+3
| | | | | | | | | | This also fixes the TS issue. And, it also reveals that there's an issue in the VCWD_* API to be possibly addressed.
* | Revert "Fixed bug #73360 Unable to work in root with unicode chars"Anatol Belski2016-10-211-3/+3
| | | | | | | | This reverts commit 64fee0aecb2c804a088b896da6f736dbc19d8424.
* | Fixed bug #73360 Unable to work in root with unicode charsAnatol Belski2016-10-211-3/+3
| |
* | pull ps_title behind the logic to support the current codepageAnatol Belski2016-08-111-23/+14
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-08-091-6/+2
|\ \ | |/
| * Don't copy mime types in CLI serverNikita Popov2016-08-091-6/+2
| | | | | | | | This is both unnecessary and causes leaks in valgrind.
* | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-07-281-1/+6
|\ \ | |/
| * Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-07-281-1/+6
| |\
| | * Fix #72676: Test cli_process_title_unix fails on AIXChristoph M. Becker2016-07-281-1/+6
| | | | | | | | | | | | Patch provided by matthieu dot sarter dot external at atos dot net.
| * | MFH: Fixed fd leak (the origin commit can not be cherry-picked)Xinchen Hui2016-06-281-1/+3
| | |
* | | correct macro namesAnatol Belski2016-07-171-2/+2
| | |
* | | Pass error severity to SAPI modules and raise corresponding error level in ↵Martin Vobruba2016-07-112-3/+3
| | | | | | | | | | | | Apache
* | | Fixed compilation warningsDmitry Stogov2016-06-281-9/+6
| | |
* | | couple of resource leaks fixes and use after free'sDavid Carlier2016-06-271-1/+3
| | |
* | | Merge branch 'PHP-7.0'Xinchen Hui2016-06-241-4/+1
|\ \ \ | |/ /
| * | Fixed bug #72484 (SCRIPT_FILENAME shows wrong path if the user specify ↵Xinchen Hui2016-06-241-4/+1
| | | | | | | | | | | | router.php)