|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-01-23 21:27 UTC] samding at ca dot ibm dot com
[2018-01-27 16:27 UTC] ab@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ab
[2018-01-27 16:27 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 20:00:01 2025 UTC |
Description: ------------ Test cases Test stream_isatty with redirected STDERR [tests/output/stream_isatty_err.phpt] Test stream_isatty with redirected STDIN/STDERR [tests/output/stream_isatty_in-err.phpt] Test stream_isatty with redirected STDIN/STDOUT [tests/output/stream_isatty_in-out.phpt] Test stream_isatty with redirected STDOUT [tests/output/stream_isatty_out.phpt] Test stream_isatty with redirected STDOUT/STDERR [tests/output/stream_isatty_out-err.phpt] Failed on s390x. Test script: --------------- Here is sample php code: <?php $closeMe = fopen(__FILE__, 'rb'); $tmp=stream_isatty($closeMe); echo "closeme=$closeMe, stream_isatty=$tmp+\n"; echo "closeMe:"; var_dump(stream_isatty($closeMe)); gdb sapi/cli/php (gdb) b zif_stream_isatty (gdb) r case/sample.php ... 1651 RETVAL_BOOL(isatty(fileno)); (gdb) p fileno $1 = 34359718632 (gdb) x /8b &fileno 0x3ffffffb360: 0 0 0 7 -1 -1 -78 -24 Seems the last 4 bytes of "fileno" wrong on s390x (Big_Endian)