Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-07 Thread Stanislav Malyshev
Hi! >Message-ID: <54f07fc7.8050...@php.net> >Date: Fri, 27 Feb 2015 15:31:35 +0100 > > Guilherme volunteered to create a new RFC for the Throwable interface > immediately after this RFC is accepted. Sounds good to me :-) I would say create the RFC :) Nothing says we should immediately

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-07 Thread Sebastian Bergmann
Am 23.02.2015 um 19:15 schrieb Nikita Popov: > Voting is open until 2015-03-08. Voting ends today and it looks like the RFC will be accepted. How should we proceed with regards to the comments I made in Message-ID: <54f07fc7.8050...@php.net> Date: Fri, 27 Feb 2015 15:31:35 +0100 Guilher

Re: [PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread Yasuo Ohgaki
Hi all, On Sun, Mar 8, 2015 at 5:41 AM, Stanislav Malyshev wrote: > > I'd like to deprecate function: sizeof() [1][2], which is an alias of > > count(). some people > > expect it return the memory size of the variable. > > Why? So, some people are wrong, why we need to mess with the language to

Re: [PHP-DEV] Re: [RFC] [DISCUSSION] Consistent Function Names

2015-03-07 Thread Yasuo Ohgaki
Hi Rowan, On Sun, Mar 8, 2015 at 8:31 AM, Rowan Collins wrote: > What? That's not the same thing at all. I'm pretty sure those functions > are deprecated *because* we have array callback forms, so you can use > call_user_func to call a method. > > PHP has a well-defined definition of "callable",

Re: [PHP-DEV] Consistent function names

2015-03-07 Thread Yasuo Ohgaki
On Sun, Mar 8, 2015 at 3:39 AM, Rowan Collins wrote: > On 07/03/2015 01:30, Yasuo Ohgaki wrote: > >> Hi Rowan, >> >> On Fri, Mar 6, 2015 at 8:50 AM, Rowan Collins > > wrote: >> >> On 5 March 2015 22:05:05 GMT, Yasuo Ohgaki > > wro

Re: [PHP-DEV] Consistent function names

2015-03-07 Thread Yasuo Ohgaki
Hi Gregory, On Sun, Mar 8, 2015 at 2:12 AM, Grégory Planchat wrote: > Le 07/03/2015 02:39, Yasuo Ohgaki a écrit : > >> We may provide new names and new parameter order in new namespace. >> The difference is "alias" or "namespace" basically. I don't object to use >> namespace for it at all. In fa

Re: [PHP-DEV] Re: [RFC] [DISCUSSION] Consistent Function Names

2015-03-07 Thread Rowan Collins
On 7 March 2015 22:47:48 GMT, Yasuo Ohgaki wrote: >Hi Rowan, > >On Sun, Mar 8, 2015 at 3:35 AM, Rowan Collins >wrote: > >> On 06/03/2015 23:03, Yasuo Ohgaki wrote: >> >>> We have a lot of array_u*() functions such as >>> >>> http://php.net/manual/en/function.array-uintersect-uassoc.php >>> array

Re: [PHP-DEV] Re: [RFC] [DISCUSSION] Consistent Function Names

2015-03-07 Thread Yasuo Ohgaki
Hi Rowan, On Sun, Mar 8, 2015 at 3:35 AM, Rowan Collins wrote: > On 06/03/2015 23:03, Yasuo Ohgaki wrote: > >> We have a lot of array_u*() functions such as >> >> http://php.net/manual/en/function.array-uintersect-uassoc.php >> array array_uintersect_uassoc ( array $array1 , array $array2 [, arr

Re: [PHP-DEV] Re: [RFC] [DISCUSSION] Consistent Function Names

2015-03-07 Thread Yasuo Ohgaki
Hi all, On Sat, Mar 7, 2015 at 7:32 PM, Lester Caine wrote: > On 06/03/15 23:18, Yasuo Ohgaki wrote: > > Hi Lester, > > > > On Thu, Mar 5, 2015 at 8:46 PM, Lester Caine wrote: > > > >> On 05/03/15 09:40, Rowan Collins wrote: > > > > Good point! > > I'll update documents so that main

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-07 Thread Pascal Martin, AFUP
Le 23/02/2015 19:15, Nikita Popov a écrit : Voting on the engine exceptions RFC, which proposes to convert existing fatal and recoverable fatal errors into exceptions, has opened: https://wiki.php.net/rfc/engine_exceptions_for_php7#vote Hi, After discussing the main proposition of this R

Re: [PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread Stanislav Malyshev
Hi! > I'd like to deprecate function: sizeof() [1][2], which is an alias of > count(). some people > expect it return the memory size of the variable. Why? So, some people are wrong, why we need to mess with the language to accommodate them? I don't think it is a good idea. -- Stas Malyshev sma

Re: [PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread Bostjan Skufca
On 7 March 2015 at 20:42, Kalle Sommer Nielsen wrote: > Hi > > Well we could make count()/sizeof() work for strings, so that if: > C:\> php -r "echo sizeof('abc');" > 3 > > although it would not really accomplish much imo., I think it is more > of what background you come from that makes the most

Re: [PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread Kalle Sommer Nielsen
Hi 2015-03-07 18:35 GMT+01:00 Sebastian B.-Hagensen : > Hi, > I don't think the alias make sense and is really misleading and I've > seen sizeof("abc"); often enough (Don't get me wrong that's equally > bad with count, but sizeof encourages that usage, imo). > Having two functions that do exactly

Re: [PHP-DEV] Consistent function names

2015-03-07 Thread Rowan Collins
On 07/03/2015 01:30, Yasuo Ohgaki wrote: Hi Rowan, On Fri, Mar 6, 2015 at 8:50 AM, Rowan Collins > wrote: On 5 March 2015 22:05:05 GMT, Yasuo Ohgaki mailto:yohg...@ohgaki.net>> wrote: >Hi Rowan, > >On Fri, Mar 6, 2015 at 5:41 AM, Rowan Collins

Re: [PHP-DEV] Re: [RFC] [DISCUSSION] Consistent Function Names

2015-03-07 Thread Rowan Collins
On 06/03/2015 23:03, Yasuo Ohgaki wrote: We have a lot of array_u*() functions such as http://php.net/manual/en/function.array-uintersect-uassoc.php array array_uintersect_uassoc ( array $array1 , array $array2 [, array $... ], callable $value_compare_func , callable $key_compare_func ) this can

Re: [PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread Lester Caine
On 07/03/15 17:35, Sebastian B.-Hagensen wrote: > On the other side: Removal of sizeof is doable with a patch release > for almost all projects and shouldn't really require more than 5 to 10 > minutes (+ time to review the diff) for most projects. If taken in conjunction with tidying up the IEEE C

Re: [PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread Sebastian B.-Hagensen
Hi, 2015-03-07 17:41 GMT+01:00 Kalle Sommer Nielsen : > I'm a big -1 on this, while I know it returns the memory size in a C > perspective, I think it makes perfect sense to remain an alias, it > would break lots of applications for a very tiny to nothing gain. I don't think the alias make sense

Re: [PHP-DEV] Consistent function names

2015-03-07 Thread Grégory Planchat
Le 07/03/2015 02:39, Yasuo Ohgaki a écrit : We may provide new names and new parameter order in new namespace. The difference is "alias" or "namespace" basically. I don't object to use namespace for it at all. In fact, I would love to have it even if there is issue like writing extremely difficul

Re: [PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread Kalle Sommer Nielsen
Hi 2015-03-07 16:51 GMT+01:00 reeze : > Hi internals, > > I'd like to deprecate function: sizeof() [1][2], which is an alias of > count(). some people > expect it return the memory size of the variable. > > The doc page's[1] user contributed notes indicate that too. > > What do you think? 'm a bi

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-03-07 Thread Marcio Almada
Hi, 2015-03-07 8:28 GMT-03:00 Robert Stoll : > > > -Ursprüngliche Nachricht- > > Von: Patrick Schaaf [mailto:p...@bof.de] > > Gesendet: Samstag, 7. März 2015 08:22 > > An: Philip Sturgeon > > Cc: internals; Robert Stoll > > Betreff: Re: [PHP-DEV] [RFC] Anonymous Classes > > > > Am 06.03.2

[PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread reeze
Hi internals, I'd like to deprecate function: sizeof() [1][2], which is an alias of count(). some people expect it return the memory size of the variable. The doc page's[1] user contributed notes indicate that too. What do you think? [1] http://php.net/sizeof [2] https://github.com/php/php

Re: [PHP-DEV] Arrays being generated with length and no content on master

2015-03-07 Thread Juan Basso
Great, that was quick. Tested the change with CakePHP tests and it passes now. Thank you. On Sat, Mar 7, 2015 at 3:50 AM, Xinchen Hui wrote: > Hey: > > > On Mar 7, 2015, at 1:23 PM, Juan Basso wrote: > > > > I was testing CakePHP framework with PHP 7 and some tests were failing. > > Digging in

[PHP-DEV] [VOTE] Make empty() a Variadic

2015-03-07 Thread Thomas Punt
Hello PHP Internals! I'd like to put the variadic empty() RFC to vote. RFC: https://wiki.php.net/rfc/variadic_empty Voting will finish in 14 days time on March 21st. Thanks, Tom -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

AW: [PHP-DEV] [RFC] Anonymous Classes

2015-03-07 Thread Robert Stoll
> -Ursprüngliche Nachricht- > Von: Patrick Schaaf [mailto:p...@bof.de] > Gesendet: Samstag, 7. März 2015 08:22 > An: Philip Sturgeon > Cc: internals; Robert Stoll > Betreff: Re: [PHP-DEV] [RFC] Anonymous Classes > > Am 06.03.2015 20:14 schrieb "Philip Sturgeon" : > > > > Right, this here

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-03-07 Thread Lazare Inepologlou
2015-03-07 8:22 GMT+01:00 Patrick Schaaf : > Am 06.03.2015 20:14 schrieb "Philip Sturgeon" : > > > > Right, this here RFC has been drastically improved. > > > > https://wiki.php.net/rfc/anonymous_classes > > > > Anyone got any doubts or troubles at this point? > > Can we / could we do "extends sel

Re: [PHP-DEV] Re: [RFC] [DISCUSSION] Consistent Function Names

2015-03-07 Thread Lester Caine
On 06/03/15 23:18, Yasuo Ohgaki wrote: > Hi Lester, > > On Thu, Mar 5, 2015 at 8:46 PM, Lester Caine wrote: > >> On 05/03/15 09:40, Rowan Collins wrote: > > Good point! > I'll update documents so that main function is prefered name/function > to be > used. >>> This would be f

Re: [PHP-DEV] Arrays being generated with length and no content on master

2015-03-07 Thread Xinchen Hui
Hey: > On Mar 7, 2015, at 1:23 PM, Juan Basso wrote: > > I was testing CakePHP framework with PHP 7 and some tests were failing. > Digging into the issue I found that using compact in a certain way can > cause PHP to create an array with length but no content inside. > > I reported and added so