Bug #25347 [Com]: ftp_rawlist() returns nothing, when apache runs as service
| From: | lildurk25347 at gmail dot com | Date: | Wed, 01 Sep 2021 18:53:34 +0000 |
| Subject: | Bug #25347 [Com]: ftp_rawlist() returns nothing, when apache runs as service | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236358@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=25347&edit=1
ID: 25347
Comment by: lildurk25347 at gmail dot com
Reported by: spam at come dot no-ip dot com
Summary: ftp_rawlist() returns nothing, when apache runs as
service
Status: Not a bug
Type: Bug
Package: FTP related
Operating System: Windows XP Pro
PHP Version: 4.3.3
Block user comment: N
Private report: N
New Comment:
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
Previous Comments:
------------------------------------------------------------------------
[2021-09-01 18:52:48] lildurk25347 at gmail dot com
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
------------------------------------------------------------------------
[2004-03-04 17:34:41] pollita@php.net
Yes it would be difficult, PHP doesn't create the file, the operating system does. And I
don't know anyone at Microsoft who can introduce that particular patch.
Try the next snapshot though (dated *AFTER* 3/4/2004 21:30 GMT). This might just suitably
workaround the problem.
------------------------------------------------------------------------
[2003-09-11 03:34:10] spam at come dot no-ip dot com
mmm...I'm sorry, but why all the replys where deleted?
it was important, because as I said in my replys, no permission changes for TEMP folders helped!
the only way I could make it work is add write permissions to ENTIRE drive! witch is NOT ACCEPTEBLE,
otherwise there is no reason run it under a USER, not as default as SYSTEM.
Is this should be related to Apache itself, then?
P.S. as u (or maybe somebody else @php.net) says, that PHP has no idea where those temp files are
being writen, then would it be so difficult to add a specific temp dir that will be set in .ini file
(same as for sessions temp files)
This way this issue can be fixed.
thx.
------------------------------------------------------------------------
[2003-09-01 21:17:07] pollita@php.net
ftp_nlist and ftp_rawlist require the ability to create a temporary file. The user you are running
as does not have write premission to your TEMP directory.
This is not a bug in ext/ftp, this is a configuration issue.
Make sure whoever you're running Apache as has read/write/erase permissions in your
system's temp directory.
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=25347&edit=1