#25294 [Fbk]: ftp_nlist fails on nai site with coredump

From: Date: Thu, 28 Aug 2003 16:02:50 +0000
Subject: #25294 [Fbk]: ftp_nlist fails on nai site with coredump
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46869@lists.php.net to get a copy of this message
ID: 25294 Updated by: sniper@php.net Reported By: steveh at brendata dot co dot uk Status: Feedback Bug Type: FTP related Operating System: Linux 2.4.21 PHP Version: 4.3.3 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-08-28 09:55:26] pollita@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#46869) next »