php.net |  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: -
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
Have you experienced this issue?
Rate the importance of this bug to you:

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

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:

https://github.com/okdana/pecl-xattr/compare/compat/darwin

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?

Thanks!


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:25 2019 UTC