function stream_isatty

  101619
January 18, 2018 22:02 samding@ca.ibm.com ("Sam Ding")
There are 5 test cases that have different results between s390x and
x86_64:


|-----------------------------------------------------------------------------|
|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]                                    |
|-----------------------------------------------------------------------------|



All are related to the new function stream_isatty().
Here is a short sample php:

   # more sample.php
   closeMe:bool(true)

and on x86_64 it gives:

    # php sample.php
   closeme=Resource id #5, stream_isatty=+
   closeMe:bool(false)

Note that both platforms output $closeMe ="Resource id #5", however
"stream_isatty($closeMe)" gives different results.
On x86_64 it is empty or null.   I did not find document of this function
online.
Can you tell me  which result is correct?

Thanks,


Sam Ding,
Linux on z Systems  Open Source Ecosystem
IBM Toronto Lab,
email: samding@ca.ibm.com
phone: (905)413-2947