I take it all back. I'd definately report this as a bug, Christophe.

It's really weird.

Simplest I can make the code is:
code:
$f = Dir("*",0)
While @error = 0
$f = Dir(,0)
Loop

;declare the array
Global $array[10,99]

;check the array size
"[1] Array ubound should be 99: " Ubound($array,2) ?
$f = Dir("*",0)
"[2] Array ubound should be 99: " Ubound($array,2) ?

This fails with 4.20.

Interestingly,
  • If you use index 0 with the first Dir() and index 1 with the second you don't get the problem.
  • If you don't exhaust the first loop you don't get the problem.
  • If you have more than 2 array dimensions you don't get the problem.
{EDIT}
Update - Fails with latest 4.21 too.
{/EDIT}

[ 02. June 2003, 17:17: Message edited by: Richard H. ]