From:             
Operating system: Linux
PHP version:      5.2.17
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Segmentation fault when using FTP proxy

Description:
------------
Hi,

either the Bug (#42420) is still alive or it is re-alive. But I am not
allowed to re-open it. So sorry for opening a dup.



php -v says:

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

PHP 5.2.17-pl0-gentoo (cli) (built: Feb 18 2011 10:01:58)

Copyright (c) 1997-2010 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

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



The PHP died with SegFault on two different machines with two different
Proxies.



regards

Daniel

Test script:
---------------
<?php



        $uri =
'ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-4.1.4.3.tar.bz2';

        $proxy = 'tcp://proxy:8080';



        $opts = array(

                'ftp' => array(

                        'proxy' => $proxy

                )

        );



        $context = stream_context_create($opts);

        stream_context_set_params($context, array());



        $fh = fopen($uri, 'r', false, $context);

        while (!feof($fh)) {

                echo "foo\n";

                fread($fh, 4 * 1024);

        }



        fclose($fh);



?>



Expected result:
----------------
many foos ;-) and no segmentation fault

Actual result:
--------------
many foos and segementation fault

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54092&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54092&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54092&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54092&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54092&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54092&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54092&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54092&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54092&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54092&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54092&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54092&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54092&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54092&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54092&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54092&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54092&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54092&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54092&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54092&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54092&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54092&r=mysqlcfg

Reply via email to