Sara Golemon wrote:
As you surely know, arrays are often badly initialized:

<?php
// $array is undefined
$array['index'] = 'value';
 ?>

Wouldn't it be such a good thing to let the programmers know that this
is a bad habit, by throwing a +/- pedantic error ? I'm not sure which
type would suit for it, but I think its important enough to throw a
E_NOTICE.

I agree. I've always found it weird that no notice is thrown in this
situation. Still I discourage people to code like this.

This was brought up about a year ago and dismissed.

No reason to not bring it up again.

Sebastian

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to