On 17/09/2015 23:45, Lester Caine wrote:
The 'does not exist' requires that there IS a second field to carry the flag that 'MOT' is not required, while simply leaving it out of the result set then saves two fields.
I'm confused - do you mean that some rows in the result set from the database have columns "missing", rather than just set to NULL? That's not something I've ever come across before.
By the way, you still haven't addressed my point about this whole setup only giving you 3 states, and there being no particular reason you won't need a 4th later.
Currently one has to switch off errors where is_null may be used with a non-existent field
Why? That's what isset() is for, which is where this whole discussion started; I'm not sure why you've suddenly mentioned is_null().
Deprecate expand() so it's use is not possible may be another 'fix'?
Surely there are plenty of ways to use extract() without attempting to give meaning to missing variables.
Regards, -- Rowan Collins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php