From:             michal86 at gmail dot com
Operating system: UNIX, Debian
PHP version:      5.1.1
PHP Bug Type:     FTP related
Bug description:  ftp_raw dont wait on reply from server

Description:
------------
hello..

im connecting to ftp with ftp_pasv() on true, i wanna apply few cmd's with
ftp_raw() (like for example in reproducecode).

just like in example, msg from command "test1" will be showed in var $y,
which is a bug?

in perl is something like $ftp->message() or something like that, to wait
for msg from server after raw command..

Reproduce code:
---------------
$x=ftp_raw($ftp,"test1");
print $x; // nothing will return
$y=ftp_raw($ftp,"test2");
print $y; // will return msg from cmd test1, $x=$y?

Expected result:
----------------
after run the code:

$x=ftp_raw($ftp,"test1");
print $x; // will wait for reply from server on cmd test1, then execute
rest code

$y=ftp_raw($ftp,"test2");
print $y; // after reply on cmd:test1, will send raw cmd:test2.. 

vars $x/$y will have result of cmd test1/test2

or second way is write function to read msg() from server in pasv mode

Actual result:
--------------
$x=ftp_raw($ftp,"test1");
print $x; // nothing will return, code will exec normall
$y=ftp_raw($ftp,"test2");
print $y; // will return msg from cmd test1, $x=$y?

-- 
Edit bug report at http://bugs.php.net/?id=35892&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35892&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35892&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35892&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35892&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35892&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35892&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35892&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35892&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35892&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35892&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35892&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35892&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35892&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35892&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35892&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35892&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35892&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35892&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35892&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35892&r=mysqlcfg

Reply via email to