#22052 [Com]: Ftp ftp_rawlist,ftp_nlist broken
| From: | ntrujillo at cox dot net | Date: | Sat, 15 Feb 2003 02:16:54 +0000 |
| Subject: | #22052 [Com]: Ftp ftp_rawlist,ftp_nlist broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33211@lists.php.net to get a copy of this message | ||
ID: 22052
Comment by: ntrujillo@cox.net
Reported By: ntrujillo@cox.net
Status: Assigned
Bug Type: FTP related
Operating System: FreeBSD 5.0-RELEASE #0
PHP Version: 4.3.1-dev
Assigned To: pollita
New Comment:
pollita,
I patched the file and recompiled. The simple script you gave me
returned 0 results in web mode.(via httpd).A more complex script in Cli
mode actually produced the best results (lengthy):
http://www.kelvinbeats.com/pollita/
<?
$fFp=ftp_connect("ahost.withalot.ofdirs");
ftp_login($fFp,'user','pw');
print_r(ftp_rawlist($fFp,'/');
ftp_close($fFp);
?>
Previous Comments:
------------------------------------------------------------------------
[2003-02-14 11:27:24] ntrujillo@cox.net
still broken using php4-STABLE-200302141630.tar.bz2 (the latest snap).
------------------------------------------------------------------------
[2003-02-13 20:11:07] ntrujillo@cox.net
excellent, expect some results by 9:00am PMT.
------------------------------------------------------------------------
[2003-02-13 20:09:16] pollita@php.net
Okay, great... I believe I've got the problem nailed down, I just need
the results of using that updated snapshot to be 100% certain. In the
meantime I'll start putting together the patch and with luck this
should be working by this time tomorrow.
------------------------------------------------------------------------
[2003-02-13 18:54:22] ntrujillo@cox.net
the tmpfile(); test works without flaw.
------------------------------------------------------------------------
[2003-02-13 17:33:48] pollita@php.net
I have a feeling, at this point, that while the new snapshot will stop
your segfault, it'll still not behave in the way you expect it to.
Try this seemingly unrelated script via your httpd server:
<?php
$fp = tmpfile();
fwrite($fp, "This is a test.\n");
rewind($fp);
fpassthru($fp);
fclose($fp);
?>
Ideally you should see "This is a test" in your browser... if
not....well... does it show an error?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22052
--
Edit this bug report at http://bugs.php.net/?id=22052&edit=1