#25294 [Fbk->Csd]: ftp_nlist fails on nai site with coredump
| From: | pollita@php.net | Date: | Tue, 09 Sep 2003 21:20:36 +0000 |
| Subject: | #25294 [Fbk->Csd]: ftp_nlist fails on nai site with coredump | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47347@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: Feedback
+Status: Closed
Bug Type: FTP related
Operating System: Linux 2.4.21
PHP Version: 4.3.4-dev
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
A developer was able to reproduce this finally and came up with a
patch. The next snapshot should work fine (give it time to be
generated). If not, please reopen.
Previous Comments:
------------------------------------------------------------------------
[2003-09-09 12:16:36] pollita@php.net
If the rebuild fails, try adding this line to the end of your script.
var_dump(ftp_close($fp));
------------------------------------------------------------------------
[2003-09-09 09:43:49] sniper@php.net
Do this:
# rm config.cache
# ./configure --disable-all --disable-cgi --enable-ftp --enable-debug
# make clean && make
And try that script again. (with the snapshot)
If it crashes, provide a backtrace.
------------------------------------------------------------------------
[2003-09-09 04:49:54] steveh at brendata dot co dot uk
Sorry, still fails, same as before:
[root@Linux3 php4-STABLE-200309081530]# ./sapi/cli/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)
[root@Linux3 php4-STABLE-200309081530]#
------------------------------------------------------------------------
[2003-09-06 09:16:51] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-08-29 03:16:48] steveh at brendata dot co dot uk
Ok, it failed as before, here's the output:
(gdb) run test.php
Starting program: /usr/src/php-4.3.3/sapi/cli/php test.php
resource(4) of type (FTP Buffer)
resource(4) of type (FTP Buffer)
bool(false)
resource(4) of type (FTP Buffer)
[Fri Aug 29 09:04:06 2003] Script: 'test.php'
---------------------------------------
/usr/src/php-4.3.3/ext/ftp/ftp.c(1443) : Block 0x081EF888 status:
Beginning: Overrun (magic=0x401E0470, expected=0x7312F8DC)
End: Unknown
---------------------------------------
Program exited normally.
(gdb)
------------------------------------------------------------------------
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/25294
--
Edit this bug report at http://bugs.php.net/?id=25294&edit=1