https://bugzilla.wikimedia.org/show_bug.cgi?id=71061

--- Comment #6 from Tim Starling <[email protected]> ---
I am working on a fix now. The problem is apparently
CodeGenerator::cgCountArray(). Probably everything that uses
ArrayData::offsetofSize() is broken.

Reduced test case:

<?php

$lua = 'return test.test({0})';

function test( $x ) {
    return array(count( $x ));
}

$sb = new LuaSandbox;
$sb->registerLibrary( 'test', array('test'=>'test'));
$ret = $sb->loadString( $lua )->call();
print "$ret[0]\n";
$sb = null;

-- 
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

Reply via email to