ID:               42420
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mkwan at darkside dot com dot au
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Linux (Fedora 7)
 PHP Version:      5.2.3
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2007-08-25 02:51:01] mkwan at darkside dot com dot au

Description:
------------
Calling the file_get_contents() function with the ftp:// wrapper causes
a segmentation fault when an FTP proxy is enabled with the
stream_context_get_default function.

The machine is running Fedora 7 with an Apache server which has
proxying enabled.

Just for comparison, the following command DOES work -

export ftp_proxy=localhost:8080
wget ftp://ftp2.bom.gov.au/anon/gen/radar/IDR463.gif

Reproduce code:
---------------
<?php
    stream_context_get_default (
        array ("ftp" => array ("proxy" => "tcp://localhost:8080"))
    );

    $gif = file_get_contents
("ftp://ftp2.bom.gov.au/anon/gen/radar/IDR463.gif";);
    if ($gif === false)
        echo "failed\n";
    else
        echo "size = " . strlen ($gif) . "\n";
?> 

Expected result:
----------------
I expect to see a message of the form "size = 22544"

Actual result:
--------------
Segmentation fault


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42420&edit=1

Reply via email to