Re: Bug in PHP-4.0.5RC6?

From: Date: Fri, 13 Apr 2001 16:13:24 +0000
Subject: Re: Bug in PHP-4.0.5RC6?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-51596@lists.php.net to get a copy of this message
Does this work for you on 4.0.4pl1? 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 adrieder@sbox.tugraz.at ------------------------


« previous php.dev (#51596) next »