#25347 [Opn->Fbk]: ftp_rawlist() returns nothing, when apache runs as service

From: Date: Mon, 01 Sep 2003 22:52:34 +0000
Subject: #25347 [Opn->Fbk]: ftp_rawlist() returns nothing, when apache runs as service
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47029@lists.php.net to get a copy of this message
ID: 25347 Updated by: sniper@php.net Reported By: spam at come dot no-ip dot com -Status: Open +Status: Feedback Bug Type: FTP related Operating System: Windows XP Pro PHP Version: 4.3.3 New Comment: Actual result can not really be 'nothing' since you output stuff in the script. Are you sure it's not actually crashing? (check the apache logs) And/or does it actually connect? (you don't check that) Add 'error_reporting(E_ALL);' in top of your script. And check your phpinfo() output that "display_errors" php.ini setting is 'On'. Previous Comments: ------------------------------------------------------------------------ [2003-09-01 16:26:56] spam at come dot no-ip dot com Description: ------------ I know there are atleast few bug submittions but they are closed while the problem is still remain. I run Apache2 as "apache" user that is member of "USERS" group. ftp_rawlist() function returns nothing. I've checked my FTP logs and all I can see that PHP logs into FTP server and does not sends LIST command. Windows XP Pro on NTFS + Apache2 + PHP4.3.3 as SAPI module Reproduce code: --------------- <?php $conn = ftp_connect("ftp.symantec.com"); ftp_login($conn,"anonymous","someone@somewhere.com"); $nlist = ftp_nlist($conn, ""); $rawlist = ftp_rawlist($conn, ""); echo "<pre>"; echo "Values from ftp_nlist()<BR>"; print_r($nlist); echo "Values from ftp_rawlist()<BR>"; print_r($rawlist); echo "</pre>"; ?> Expected result: ---------------- List of the dirs Actual result: -------------- nothing ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25347&edit=1

« previous php.bugs (#47029) next »