summaryrefslogtreecommitdiff
path: root/tests/output/sapi_windows_vt100_support_winok_in-out.phpt
Commit message (Collapse)AuthorAgeFilesLines
* Run tidyNikita Popov2020-09-181-3/+3
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Fix #79805: sapi_windows_vt100_support throws TypeErrorChristoph M. Becker2020-07-161-55/+21
| | | | | | | | | | It does not make sense to throw a `TypeError` when the stream can't be analyzed. If `sapi_windows_vt100_support()` is used as getter, we just return `false` in that case; if the function is used as setter, we additionally trigger a warning. We also fix the test cases for this function, which have been broken before. Note that these tests are still whitespace sensitive.
* Change argument error message formatMáté Kocsis2020-02-261-5/+5
| | | | Closes GH-5211
* Make type error messages more consistentMáté Kocsis2020-02-171-25/+25
| | | | Closes GH-5092
* Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-151-1/+1
|
* Change PHP_OS_FAMILY slightlyKalle Sommer Nielsen2017-02-221-1/+1
| | | | | * PHP_OS_FAMILY is now a macro, to allow extensions to take advantage of it, it is defined in php.h * Values are not upper-case-first, not always uppercase. Windows is no longer just "Win", if we want the short version for testing then PHP_OS is always WINNT anyway
* add PHP_OS_FAMILY constant to determine on which os we areStricted2017-01-251-1/+1
|
* Introduce SKIP_IO_CAPTURE_TESTS groupAnatol Belski2016-11-061-0/+3
| | | | to workaround false positives with some CI systems
* Add VT100 support for WindowsMichele Locati2016-10-281-0/+145
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