#23683 [NEW]: ftp_close($connection) crashes

From: Date: Sun, 18 May 2003 19:42:05 +0000
Subject: #23683 [NEW]: ftp_close($connection) crashes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39898@lists.php.net to get a copy of this message
From: pekka at studio-on-the dot net Operating system: Windows XP Profesional SP1 PHP version: 4.3.2RC3 PHP Bug Type: Reproducible crash Bug description: ftp_close($connection) crashes I have an ftp upload script (non public code), which ends in plain ftp_close($connection); Where $connection is opened handle. After installing RC3 (as module) I a crash: Event viewer: "Faulting application Apache.exe, version 0.0.0.0, faulting module php4ts.dll, version 4.3.2.2, fault address 0x000b9fc4." or "Faulting application Apache.exe, version 0.0.0.0, faulting module ntdll.dll, version 5.1.2600.1106, fault address 0x00002109." FTP is disconneted by the function before crash (ftp logs show session was perfect and complete). I have tried it with local ftp server and remote ones. I tried also with ftp_close(); and got no crash (and of course no disconnect either) If I used ftp_close($fdfdf); where $fdfdf is NOT an opened ftp handle, Apache just hangs page load after output code before ftp_close BUT without a crash. If I comment line /* ftp_close($connection); */ the whole script runs ok, except ftp remains open of course. -- Edit bug report at http://bugs.php.net/?id=23683&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23683&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23683&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23683&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23683&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23683&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23683&r=support Expected behavior: http://bugs.php.net/fix.php?id=23683&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23683&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23683&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23683&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23683&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23683&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23683&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23683&r=gnused

« previous php.bugs (#39898) next »