|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-06-28 05:27 UTC] kelunik@php.net
-Package: Scripting Engine problem
+Package: ffi
[2020-06-28 05:28 UTC] kelunik@php.net
-Package: ffi
+Package: Scripting Engine problem
[2020-06-29 11:41 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Package: Scripting Engine problem
+Package: *Extensibility Functions
[2020-06-29 11:44 UTC] cmb@php.net
[2020-06-29 14:03 UTC] cmb@php.net
[2020-06-29 14:03 UTC] cmb@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ This works on PHP 7.4 and also works on PHP 8 with other objects like new \stdClass. Test script: --------------- <?php // create FFI object, loading libc and exporting function printf() $ffi = FFI::cdef( "int printf(const char *format, ...);", // this is regular C declaration "libc.so.6"); // call C printf() $ffi->printf("Hello %s!\n", "world"); if ($ffi) { print 'ok'; } Expected result: ---------------- Hello world! ok Actual result: -------------- Hello world! PHP Recoverable fatal error: Object of class FFI could not be converted to bool in /home/kelunik/test.php on line 8