Hello! E_NOTICE warns of uninitialized variables but doesn't warn of adding elements to an uninitialized array ($a[] = 5). It is a very similar problem so E_NOTICE should warn of it either.
It's the same bad practice as working with uninitialized variables with the same security risks and IMHO the programmer should be warned of it. There is a bug regarding this topic marked as bogus by Iliia: http://bugs.php.net/bug.php?id=28151 Is current behavior really expected and wanted? Jakub Vrana -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php