1--TEST-- 2Testing variant arrays 3--EXTENSIONS-- 4com_dotnet 5--FILE-- 6<?php 7$arrays = [ 8 "order" => [2 => 1, 1 => 2, 0 => 3], 9 "off" => [2 => 1, 1 => 2, 3], 10 "negative" => [-1 => 42], 11]; 12foreach ($arrays as $desc => $array) { 13 echo "-- $desc --\n"; 14 $v = new variant($array); 15 foreach ($v as $val) { 16 var_dump($val); 17 } 18} 19?> 20--EXPECTF-- 21-- order -- 22int(3) 23int(2) 24int(1) 25-- off -- 26NULL 27int(2) 28int(1) 29-- negative -- 30%ANULL 31