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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: blr at blr dot hu
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Mon Dec 02 17:01:35 2024 UTC