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

2015-03-06 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

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

2015-03-06 Thread 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 self", "extends static", or even "extends $someclassname" ? The

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

2015-03-06 Thread Juan Basso
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 some examples on how to reproduce on https://bugs.php.net/bug.php?id=6

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

2015-03-06 Thread Yasuo Ohgaki
Hi all, On Wed, Feb 25, 2015 at 4:06 AM, S.A.N wrote: > Yes, is problem - properties and methods look the same, how to solve > this problem in PHP I do not know. > Perhaps PHP could interpret this code: > $object = > { > 'property' => $value, > 'method' => function (){...} > }; > > AS >

Re: [PHP-DEV] Consistent function names

2015-03-06 Thread Yasuo Ohgaki
Hi Pierre, On Sat, Mar 7, 2015 at 7:18 AM, Pierre Joye wrote: > > Please suggest better/right way. Having namespace is not alternative for > > having consistent names. > > I think I did, and many other. But you seem to be convinced that > consistency in names is the top priority and will suddenl

Re: [PHP-DEV] Consistent function names

2015-03-06 Thread Yasuo Ohgaki
Hi Rowan, On Fri, Mar 6, 2015 at 8:50 AM, Rowan Collins wrote: > On 5 March 2015 22:05:05 GMT, Yasuo Ohgaki wrote: > >Hi Rowan, > > > >On Fri, Mar 6, 2015 at 5:41 AM, Rowan Collins > >wrote: > > > >> Yasuo Ohgaki wrote on 05/03/2015 20:20: > >> > >>> Hi Arvids, > >>> > >>> On Thu, Mar 5, 2015

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

2015-03-06 Thread Stanislav Malyshev
Hi! > Right, this here RFC has been drastically improved. > > https://wiki.php.net/rfc/anonymous_classes > > Anyone got any doubts or troubles at this point? > > It's about 5 days until the vote starts. Couple of points to clarify: 1. Is the new syntax "new class ..." or just "class ..." and

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

2015-03-06 Thread Yasuo Ohgaki
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 fine if all the users read the manual, and only

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

2015-03-06 Thread Yasuo Ohgaki
Hi Jordi, On Thu, Mar 5, 2015 at 7:30 PM, Jordi Boggiano wrote: > On 05/03/2015 08:07, Yasuo Ohgaki wrote: > >> So array functions are subject to be changed. >> >> bool in_array ( mixed $needle , array $haystack [, bool $strict ] ) >> Renamed to array_in() and fix order. >> >> mixed array_se

Re: [PHP-DEV] Consistent function names

2015-03-06 Thread Pierre Joye
On Sat, Mar 7, 2015 at 7:09 AM, Yasuo Ohgaki wrote: > Please suggest better/right way. Having namespace is not alternative for > having consistent names. I think I did, and many other. But you seem to be convinced that consistency in names is the top priority and will suddenly make these APIs ea

Re: [PHP-DEV] Consistent function names

2015-03-06 Thread Yasuo Ohgaki
Hi Ardids, On Fri, Mar 6, 2015 at 8:22 AM, Arvids Godjuks wrote: > Why not take advantage of namespaces and do the new API, building it up > version by version (sure it can't be done in one go), so probably the > extensions gonna follow too. > That allows you to use as OO interface, so do the fu

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

2015-03-06 Thread 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? It's about 5 days until the vote starts. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] ARM64 optimization recommendation

2015-03-06 Thread Evan Hwang
Hi all, I have an access to a Aarch64 machine that will be used as a server. I would like to optimize php code for Aarch64 architecture. I have some questions on this : 1. I tried gprof for building php. Strangely, it worked once and then it didn't worked. What kind of profiling tool are you guys

Re: [PHP-DEV] Make zend_parse_parameters emit E_RECOVERABLE_ERROR

2015-03-06 Thread Patrick ALLAERT
Le lun. 1 sept. 2014 à 20:13, Andrea Faulds a écrit : > > On 1 Sep 2014, at 17:29, Chris Wright wrote: > > > It's also worth noting that the "return NULL on zpp failure" > > convention is not followed to the letter, I have seen places that > > RETURN_FALSE - I can't remember exactly where I have

[PHP-DEV] Pedantic errors (Was: Re: [PHP-DEV] [RFC][VOTE] Improve array to string conversion)

2015-03-06 Thread Patrick ALLAERT
Le lun. 23 févr. 2015 à 17:06, François Laupretre a écrit : > Hi, > > Starting the vote for https://wiki.php.net/rfc/array-to-string. > > Please note that, while the initial RFC proposed both options of either > fully supporting the feature, or disabling it, the voting choices are now : > > - eit

Re: [PHP-DEV] Use behavior thoughts

2015-03-06 Thread Anthony Ferrara
Lee, On Fri, Mar 6, 2015 at 7:06 AM, Lee Davis wrote: > > Hi Anthony. > >This issue that has plagued me in the past, specifically with the use of > traits: > > Error: http://3v4l.org/VFguK > OK: http://3v4l.org/73b86 > > Although when combined with opcache does causes very confusing beha

Re: [PHP-DEV] [RFC][VOTE] Improve array to string conversion

2015-03-06 Thread Patrick ALLAERT
Le jeu. 5 mars 2015 à 23:20, Pascal Martin, AFUP a écrit : > Le 23/02/2015 17:06, François Laupretre a écrit : > > Starting the vote for https://wiki.php.net/rfc/array-to-string. > > Hi, > > We talked about this with other people at AFUP and a great majority of > us agrees that the current behavi

Re: [PHP-DEV] Use behavior thoughts

2015-03-06 Thread Lee Davis
Hi Anthony. This issue that has plagued me in the past, specifically with the use of traits: Error: http://3v4l.org/VFguK OK: http://3v4l.org/73b86 Although when combined with opcache does causes very confusing behaviour, I do worry that removing the error altogether may make it worse fo

[PHP-DEV] PHP 5.5.23RC1 is ready

2015-03-06 Thread Julien Pauli
Hi, PHP 5.5.23RC1 is available for testing. You can download it from https://downloads.php.net/~jpauli/ The Windows binaries are available at http://windows.php.net/qa/ This release contains a number of bugfixes. For the list of bugfixes that you can target in your testing, please refer to the

[PHP-DEV] PHP 5.6.7 RC1 is available for testing

2015-03-06 Thread Ferenc Kovacs
Hello PHP 5.6.7 RC1 is available for testing. You can download it from https://downloads.php.net/~tyrael/ The Windows binaries are available at http://windows.php.net/qa/ This release contains a number of bugfixes. For the list of bugfixes that you can target in your testing, please refer to t

Re: [PHP-DEV] Use behavior thoughts

2015-03-06 Thread Michael Wallner
> > So, I created a PR to remove this error: > https://github.com/php/php-src/pull/1149 > +1 > > Note that there is no BC break here, as it's removing an error condition > today. > > This results in a weird edge case (which is 100% valid, but feels

Re: [PHP-DEV] Use behavior thoughts

2015-03-06 Thread reeze
On 6 March 2015 at 16:35, Alexander Lisachenko wrote: > Hello! > > 2015-03-05 22:40 GMT+03:00 Anthony Ferrara : > > > This requires use to immediately follow namespace declarations: > > > > namespace Foo { > > use Bar; //valid > > } > > namespace Bar { > > use Foo; //valid, second namespa

Re: [PHP-DEV] Use behavior thoughts

2015-03-06 Thread Alexander Lisachenko
Hello! 2015-03-05 22:40 GMT+03:00 Anthony Ferrara : > This requires use to immediately follow namespace declarations: > > namespace Foo { > use Bar; //valid > } > namespace Bar { > use Foo; //valid, second namespace in file > } > namespace Baz { > echo "Hi!"; > use Foo; // Invalid