php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57887 open_basedir is ignored
Submitted: 2007-10-23 11:50 UTC Modified: 2008-07-01 11:11 UTC
From: 071023 at vmlinuz dot nl Assigned:
Status: Closed Package: xattr (PECL)
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: 071023 at vmlinuz dot nl
New email:
PHP Version: OS:

 

 [2007-10-23 11:50 UTC] 071023 at vmlinuz dot nl
Description:
------------
xattr-1.0 is ignoring the open_basedir restriction.

Reproduce code:
---------------
<?php
$file = 'some_file_outside_the_open_basedir';
$user_attributes = xattr_list($file);

echo "\n User attributes: \n";
foreach ($user_attributes as $attr_name) {
    printf("%s\n", $attr_name);
}
?> 

Expected result:
----------------
PHP Warning:  xattr_list() function.xattr_list: open_basedir restriction in effect. File(/tmp/aaa) is not within the allowed path(s): (/var/www/html) in /var/www/html/xattr-bugcheck.php on line 5

Actual result:
--------------
names of actual attributes

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-01 11:11 UTC] mg at iceni dot pl
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/xattr


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC