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
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: dev at kbonez dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 02:01:33 2025 UTC