Re: [PHP-DEV] not_null function

2014-07-04 Thread Kris Craig
On Fri, Jul 4, 2014 at 2:38 PM, Xen wrote: > On Fri, 4 Jul 2014, Levi Morrison wrote: > > For completeness, it is available in Perl and I believe Perl had it >> first; not completely sure though. >> > > Okay, I never used Perl. > > > I don't think changing isset would be beneficial, sadly. I wi

Re: [PHP-DEV] lxr.php.net's phpng seems out of date

2014-07-04 Thread Andrea Faulds
Per this exchange on IRC: [11:48pm]Tyrael: ajf: http://lxr.php.net/history/phpng/Zend/zend_types.h [11:48pm]ajf: Tyrael: May now? Where was it stuck to before? Has the issue been fixed? [11:49pm]Tyrael: ajf: Cataphrac reported it to be fixed [11:49pm]ajf: Ah [11:50pm]Tyrael: checks out: https://

Re: [PHP-DEV] not_null function

2014-07-04 Thread Xen
On Fri, 4 Jul 2014, Levi Morrison wrote: For completeness, it is available in Perl and I believe Perl had it first; not completely sure though. Okay, I never used Perl. I don't think changing isset would be beneficial, sadly. I wish it only checked that a variable exists and didn't do the no

Re: [PHP-DEV] not_null function

2014-07-04 Thread Levi Morrison
On Fri, Jul 4, 2014 at 2:27 PM, Xen wrote: > Op Fri, 04 Jul 2014 14:34:17 +0200 schreef Robert Stoll : > > >> [Robert Stoll] >> >> I really like how ruby tackles this problem with the syntactic sugar >> "unless" which basically is a substitute for "if( !() )". >> Maybe we could consider to introdu

Re: [PHP-DEV] not_null function

2014-07-04 Thread Xen
Op Fri, 04 Jul 2014 14:34:17 +0200 schreef Robert Stoll : [Robert Stoll] I really like how ruby tackles this problem with the syntactic sugar "unless" which basically is a substitute for "if( !() )". Maybe we could consider to introduce it in PHP next? It is very natural to read "unless(is_

Re: [PHP-DEV] VCS Account Request: yuanyuqiang

2014-07-04 Thread Ferenc Kovacs
On Sat, Apr 26, 2014 at 5:54 AM, YuQiang Yuan wrote: > http://news.php.net/php.doc.zh/4144 > http://news.php.net/php.doc.zh/4146 > http://news.php.net/php.doc.zh/4153 > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi, Sor

[PHP-DEV] Re: VCS Account Request: yuanyuqiang

2014-07-04 Thread PHP Group
VCS Account Approved: yuanyuqiang approved by tyrael \o/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] VCS Account Request: bdrsuh

2014-07-04 Thread Ferenc Kovacs
On Mon, Jun 23, 2014 at 6:12 AM, Peter Seo wrote: > Developing the PHP runtime, > Maintaining an official, bundled PHP extension > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi, do you have any previous contribution to

RE: [PHP-DEV] not_null function

2014-07-04 Thread Robert Stoll
Hey, > -Original Message- > From: Xen [mailto:x...@dds.nl] > Sent: Thursday, July 03, 2014 11:40 AM > To: internals@lists.php.net > Subject: [PHP-DEV] not_null function > > Heya, > > I was just wondering about something. > > It seems way more natural and flowing to have and use a "not_n

Re: [PHP-DEV] not_null function

2014-07-04 Thread Kris Craig
On Fri, Jul 4, 2014 at 12:57 AM, Mats Lindh wrote: > On Fri, Jul 4, 2014 at 9:43 AM, Kris Craig wrote: > >> What would be wrong with changing it from a function to a language >> construct like isset() and empty()? If is_null() were the equivalent of >> !isset( $var ) || $var === NULL, it would

Re: [PHP-DEV] not_null function

2014-07-04 Thread Peter Cowburn
On 4 July 2014 08:43, Kris Craig wrote: > On Fri, Jul 4, 2014 at 12:26 AM, Stas Malyshev > wrote: > > > Hi! > > > > > Not any that I'm aware of, and I personally have never used is_null(). > > > I share your opinion that we don't really need is_null(), but with BC > > > in mind, I don't think it

Re: [PHP-DEV] not_null function

2014-07-04 Thread Mats Lindh
On Fri, Jul 4, 2014 at 9:43 AM, Kris Craig wrote: > What would be wrong with changing it from a function to a language > construct like isset() and empty()? If is_null() were the equivalent of > !isset( $var ) || $var === NULL, it would make a hell of a lot more sense > than what's there now. >

Re: [PHP-DEV] not_null function

2014-07-04 Thread Kris Craig
On Fri, Jul 4, 2014 at 12:26 AM, Stas Malyshev wrote: > Hi! > > > Not any that I'm aware of, and I personally have never used is_null(). > > I share your opinion that we don't really need is_null(), but with BC > > in mind, I don't think it would get removed. > > There's nothing to remove. Every

Re: [PHP-DEV] not_null function

2014-07-04 Thread Stas Malyshev
Hi! > Not any that I'm aware of, and I personally have never used is_null(). > I share your opinion that we don't really need is_null(), but with BC > in mind, I don't think it would get removed. There's nothing to remove. Every type has is_* function, including null type. If is_null() is offensi

Re: [PHP-DEV] not_null function

2014-07-04 Thread Andrey Andreev
HI, Not any that I'm aware of, and I personally have never used is_null(). I share your opinion that we don't really need is_null(), but with BC in mind, I don't think it would get removed. Cheers, Andrey. On Fri, Jul 4, 2014 at 1:47 AM, Kris Craig wrote: >> $var !== null >> ! is_null($