https://bugzilla.wikimedia.org/show_bug.cgi?id=65796
--- Comment #8 from Brad Jorsch <[email protected]> --- I note the C stack trace reported in Tim's test case doesn't really match what Ori reported in comment 6. Not sure if that matters. I managed to reduce Tim's test case a bit further, though: <?php $sandbox = new LuaSandbox; $ret = $sandbox->loadString( 'return function() end', "=test" )->call(); $ret[0]; $ret[0]; ?> Then I did this: <?php $s = new LuaSandbox; $f = $s->loadString( "return function() end", "=x" )->call(); debug_zval_dump( $f ); On zend PHP this says that the LuaSandboxFunction has a refcount of 1, while in HHVM it says it has a refcount of 0. The same happens with "return { function() end }", the LuaSandboxFunction has a refcount of 0. At that point I ran out of luck in trying to figure out why it's coming out with a 0 refcount in HHVM and 1 in zend PHP. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
