Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-04-04 Thread Marc Bennewitz
Hi Nikita, Dmitry, I think it's a mistake to throw a TypeException on invalid argument count as in this case it has nothing to do with a type. Marc Am 03.04.2015 um 20:48 schrieb Dmitry Stogov: I don' t see any problems. Thanks. Dmitry. On Fri, Apr 3, 2015 at 6:31 PM, Nikita Popov wrote:

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-04-03 Thread Dmitry Stogov
I don' t see any problems. Thanks. Dmitry. On Fri, Apr 3, 2015 at 6:31 PM, Nikita Popov wrote: > On Wed, Apr 1, 2015 at 3:31 AM, Dan Ackroyd > wrote: > >> Hi Dmitry, >> >> Your approach is definitely a better one, and I have no objection to >> it whatsoever. >> >> Sorry, I was too busy to look

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-04-03 Thread Nikita Popov
On Wed, Apr 1, 2015 at 3:31 AM, Dan Ackroyd wrote: > Hi Dmitry, > > Your approach is definitely a better one, and I have no objection to > it whatsoever. > > Sorry, I was too busy to look deeply at each class but I can't see any > problems. > > Nikita Popov wrote: > > does that mean that the same

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-04-01 Thread Dmitry Stogov
committed into master. Dan, please update the RFC accordingly. Thanks. Dmitry. On Wed, Apr 1, 2015 at 11:14 AM, Dmitry Stogov wrote: > > > On Wed, Apr 1, 2015 at 4:31 AM, Dan Ackroyd > wrote: > >> Hi Dmitry, >> >> Your approach is definitely a better one, and I have no objection to >> it whats

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-04-01 Thread Dmitry Stogov
On Wed, Apr 1, 2015 at 4:31 AM, Dan Ackroyd wrote: > Hi Dmitry, > > Your approach is definitely a better one, and I have no objection to > it whatsoever. > Your patch was quite good. You just didn't know what this NULL return required a hack in the PHP core :) > > Sorry, I was too busy to look

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-31 Thread Dan Ackroyd
Hi Dmitry, Your approach is definitely a better one, and I have no objection to it whatsoever. Sorry, I was too busy to look deeply at each class but I can't see any problems. Nikita Popov wrote: > does that mean that the same code using strict_types=1 mode will start > throwing TypeException in

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-31 Thread Dmitry Stogov
hi Nikita, I don't care about this a lot. I reworked this patch just because it missed few details, and then found and fixed mistake in ext/intl. If you think TypeException is better (I think this makes sense), please implement it on top and commit. Thanks. Dmitry. On Tue, Mar 31, 2015 at 11:07

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-31 Thread Nikita Popov
On Mon, Mar 30, 2015 at 6:06 PM, Dmitry Stogov wrote: > Hi Dan, > > The updated patch is at https://github.com/php/php-src/pull/1205 > > The main difference is in ext/intl. > If you don't see any problems I can commit it. > > I didn't think about the classes you missed. > > Thanks. Dmitry. > I'm

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-31 Thread Dmitry Stogov
Hi Dan, any update? should I commit it? or do you see any problems? Thanks. Dmitry. On Mon, Mar 30, 2015 at 7:06 PM, Dmitry Stogov wrote: > Hi Dan, > > The updated patch is at https://github.com/php/php-src/pull/1205 > > The main difference is in ext/intl. > If you don't see any problems I can

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-30 Thread Dmitry Stogov
Hi Dan, The updated patch is at https://github.com/php/php-src/pull/1205 The main difference is in ext/intl. If you don't see any problems I can commit it. I didn't think about the classes you missed. Thanks. Dmitry. On Fri, Mar 27, 2015 at 7:32 PM, Dan Ackroyd wrote: > On 26 March 2015 at 2

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-28 Thread Pascal Martin, AFUP
Le 15/03/2015 17:09, Dan Ackroyd a écrit : The 'Constructor behaviour of internal classes' RFC is now in voting. Please note, it's the coding standard that is being voted on. If anyone thinks I've implemented the changes in a way that is less awesome then there is no reason the changes couldn't b

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-27 Thread Dan Ackroyd
On 26 March 2015 at 20:19, Dmitry Stogov wrote: Hi Dmitry, > however the patch looks a bit surprising to me. > We have special function to do this - zend_ctor_make_null() and some tricks > in the VM. > I made just a quick look over your patch but didn't find any references to > them. Surprisin

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-26 Thread Dmitry Stogov
Hi Dan, Your RFC is going to be accepted and I support the idea, however the patch looks a bit surprising to me. Actually, returning NULL from constructors wasn't simple :) We have special function to do this - zend_ctor_make_null() and some tricks in the VM. I made just a quick look over your pa

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-15 Thread Michael Wallner
> On 15 03 2015, at 17:09, Dan Ackroyd wrote: > > Hi List, > > The 'Constructor behaviour of internal classes' RFC is now in voting. > Please note, it's the coding standard that is being voted on. If > anyone thinks I've implemented the changes in a way that is less > awesome then there is no r

[PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-15 Thread Dan Ackroyd
Hi List, The 'Constructor behaviour of internal classes' RFC is now in voting. Please note, it's the coding standard that is being voted on. If anyone thinks I've implemented the changes in a way that is less awesome then there is no reason the changes couldn't be improved. Additionally, while wr