#22052 [Fbk->Opn]: Ftp ftp_rawlist,ftp_nlist broken
| From: | sniper@php.net | Date: | Fri, 14 Feb 2003 01:19:45 +0000 |
| Subject: | #22052 [Fbk->Opn]: Ftp ftp_rawlist,ftp_nlist broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33115@lists.php.net to get a copy of this message | ||
ID: 22052
Updated by: sniper@php.net
Reported By: ntrujillo@cox.net
-Status: Feedback
+Status: Open
Bug Type: FTP related
Operating System: FreeBSD 5.0-RELEASE #0
PHP Version: 4.3.1-dev
Previous Comments:
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
[2003-02-13 17:20:36] ntrujillo@cox.net
pollita,
This script only breaks in http method, as the cli returns the
desired output(snafu). The Httpd child dies with a segfault. This
appears to only occur on the OS's listed on the main 4.3 distro of PHP
as well as alot of the snaps I've tried.
currently running FreeBSD 4.7-RELEASE #0: Wed Feb 12 19:59:59 GMT 2003
with php4.3.0 release (very stable).
thanks for your time, as I will try the current snap tomorrow.
------------------------------------------------------------------------
[2003-02-13 16:49:40] pollita@php.net
Correction, the fix I referred to above didn't make it into the "Feb
13, 2003 22:30 GMT" snapshot, grab one that comes *after* that (i.e.
Feb 14, 2003 00:30 GMT)
------------------------------------------------------------------------
[2003-02-13 16:06:06] pollita@php.net
I'm trying to understand the problem you're having, but I'm seeing some
slightly conflicting information so I'd like to figure out if I'm
reading you incorrectly...
Running the following script using the php CLI executable, what is the
*exact* output? (I'm just using ftp.kerneli.org as a known public ftp
server for the sake of example)
<?php
$fp = ftp_connect("ftp.kerneli.org");
var_dump($fp);
ftp_login($fp, "anonymous","ntrujillo@cox.net");
var_dump($fp);
var_dump(ftp_nlist($fp,"/"));
var_dump($fp);
?>
Don't take this request as demeaning or belittleing, I'm just trying to
approach this problem one step at a time.
Note: be sure to grab the latest snapshot (Dated after: Feb 13, 2003
21:00 GMT) before you try this out, I've just recently fixed a segfault
in the ftp extension which *may* be related.
------------------------------------------------------------------------
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