#25294 [Opn->Fbk]: ftp_nlist fails on nai site with coredump
| From: | pollita@php.net | Date: | Thu, 28 Aug 2003 14:55:26 +0000 |
| Subject: | #25294 [Opn->Fbk]: ftp_nlist fails on nai site with coredump | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46855@lists.php.net to get a copy of this message | ||
ID: 25294
Updated by: pollita@php.net
Reported By: steveh at brendata dot co dot uk
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: Linux 2.4.21
PHP Version: 4.3.3
New Comment:
I can't reproduce a crash with the code snippet provided using 4.3.3 on
a 2.4.21 kernel.
Please provide the ./configure line used to compile PHP and note on
which line (I'm assuming the nlist line itself) the crash occurs.
Previous Comments:
------------------------------------------------------------------------
[2003-08-28 09:36:37] steveh at brendata dot co dot uk
Description:
------------
When I to run the following script against the network associates site
(it's part of a bigger system to pull down virus updates) then it
fails, it works fine on other sites (this code snippet came from
another PHP bug entry).
I also tried ftp'ing to the NAI site to prove that I really could do
this and it works fine.
Reproduce code:
---------------
<?php
$fp = ftp_connect("ftp.nai.com");
var_dump($fp);
ftp_login($fp, "anonymous","ntrujillo@cox.net");
var_dump($fp);
var_dump(ftp_nlist($fp,"/"));
var_dump($fp);
?>
Expected result:
----------------
Would expect it to finish normally and dump the various arrays.
Actual result:
--------------
Core dump
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25294&edit=1