Hello -
I am trying to step through an associative array with 'foreach':
foreach(array_keys($my_array) as $my_key) {
....stuff here....
}
And I (usually) get a nice segfault - just like you would when accessing an invalid index in C. And from debugging I KNOW it segfaults at the 'foreach' and not further in the function. Interestingly enough, it usally segfaults at the end of the array.
Could it be that the data in my arrray is somehow invalid? When I do a sizeof($my_array) before the foreach loop, I get 4 - which is correct. So could this loop be going beyond 4 iterations? I guess a better question is: what does it take to segfault the above statement?
Thanks for help in advance.
Erik Monson
erik.monson@gte.net