#19746 (fwd)

From: Date: Fri, 04 Oct 2002 19:11:37 +0000
Subject: #19746 (fwd)
Groups: php.dev 
Request: Send a blank email to php-dev+get-89027@lists.php.net to get a copy of this message
Iliaa, looking at a syscall trace from PHP 4.2, the difference in handling php://std* is that 4.2 uses non-blocking mode by default, while streams block by default. 4.2: fcntl64(0x3, 0x3, 0x8050fe5, 0) = 2 4.3: fcntl64(0x3, 0x3, 0xbffff7f4, 0x3) = 2 E.g. $fp = fopen("php://stdin", "r"); stream_set_blocking($fp, false); print fgets($fp, 500); works as in PHP 4.2 without the set_blocking call. Wez, any idea on what is causing this? - Sascha

« previous php.dev (#89027) next »