php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #78836 Add support for general C macros/includes for FFI header
Submitted: 2019-11-19 14:01 UTC Modified: 2021-09-16 21:31 UTC
From: lisachenko dot it at gmail dot com Assigned:
Status: Open Package: FFI (PECL)
PHP Version: 7.4.0RC6 OS:
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:
21 + 8 = ?
Subscribe to this entry?

 
 [2019-11-19 14:01 UTC] lisachenko dot it at gmail dot com
Description:
------------
Current implementation of C header parser is partial in PHP. Thus in order to use FFI with existing libraries, someone needs to craft own version of header, because macros and includes are not supported.

It would be nice to extend current FFI C parser and have an ability to include several files without manual ordering.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-16 21:31 UTC] cmb@php.net
-Package: *Extensibility Functions +Package: FFI
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC