#38981 [Opn->Csd]: Adding FTP URL's in the get_headers() function, causes PHP to crash.
| From: | tony2001@php.net | Date: | Thu, 28 Sep 2006 12:55:22 +0000 |
| Subject: | #38981 [Opn->Csd]: Adding FTP URL's in the get_headers() function, causes PHP to crash. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102851@lists.php.net to get a copy of this message | ||
ID: 38981
Updated by: tony2001@php.net
Reported By: trustpunk at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: Windows XP
PHP Version: 5.2.0RC4
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-09-28 12:40:03] trustpunk at gmail dot com
Description:
------------
When you add a simple FTP connection to the get_headers()
function, PHP will crash.
Reproduce code:
---------------
<pre>
<?php
$ftp_server = "ftp://user:pass@host/path/to/file.zip";
// Let's echo the "header" from the file
print_r(get_headers($ftp_server));
?>
</pre>
Expected result:
----------------
I want the headers from my FTP server request.
Actual result:
--------------
Windows tells me that "PHP" has crashed. Also, I'm testing
this on PHP5.2.0RC5.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38981&edit=1