Re: [PHP-DEV] RFC: built-in web server in CLI.

2011-04-16 Thread Philip Olson
Greetings Moriyoshi and all, Are people still thinking about this? And how about applying the current/revised patch to trunk thus making it easier to play with and break, but not freeze its features/API yet. Also the wiki is up again so: - RFC: https://wiki.php.net/rfc/builtinwebserver - P

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

2011-04-16 Thread Ángel González
Ben Schmidt wrote: >>> $var = $arr['key'] ?? : 'empty'; > > Also note this is possible with the recent proposal Hannes and I were > discussing. It simply looks like > > $var = $arr?['key'] ?: 'empty'; > > The ?[ avoids notices and the ?: works as it always has. > > Ben. If it was going to be ?[, I

Re: [PHP-DEV] SVN Account Request: rlms

2011-04-16 Thread Philip Olson
On Apr 15, 2011, at 2:23 AM, Hannes Magnusson wrote: > 2011/4/1 Hannes Magnusson : >> 2011/3/31 Pål-Kristian Hamre : >>> We need access to this repository to commit changes to the infrastructure: >>> https://svn.php.net/repository/systems/ >>> >> >> Verified. He is working on bringing the wiki

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

2011-04-16 Thread Ben Schmidt
$var = $arr['key'] ?? : 'empty'; Also note this is possible with the recent proposal Hannes and I were discussing. It simply looks like $var = $arr?['key'] ?: 'empty'; The ?[ avoids notices and the ?: works as it always has. Ben. -- PHP Internals - PHP Runtime Development Mailing List To

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

2011-04-16 Thread Ben Schmidt
I believe describing nullness checking as a "main" issue is a rather strong assessment. I don't think so, obviously. :-) $var = (isset($arr['key'])) ? $arr['key'] : 'empty'; Nullness checking is half of what that code does, isn't it? Otherwise it would be (isset($arr['key']) && $arr['key']),

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

2011-04-16 Thread Ole Markus With
On Sat, 16 Apr 2011 03:42:11 +0200, Adam Richardson wrote: On Fri, Apr 15, 2011 at 8:46 PM, Ben Schmidt wrote: There was also my suggestion of a "checked ternary" operator [see my previous email in this thread.] Backwards compatible, practical, and simple. It doesn't address the main is