> Ah, OK, you learn something every day! For anyone else like me who was > unaware of this, list() apparently silently accepts any non-array value on > the right of the assignment, assigns all variables in the list() to null, and > evaluates to the assigned (but otherwise unused) value. So $x=list($a,$b)=42; > will set $a and $b to NULL, and $x to 42, without any notices.
This is changing as per this RFC: https://wiki.php.net/rfc/notice-for-non-valid-array-container. The `null` case is kept. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php