#23683 [Opn->Fbk]: ftp_close($connection) crashes
| From: | iliaa@php.net | Date: | Sun, 18 May 2003 20:00:06 +0000 |
| Subject: | #23683 [Opn->Fbk]: ftp_close($connection) crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39901@lists.php.net to get a copy of this message | ||
ID: 23683
Updated by: iliaa@php.net
Reported By: pekka at studio-on-the dot net
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows XP Profesional SP1
PHP Version: 4.3.2RC3
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Could you provide the smallest possible php script that could be used
to replicate the crash & the output of var_dump($ftp_handle) just
before you do ftp_close() on it.
Previous Comments:
------------------------------------------------------------------------
[2003-05-18 14:43:32] pekka at studio-on-the dot net
Oh, and Apache is 1.3.27.
------------------------------------------------------------------------
[2003-05-18 14:42:04] pekka at studio-on-the dot net
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 this bug report at http://bugs.php.net/?id=23683&edit=1