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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
34 - 23 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 01:01:30 2024 UTC