Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: FFI::scope - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: FFI::scope

2025-04-28

FFI::scope

(PHP 7 >= 7.4.0, PHP 8)

FFI::scopeInstantiates an FFI object with C declarations parsed during preloading

说明

public static FFI::scope(string $name): FFI

Instantiates an FFI object with C declarations parsed during preloading.

The FFI::scope() method is safe to call multiple times for the same scope. Multiple references to the same scope may be loaded at the same time.

参数

name

The scope name defined by a special FFI_SCOPE define.

返回值

Returns the freshly created FFI object.

参见

  • FFI::load() - Loads C declarations from a C header file
添加备注

用户贡献的备注 1 note

up
0
mh at hanft dot de
1 year ago
I have found out that FFI::scope only works with Apache when you select Apache's threading model "prefork". Using any other threading model results in "scope not found" (and you have to use FFI::load instead because preloading seems not to be possible in this case).

官方地址:https://www.php.net/manual/en/ffi.scope.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3