|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #72984 Compatibility with Darwin, maybe BSD
Submitted: 2016-08-31 05:19 UTC Modified: 2021-04-06 17:18 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dana at dana dot is Assigned:
Status: Open Package: xattr (PECL)
PHP Version: 7.0.10 OS: Darwin
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:
Bug Type:
From: dana at dana dot is
New email:
PHP Version: OS:


 [2016-08-31 05:19 UTC] dana at dana dot is

The xattr extension is currently Linux-only (or at least glibc-only), but i don't think it would be complicated at all to fix that limitation. I have a proof-of-concept fork with Darwin compatibility here:

Everything seems to work (except xattr_supported(); need to revisit that), and as you can see it was pretty simple, so i was even going to move on to adding *BSD compatibility — but i wanted to check to see if this sort of change would be welcome.

Would you accept a patch/PR that adds compatibility with Darwin and/or BSD?

If so:

1. Do you have any comments on the direction i'm taking? I'm not much of a C programmer, so i'm not sure what the best practices are. Should i create a separate file for compatibility stuff maybe?

2. What are the guide-lines for contributing to the project? Do i just submit patches through here?



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-04-06 17:18 UTC]
I suggest to submit a pull request:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 18 08:01:27 2021 UTC