php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58743 interceptFileFuncs does not work with mount
Submitted: 2009-06-30 20:56 UTC Modified: -
From: mail at ic-gallery dot com Assigned:
Status: Open Package: phar (PECL)
PHP Version: 5.3.0RC4 OS: Linux
Private report: No CVE-ID: None
 [2009-06-30 20:56 UTC] mail at ic-gallery dot com
Description:
------------
If you use Phar::mount to mount a directory, is_dir() will return false for the mounted directory.

Using PHP 5.3.0 final.

Reproduce code:
---------------
Stub contains:

Phar::interceptFileFuncs();
Phar::mount('albums/', '/home/nibbler/public_html/phar/data/albums/');

Application contains:

var_dump(is_dir('albums'));

Expected result:
----------------
returns true

Actual result:
--------------
returns false

Patches

phar (last revision 2021-04-15 03:31 UTC by oscharko83 at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-04-15 03:31 UTC] oscharko83 at gmail dot com
The following patch has been added/updated:

Patch Name: phar
Revision:   1618457469
URL:        https://bugs.php.net/patch-display.php?bug=58743&patch=phar&revision=1618457469
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC