mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
Declare FFI\CType in namespace
Now that it is supported, declare that CType is part of the FFI namespace, not a freestanding class.
This commit is contained in:
parent
e0b17ba219
commit
2d234d111a
@ -2,6 +2,8 @@
|
||||
|
||||
/** @generate-function-entries */
|
||||
|
||||
namespace {
|
||||
|
||||
final class FFI
|
||||
{
|
||||
public static function cdef(string $code = "", ?string $lib = null): FFI {}
|
||||
@ -62,6 +64,12 @@ final class FFI
|
||||
public static function isNull(FFI\CData $ptr): bool {}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace FFI {
|
||||
|
||||
final class CType {
|
||||
public function getName() : string {}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: cf08aabbc0e1c50204772ace9285f1c5ef7a22fe */
|
||||
* Stub hash: 63219df3f7ccf823350d288bf2dfeba5291a3e51 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_FFI_cdef, 0, 0, FFI, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_STRING, 0, "\"\"")
|
||||
|
Loading…
Reference in New Issue
Block a user