Re: [PHP-DEV] Function proposal: varset

2011-04-21 Thread Ferenc Kovacs
On Fri, Apr 22, 2011 at 12:07 AM, Brian Moon wrote: > which one? >> I guess that you are talking about the language constructs like isset and >> empty. >> they aren't functions. >> > > settype() for one. > > Brian. > yeah you are right, passing arguments by reference doesn't trigger the notice,

Re: [PHP-DEV] Function proposal: varset

2011-04-21 Thread Brian Moon
which one? I guess that you are talking about the language constructs like isset and empty. they aren't functions. settype() for one. Brian. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Function proposal: varset

2011-04-21 Thread Ferenc Kovacs
On Thu, Apr 21, 2011 at 8:37 PM, Brian Moon wrote: > I proposed something similar over 5 years ago. It ain't gonna happen >> because PHP language can't support it. >> > > It supports it. Several functions allow you to pass in variables that are > not set and don't throw an error. Not sure what yo

Re: [PHP-DEV] Function proposal: varset

2011-04-21 Thread Brian Moon
I proposed something similar over 5 years ago. It ain't gonna happen because PHP language can't support it. It supports it. Several functions allow you to pass in variables that are not set and don't throw an error. Not sure what you are talking about. Brian. -- PHP Internals - PHP Runtime D

RE: [PHP-DEV] Function proposal: varset

2011-04-21 Thread Jonathan Bond-Caron
On Wed Apr 20 04:41 PM, D. Dante Lorenso wrote: > > My proposal was called "filled" since it was the opposite of "empty" > which already existed. I extended the function to return the first > non-empty value or null if all values evaluated as empty. > > You could use the function like this: >

Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-21 Thread Ferenc Kovacs
> > > What does coalesce() do? > If I'm guessing correctly, would proposal #2 that Rune Kaagaard put up > solve that for you? > https://gist.github.com/909711 > > Cheers, > David > > It was discussed in a separate thread. generally it would do the same as in SQL, return the first non-null value fr