AW: [PEAR-BUG] Bug #4102: Problem detecting os method ls()
| From: | webEdition Software GmbH - Christoph Lütjen | Date: | Fri, 08 Apr 2005 12:18:48 +0000 |
| Subject: | AW: [PEAR-BUG] Bug #4102: Problem detecting os method ls() | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-2699@lists.php.net to get a copy of this message | ||
Hi,
pattern for unix uses [\w\d] for owner and groupname. This doesn't match
"www-data" ('-' is not a "word" character).
[\w\-] should solve the problem (\d is imho not required, \w matches digits
too).
Greetings
Chris
-----Ursprüngliche Nachricht-----
Von: PEAR Bug Database [mailto:pear-qa@lists.php.net]
Gesendet: Freitag, 8. April 2005 13:08
An: christoph.luetjen@webedition.de
Betreff: [PEAR-BUG] Bug #4102: Problem detecting os method ls()
From: christoph dot luetjen at webedition dot de
Operating system: Debian Linux testing
PHP version: 4.3.9
Package: Net_FTP
Bug Type: Bug
Bug description: Problem detecting os method ls()
Description:
------------
Net_FTP->ls() Function has problems with the following output I've got
from an FTP Server with NET_FTP_RAWLIST
dr-xr-x--- 9 web10 www-data 4096 May 17 2004 .
dr-xr-x--- 9 web10 www-data 4096 May 17 2004 ..
drwx------ 2 root root 4096 May 17 2004 .configs
drwxrwxrwx 15 web10 ftponly 4096 Apr 1 17:33 html
drwxr-xr-x 3 root root 4096 Apr 5 00:00 log
drwxrwxrwx 2 web10 ftponly 4096 Apr 5 16:20 phptmp
drwxr-xr-x 2 web10 ftponly 4096 May 17 2004 restore
ls() function detects this as windows server, possibly there's a problem
with the time / year? (Please don't ask why the server returns this - I
don't know... ;-)
Reproduce code:
---------------
$res = $fpt->ls('/', NET_FTP_DIRS_ONLY);
Actual result:
--------------
[6] => Array
(
[name] => 17:33 html
[date] => drwxrwxrwx 15 web10 ftponly 4096
[is_dir] => 1
[stamp] => -1
)
[7] => Array
(
[name] => backup
[date] => drwxr-xr-x 2 root root 4096 May
[is_dir] => 2004
[stamp] => -1
)
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=4102&edit=2