|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-08-01 19:57 UTC] wez@php.net
[2017-04-01 20:11 UTC] tpunt@php.net
-Status: Open
+Status: Wont fix
[2017-04-01 20:11 UTC] tpunt@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
Description: ------------ Here is the bug fix for Win32/64 Index: ffi_library.c ============================================================ ======= --- ffi_library.c (r?vision 299526) +++ ffi_library.c (copie de travail) @@ -395,12 +395,22 @@ return func; } -static union _zend_function *php_ffi_method_get(zval *object, char *name, int len TSRMLS_DC) +static union _zend_function *php_ffi_method_get( +#if PHP_API_VERSION >= 20041225 + zval **object_pp, +#else + zval *object, +#endif +char *name, int len TSRMLS_DC) { zend_internal_function *f; php_ffi_context *obj; php_ffi_function *func; - + +#if PHP_API_VERSION >= 20041225 + zval *object = *object_pp; +#endif + obj = CTX_FETCH(object); func = bind_func(obj, name, len TSRMLS_CC); Reproduce code: --------------- <?php $win32_idl=" [lib='kernel32.dll'] DWORD GetTickCount(); "; $ffi = new ffi($win32_idl); $count = $ffi->GetTickCount(); echo "$count"; ?> Expected result: ---------------- some dword value Actual result: -------------- [notice] EACCELERATOR(5760): PHP crashed on opline 15 at ...test.php:6 [Thu May 20 19:06:58 2010] [crit] Parent: child process exited with status 3 -- Aborting.