FFI::load

(PHP 7 >= 7.4.0, PHP 8)

FFI::loadLoads C declarations from a C header file

Beschreibung

public static FFI::load(string $filename): ?FFI

Loads C declarations from a C header file. It is possible to specify shared libraries that should be loaded, using special FFI_LIB defines in the loaded C header file.

Parameter-Liste

filename

The name of a C header file.

C preprocessor directives are not supported, i.e. #include, #define and CPP macros do not work, except for special cases listed below.

The header file should contain a #define statement for the FFI_SCOPE variable, e.g.: #define FFI_SCOPE "MYLIB". Refer to the class introduction for details.

The header file may contain a #define statement for the FFI_LIB variable to specify the library it exposes. If it is a system library only the file name is required, e.g.: #define FFI_LIB "libc.so.6". If it is a custom library, a relative path is required, e.g.: #define FFI_LIB "./mylib.so".

Rückgabewerte

Returns the freshly created FFI object, or null on failure.

Siehe auch

  • FFI::scope() - Instantiates an FFI object with C declarations parsed during preloading

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

+27734009912 medium sorcerer prof jomo denis in new york city, usa

Prof Jomo Denis is a practicing medium who works all over the world. He helps in the most difficult situations, quickly and effectively. His influ ...

Geschrieben von profjomo am 01.07.2026 00:38:49
Forum: Off-Topic Diskussionen
Genie invocations and summons in Accra Ghana+27734009912

Jinn’s, Genies are also living beings but they are made of fire. Genie or Jinn’s can be conquered by human beings by special invocations and i ...

Geschrieben von profjomo am 01.07.2026 00:36:36
Forum: Off-Topic Diskussionen
+27734009912 Spell to punish an evil person in Kingston Jamaica

There is nothing worse than knowing someone is out to harm you or destroy you. Even if they are not outwardly threatening you with physical harm, ...

Geschrieben von profjomo am 01.07.2026 00:34:37
Forum: Off-Topic Diskussionen
Make a dream come true spell in denmark+27734009912

Prof. jomo using his stronger powers helps you to follow Your dream. Are you a and artist, soccer play become an important person you desired to b ...

Geschrieben von profjomo am 01.07.2026 00:30:01
Forum: Off-Topic Diskussionen