Bug #15171: popen not fully supported

From: Date: Tue, 22 Jan 2002 19:06:32 +0000
Subject: Bug #15171: popen not fully supported
Groups: php.dev 
Request: Send a blank email to php-dev+get-77809@lists.php.net to get a copy of this message
From: mlong@mlong.org Operating system: Tru64 UNIX 5.0a PHP version: 4.0.6 PHP Bug Type: Filesystem function related Bug description: popen not fully supported With PHP running under Tru64 UNIX, popen only supports "r" or "w"...it will not support "r+", "w+", or "rw". Yet according to the Tru64 popen man page, Tru64 supports bidirectional pipes and can take rw (unless I am reading it wrong). Yet when I try it with PHP, it tells me it is an invalid argument. From the man page: The popen() function creates a pipe between the calling program and a shell command to be executed. It returns a pointer to a FILE structure for the stream. If the type parameter is the value r, the calling program can read from the standard output of the command by reading from the returned file stream. If the type parameter is the value w, the calling program can write to the standard input of the command by writing to the returned file stream. Because open files are shared, a type r command can be used as an input filter and a type w command as an output filter. -- Edit bug report at: http://bugs.php.net/?id=15171&edit=1

« previous php.dev (#77809) next »