|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp_lua_release_nApplyCount (last revision 2013-06-22 14:07 UTC by emptyhua at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-06-25 04:38 UTC] laruence@php.net
-Assigned To:
+Assigned To: laruence
[2013-06-30 02:51 UTC] laruence@php.net
-Status: Assigned
+Status: Closed
[2013-06-30 02:51 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
Description: ------------ nApplyCount release missing Test script: --------------- <?php $lua = new Lua(); $lua->eval(" function main(x) return nil end"); $obj = array(1, 2, 3, array(4, 5, 6)); echo json_encode($obj) . "\n"; $lua->call('main', array($obj)); echo json_encode($obj) . "\n"; Expected result: ---------------- [1,2,3,[4,5,6]] [1,2,3,[4,5,6]] Actual result: -------------- [1,2,3,[4,5,6]] PHP Warning: json_encode(): recursion detected in /tmp/test.php on line 10 [1,2,3,null]