Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Введение »
« user_error
Руководство по PHP
Справочник функций
Изменение поведения PHP
Change language:
English
Brazilian Portuguese
Chinese (Simplified)
French
German
Japanese
Russian
Spanish
Turkish
Other
Submit a Pull Request
Report a Bug
Интерфейс внешней функции (Foreign Function Interface)
Введение
Установка и настройка
Требования
Установка
Настройка во время выполнения
Типы ресурсов
Предопределённые константы
Примеры
Простые примеры использования FFI
Callback-функции PHP
Комплексный пример PHP/FFI/preloading
FFI
— Основной интерфейс к коду и данным C
FFI::addr
— Создаёт неуправляемый указатель на данные C
FFI::alignof
— Возвращает величину выравнивания
FFI::arrayType
— Динамически конструирует новый тип С массива
FFI::cast
— Производит преобразование типа C
FFI::cdef
— Создаёт новый объект FFI
FFI::free
— Высвобождает неуправляемую структуру данных
FFI::isNull
— Проверяет, является ли FFI\CData нулевым указателем
FFI::load
— Загрузить декларации C из заголовочного файла
FFI::memcmp
— Сравнивает две области памяти
FFI::memcpy
— Копирует содержимое одной области памяти в другую
FFI::memset
— Заполнить область памяти
FFI::new
— Создаёт структуру данных C
FFI::scope
— Инстанциирует объект FFI в соответствии с декларацией С, разобранной на этапе предзагрузки
FFI::sizeof
— Возвращает размер данных или типа C
FFI::string
— Создаёт строку PHP из области памяти
FFI::type
— Создаёт объект FFI\CType из декларации С
FFI::typeof
— Получает FFI\CType для FFI\CData
FFI\CData
— Доступ к данным C
FFI\CType
— Доступ к типам C
FFI\CType::getAlignment
— Описание
FFI\CType::getArrayElementType
— Описание
FFI\CType::getArrayLength
— Описание
FFI\CType::getAttributes
— Описание
FFI\CType::getEnumKind
— Описание
FFI\CType::getFuncABI
— Описание
FFI\CType::getFuncParameterCount
— Описание
FFI\CType::getFuncParameterType
— Описание
FFI\CType::getFuncReturnType
— Описание
FFI\CType::getKind
— Описание
FFI\CType::getName
— Описание
FFI\CType::getPointerType
— Описание
FFI\CType::getSize
— Описание
FFI\CType::getStructFieldNames
— Описание
FFI\CType::getStructFieldOffset
— Описание
FFI\CType::getStructFieldType
— Описание
FFI\Exception
— Исключения FFI
FFI\ParserException
— Исключения парсера FFI
+
add a note
User Contributed Notes
There are no user contributed notes for this page.