On Fri, 13 Apr 2001, Andi Gutmans wrote:
> Does this work for you on 4.0.4pl1?
On 4.0.4pl1 it is OK, but on 4.0.5RC6 on Solaris 8 it shows the problem.
-- Alex
> Any idea when this broke?
> Andi
>
> At 12:24 AM 4/13/2001 +0200, Didi Rieder wrote:
> >Hello,
> >
> >I have a problem with "popen" and "fgets" in php-4.0.5RC6 on Solaris 8
> >(Sparc):
> >
> >Script:
> >
> ><?php
> >$rc = '';
> >$pipe = popen("/bin/ls -la /tmp", "r");
> > while (($rc = fgets($pipe, 8192))) {
> > print $rc;
> > }
> >pclose($pipe);
> >?>
> >
> >It produces:
> >total 290
> >
> >A normal commandline listing would produce:
> >
> >[root@sbox /root]# ls -la /tmp
> >total 290
> >drwxrwxrwt 9 sys sys 1109 Apr 13 00:20 .
> >drwxr-xr-x 24 root root 512 Apr 9 15:43 ..
> >drwxrwxrwx 2 root root 179 Feb 25 15:30 .pcmcia
> >drwx------ 2 root other 117 Apr 2 19:22 AOaWLY
> >drwx------ 2 root other 117 Mar 28 13:11 gCaqL6
> >-rw-r--r-- 1 root other 19665 Apr 11 21:27 imp-sieve.tar.gz
> >-rw-rw--w- 1 cyrus mail 25098 Apr 12 21:24 imp.log
> >-rw------- 1 root other 0 Mar 30 22:36 mpEeaWIz
> >-rw------- 1 root other 0 Mar 29 13:54 mpUZa4Po
> >srwxrwxrwx 1 root other 0 Mar 28 16:36 mysql.sock
> >drwxr-xr-x 3 root other 248 Mar 23 20:57 new
> >-rw-rw-r-- 1 root sys 6496 Feb 25 15:29 ps_data
> >-rw------- 1 root other 0 Apr 12 19:41 session_mm.sem
> >-rw-rw--w- 1 cyrus mail 8644 Apr 12 00:16 sieve.log
> >drwx------ 2 root other 181 Apr 13 00:04 ssh-YgP13837
> >drwx------ 2 root other 181 Apr 7 10:46 ssh-ZPD12871
> >drwx------ 2 root other 181 Apr 7 10:56 ssh-wza13793
> >
> >
> >~regards
> > Didi
> >
> >--
> >------------------------
> >Didi Rieder
> >[EMAIL PROTECTED]
> >------------------------
>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]