1--TEST-- 2Testing ftell() on std streams 3--SKIPIF-- 4<?php 5if (getenv("SKIP_IO_CAPTURE_TESTS")) { 6 die("skip I/O capture test"); 7} 8?> 9--CAPTURE_STDIO-- 10STDOUT 11--FILE-- 12<?php 13 14// These have proc_open pipes attached 15var_dump(ftell(STDIN)); 16var_dump(ftell(STDERR)); 17var_dump(ftell(fopen("php://stdin", "r"))); 18var_dump(ftell(fopen("php://stderr", "w"))); 19 20// These have a tty attached 21var_dump(ftell(STDOUT)); 22var_dump(ftell(fopen("php://stdout", "w"))); 23 24?> 25--EXPECT-- 26bool(false) 27bool(false) 28bool(false) 29bool(false) 30bool(false) 31bool(false) 32