php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70664 xattr_set() returns true on filesystem without xattr support
Submitted: 2015-10-07 22:59 UTC Modified: 2016-05-01 04:22 UTC
From: blr at blr dot hu Assigned:
Status: No Feedback Package: xattr (PECL)
PHP Version: Irrelevant OS: Ubuntu 14.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-10-07 22:59 UTC] blr at blr dot hu
Description:
------------
When use xattr_set() on a file system which doesn't supports xattr, it returns true.

Test script:
---------------
// /tmp has not set user_xattr
if(xattr_set('/tmp/foo.bar','name','value'))
{
  echo(xattr_get('/tmp/foo.bar','name'));
}
// returns empty string

Expected result:
----------------
xattr_set() should return false on filesystem without xattr support.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-21 14:28 UTC] remi@php.net
-Status: Open +Status: Feedback
 [2016-04-21 14:28 UTC] remi@php.net
I cannot reproduce with latest version

=> PHP Warning:  xattr_set Operation not supported in /tmp/foo.php on line 3

Please try with 1.3.0
 [2016-05-01 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jul 11 22:01:24 2020 UTC