Bug #65963 [NEW]: is_dir wrong behaviour when used with ftp on localhost
| From: | messaged at messaged dot lv | Date: | Thu, 24 Oct 2013 19:47:21 +0000 |
| Subject: | Bug #65963 [NEW]: is_dir wrong behaviour when used with ftp on localhost | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-182455@lists.php.net to get a copy of this message | ||
From: messaged at messaged dot lv
Operating system: Mac OS X
PHP version: 5.5.5
Package: FTP related
Bug Type: Bug
Bug description:is_dir wrong behaviour when used with ftp on localhost
Description:
------------
Wrong behaviour when i use is_dir() on localhost. Works as expected on
external php.
Test script:
---------------
[19] boris> $ftp = ftp_connect('localhost');
â resource(39) of type (FTP Buffer)
[20] boris> ftp_login($ftp, 'message', 'password');
â true
[22] boris> ftp_nlist($ftp,'.');
â array(
42 => 'Applications',
43 => 'Desktop',
44 => 'Documents',
45 => 'Downloads',
46 => 'Dropbox',
47 => 'fixtures',
49 => 'Library',
52 => 'Movies',
53 => 'Music',
56 => 'Pictures',
57 => 'Public',
58 => 'springsource',
59 => 'temporary_fixtures',
61 => 'www'
)
[23] boris> is_dir('ftp://message:password@127.0.0.1/www');
â false
[24] boris>
is_dir('ftp://message:password@127.0.0.1/temporary_fixtures');
â false
[25] boris> is_dir('ftp://message:password@127.0.0.1/');
â true
[26] boris> is_dir('/Users/message/www');
â true
Expected result:
----------------
[23] boris> is_dir('ftp://message:password@127.0.0.1/www');
â true
Actual result:
--------------
[23] boris> is_dir('ftp://message:password@127.0.0.1/www');
â false
--
Edit bug report at https://bugs.php.net/bug.php?id=65963&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65963&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=65963&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65963&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65963&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65963&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65963&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65963&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65963&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65963&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65963&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65963&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65963&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65963&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65963&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65963&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65963&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65963&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65963&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65963&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65963&r=mysqlcfg