|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-10-21 13:34 UTC] cmb@php.net
[2021-09-15 10:31 UTC] dmitry@php.net
-Status: Open
+Status: Duplicate
[2021-09-15 10:31 UTC] dmitry@php.net
[2021-09-15 12:03 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 10:00:01 2025 UTC |
Description: ------------ Following construction with "const" and double pointer modifier could not be parsed by FFI: typedef struct _simple_struct { const some_not_declared_type **property; } simple_struct; Test script: --------------- <?php $ffi = FFI::cdef(" typedef struct _simple_struct { const some_not_declared_type **property; } simple_struct; "); Expected result: ---------------- Fatal error: Uncaught FFI\ParserException: undefined C type 'some_not_declared_type' Actual result: -------------- Fatal error: Uncaught FFI\ParserException: unexpected '*' at line