|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-10-30 16:13 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
[2019-10-30 16:23 UTC] cmb@php.net
[2019-10-30 16:23 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 01:00:01 2025 UTC |
Description: ------------ If FFI::cast() fails with FFI\Exception "attempt to cast to larger type", a zend_ffi_cdata struct is leaked. Test script: --------------- <?php try { FFI::cast('char[10]', FFI::new('char[1]')); } catch (FFI\Exception $ex) { echo $ex->getMessage(), PHP_EOL; } Expected result: ---------------- attempt to cast to larger type Actual result: -------------- attempt to cast to larger type [Wed Oct 30 17:10:23 2019] Script: '/mnt/d/git/php/bug78761.php' /mnt/d/git/php/php-src/ext/ffi/ffi.c(241) : Freeing 0x00007f0f67081180 (88 bytes), script=/mnt/d/git/php/bug78761.php === Total 1 memory leaks detected ===