|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2016-04-11 02:57 UTC] laruence@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: laruence
  [2016-04-11 02:57 UTC] laruence@php.net
  [2016-04-11 22:49 UTC] beniwtv at relamp dot tk
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
Description: ------------ Hi, when passing an an array to a lua function, the module will segfault: php-fpm7.0[9786]: segfault at 5 ip 00007f6cec54b51c sp 00007ffe1292cc70 error 4 in lua.so[7f6cec547000+6000] Example: Passing array('hello', 'world'); Passing array('what' => 'hello', 'where' => 'world'); (two-dimensional) works however. Additionally, PHP 5.6 and lua-1.1.0 works as expected. Maybe a bug in the upgrade to PHP7? Test script: --------------- <?php $mylua = new \lua(); $mylua->eval(<<<CODE function nicefunction(args) print(args[1]) return args[1] end CODE ); echo $mylua->call("nicefunction", array(array('hello', 'world'))); echo "Done!"; Expected result: ---------------- "hello" is displayed, then "Done!" is displayed Actual result: -------------- Segmentation fault (core dumped)