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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mail at ic-gallery dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 22 13:01:24 2020 UTC