|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-01 11:11 UTC] mg at iceni dot pl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 00:00:02 2025 UTC |
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