php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52925 PHP/C API ?
Submitted: 2010-09-26 12:56 UTC Modified: 2010-09-26 22:33 UTC
From: dev at kbonez dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
 [2010-09-26 12:56 UTC] dev at kbonez dot net
Description:
------------
dear,all.
  I have an issue for a long time . that is in lots languages, the contain some 
apis can call c-code directly . but php not. why? and do you plan it ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-26 21:54 UTC] cataphract@php.net
The approach PHP uses is similar to that of Oracle with Java -- like with JNI, you have to write a native program to bridge PHP and C.

Writing an interface to "call C code directly" (loading functions directly from libraries, convert between PHP and native types transparently, etc.) would require a lot of effort to do in a cross-compatible fashion.
 [2010-09-26 22:33 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2010-09-26 22:33 UTC] pajoye@php.net
See http://pecl.php.net/ffi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 06:01:34 2024 UTC