#18646 [NEW]: ftp_close not working properly
| From: | nohn@php.net | Date: | Tue, 30 Jul 2002 13:04:39 +0000 |
| Subject: | #18646 [NEW]: ftp_close not working properly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15569@lists.php.net to get a copy of this message | ||
From: nohn@php.net
Operating system: Compaq Tru64
PHP version: 4CVS-2002-07-30
PHP Bug Type: FTP related
Bug description: ftp_close not working properly
Following script seems to work not properly, but maybe I've simply
misunderstood the documentation:
<?php
$ftp_server = "2.14.128.38";
$ftp = ftp_connect("$ftp_server");
echo("FTP: "); var_dump($ftp); echo("\n");
if (ftp_close($ftp)) {
$result = 1;
} else {
$result = 0;
}
echo "Result: $result\n";
?>
> ~/php4-200207292100_install/bin/php tests/ftp/ftp_close.php
Unaligned access pid=6597 <php> va=0x140064c8c pc=0x1201ba050
ra=0x1201ba044 inst=0xb4010000
FTP: resource(4) of type (FTP Buffer)
Result: 0
So there seems a ftp-resource (well the documentation still says,
ftp_connect would return a boolean value) that seems not to be valid to
ftp_close.
--
Edit bug report at http://bugs.php.net/?id=18646&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18646&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18646&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18646&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18646&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18646&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18646&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18646&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18646&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18646&r=globals