> Am 02.06.2011 14:56, schrieb Rune Kaagaard: >>> this conversion should never happen and throw a fatal error since this >>> action is destructive to data and never useful nor will warnings/notices >>> helps in the real world
I agree totally that such a conversion should never happen. If we could redesign PHP from the ground up, that would be great thing to change. But making such a big BC break is just very impractical. PHP is an extremely loose language, that is probably never going to change. > this is not a weird conversion this is a idiotic one destroying > data and 99 of 100 hosts never showing notices because you must > not do this on the webpage and on shared host you have no access > to the error-log - so what helps the notice If you are not checking your E_NOTICES you are truly on your own and PHP can not help you. I'm OK with that! An unintended (string)array() cast is just one of many things that can go wrong. Even on hosted servers enlightened PHP developers can use set_error_handler() and register_shutdown_function() to log errors. On the other hand, then many developers don't care about checking for errors, thats fine too. PHP is supposed to be an entry level language, lets not try and change that. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php