On Thu, 18 Sep 2008 23:32:11 +1200, Tim Starling wrote:
Aryeh Gregor wrote:
Maybe it would be better to handle this case as "do what I mean" instead of dropping the rights assignment. I.e., check the array for numeric keys with string values, and add those on to the array properly.
Or throw an exception, that would be a reasonable response to configuration errors.
-- Tim Starling
Do what I mean does seem a bit fragile, since we could only guess what they mean, and hope that it keeps working without regular testing, even if new enhancements are added. I think sanity checking the structure and throwing an exception on any error would be the right thing to do.