#
f547412c |
| 28-Oct-2020 |
Christoph M. Becker |
Fix #79177: FFI doesn't handle well PHP exceptions within callback We have to error on unhandled exceptions in FFI callbacks, to avoid passing back undefined values. This has be
Fix #79177: FFI doesn't handle well PHP exceptions within callback We have to error on unhandled exceptions in FFI callbacks, to avoid passing back undefined values. This has been discussed and agreed upon in a previous PR[1]. [1] <https://github.com/php/php-src/pull/5120> Closes GH-6366.
show more ...
|
#
58309384 |
| 30-Sep-2020 |
Dmitry Stogov |
Fixed hex char parsing
|
#
a1cee97d |
| 30-Sep-2020 |
George Peter Banyard |
Fixed incorrect logical conditions
|
#
d5300873 |
| 11-May-2020 |
Christoph M. Becker |
Fix #79571: FFI: var_dumping unions may segfault We must not attempt to access arbitrary union members when retrieving debug info, because that may not be valid. Therefore we do no long
Fix #79571: FFI: var_dumping unions may segfault We must not attempt to access arbitrary union members when retrieving debug info, because that may not be valid. Therefore we do no longer dereference pointer types inside of unions, but report their address as string in `%p` format instead.
show more ...
|
#
c45552e3 |
| 11-Mar-2020 |
Dmitry Stogov |
Export FFI::__BIGGEST_ALIGNMENT__
|
#
e902e4ac |
| 11-Mar-2020 |
Dmitry Stogov |
Allow to fetch function address
|
#
22c83454 |
| 12-Mar-2020 |
Xinchen Hui |
Folder mark missed
|
#
54ecf57f |
| 17-Feb-2020 |
Dmitry Stogov |
Disable instantiation of zero size FFI\CData objects
|
#
05f3cd23 |
| 12-Jan-2020 |
Christoph M. Becker |
Fix #79096: FFI Struct Segfault We must not assume that the size of a function's return value is at most `sizeof(ffi_arg)`, but rather have to use the size which already has been det
Fix #79096: FFI Struct Segfault We must not assume that the size of a function's return value is at most `sizeof(ffi_arg)`, but rather have to use the size which already has been determined for the return type if it is larger than `sizeof(ffi_arg)`. To be able to have a regression test, we export the required test function from the zend-test extension, and make sure that the test can be run on different platforms regardless of whether zend-tests was built statically or dynamically.
show more ...
|
Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1 |
|
#
0055f1e3 |
| 30-Oct-2019 |
Christoph M. Becker |
Fix #78761: Zend memory heap corruption with preload and casting We have to reset `FFI_G(persistent)` back to zero when preloading has finished.
|
#
1e2d3d58 |
| 30-Oct-2019 |
Christoph M. Becker |
Fix #78762: Failing FFI::cast() may leak memory We have to release objects when we're done with them.
|
Revision tags: php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4 |
|
#
bedbecf5 |
| 14-Oct-2019 |
Christoph M. Becker |
Implement #78270: Support __vectorcall convention with FFI To work around the limitation of the current rudimentary vectorcall support in our patched libffi, we forbid yet unsupported de
Implement #78270: Support __vectorcall convention with FFI To work around the limitation of the current rudimentary vectorcall support in our patched libffi, we forbid yet unsupported declarations, i.e. float/double parameters at certain positions (SIMD vector types and HVA types are not supported anyway).
show more ...
|
#
fea8c548 |
| 23-Oct-2019 |
Dmitry Stogov |
Added suppot for glob() wildcard matching in ffi.preload directive
|
#
c744531f |
| 23-Oct-2019 |
Dmitry Stogov |
Ignore ZEND_FFI_TYPE_OWNED flag
|
#
dcd77232 |
| 23-Oct-2019 |
Remi Collet |
add new ffi.preload option in php.ini and display ini entries in MINFO
|
#
598bf7f5 |
| 22-Oct-2019 |
Christoph M. Becker |
Fix typo
|
#
1417352d |
| 22-Oct-2019 |
Dmitry Stogov |
Allow loading FFI bindings through ffi.preload directive
|
#
1c9bfcb6 |
| 22-Oct-2019 |
Christoph M. Becker |
Fix #78716: Function name mangling is wrong for some parameter types We have to cater to function parameter alignment when calculating the parameter size.
|
Revision tags: php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1 |
|
#
21c3cdf6 |
| 10-Sep-2019 |
Dmitry Stogov |
NEWS entry, test and minor cleanup for FFI::isNull()
|
#
f6ff7eb3 |
| 09-Sep-2019 |
Philip Hofstetter |
add FFI::isNull() to check whether a FFI\CData is a null pointer
|
#
ea92b9b6 |
| 10-Sep-2019 |
Dmitry Stogov |
Stop after exceptions
|
#
1db0bad6 |
| 04-Sep-2019 |
Dmitry Stogov |
Fixed bug #78488 (OOB in ZEND_FUNCTION(ffi_trampoline)).
|
Revision tags: php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1, php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8 |
|
#
1ed9ebde |
| 26-Jul-2019 |
Christoph M. Becker |
Support calling convention specific function name mangling On Windows certain calling conventions cause C function names to be mangled, so to import them we have to use the properly mang
Support calling convention specific function name mangling On Windows certain calling conventions cause C function names to be mangled, so to import them we have to use the properly mangled names.
show more ...
|
Revision tags: php-7.4.0beta1 |
|
#
81fd1c52 |
| 19-Jul-2019 |
Peter Kokot |
Fix typos in FFI Closes GH-4438
|
Revision tags: php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20 |
|
#
0f3ca15b |
| 25-Jun-2019 |
Nikita Popov |
FFI: Perform bitfield operations byte-wise Otherwise we may perform reads/writes outside the allocation, as already happens in 032.phpt.
|