|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-02-18 10:38 UTC] krakjoe@php.net
-Assigned To:
+Assigned To: dmitry
[2019-02-18 15:12 UTC] dmitry@php.net
[2019-02-18 15:12 UTC] dmitry@php.net
-Status: Assigned
+Status: Closed
[2020-11-17 13:07 UTC] ricardo dot cescon at panthermedia dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 06:00:01 2025 UTC |
Description: ------------ FFI causes a segfault if called with variadics. Test script: --------------- <?php $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6"); $args = ["test"]; $libc->printf(...$args); Expected result: ---------------- test Actual result: -------------- Segmentation fault: Program received signal SIGSEGV, Segmentation fault. 0x0000555555b0826a in zend_check_arg_send_type (zf=0x55555659b710 <executor_globals+1296>, arg_num=0, mask=3) at Zend/zend_compile.h:943 943 return UNEXPECTED((zf->common.arg_info[arg_num].pass_by_reference & mask) != 0);