ID:               25294
 User updated by:  steveh at brendata dot co dot uk
 Reported By:      steveh at brendata dot co dot uk
-Status:           Feedback
+Status:           Open
 Bug Type:         FTP related
 Operating System: Linux 2.4.21
 PHP Version:      4.3.3
 New Comment:

Looks like it's dying after the dump:
[EMAIL PROTECTED] /root]# php test.php
resource(4) of type (FTP Buffer)
resource(4) of type (FTP Buffer)
bool(false)
resource(4) of type (FTP Buffer)
Segmentation fault (core dumped)
[EMAIL PROTECTED] /root]# cat test.php 
<?php
  $fp = ftp_connect("ftp.nai.com");
  var_dump($fp);
  ftp_login($fp, "anonymous","[EMAIL PROTECTED]");
  var_dump($fp);
  var_dump(ftp_nlist($fp,"/"));
  var_dump($fp);
?>

Here's the ./configure:

./configure  i386-redhat-linux --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=
/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/usr/com --ma
ndir=/usr/share/man --infodir=/usr/share/info --prefix=/usr
--with-config-file-path=/etc --enable-force-cgi-redirect
--enable-debug-
-enable-pic --disable-rpath --enable-inline-optimization --with-bz2
--with-db3 --with-exec-dir=/usr/bin --with-png-dir=/usr --with-g
d --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext
--with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-op
enssl --with-png --with-pspell --with-regex=system --with-ftp
--with-zlib --with-layout=GNU --enable-bcmath --enable-debugger --enab
le-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem
--enable-sysvshm --enable-discard-path --enable-track-vars --en
able-trans-sid --enable-yp --enable-wddx --without-oci8
--with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos
--with-ldap
=shared --with-mysql=shared,/usr --with-xml --with-pgsql=shared
--with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack
--with-unixODBC=shared --enable-memory-limit --enable-bcmath
--enable-shmop --enable-versioning --enablecalendar --enable-dbx
--enable-dio --enable-mbstring --enable-mbstr-enc-trans
--withapxs=/usr/sbin/apxs --with-sybasect=shared,/usr/local/freetds
--enable-ftp


Previous Comments:
------------------------------------------------------------------------

[2003-08-28 11:02:49] [EMAIL PROTECTED]

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.



------------------------------------------------------------------------

[2003-08-28 09:55:26] [EMAIL PROTECTED]

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","[EMAIL PROTECTED]");
  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

Reply via email to