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 new works

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 pierre@gmail.com 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

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 j.boggi...@seld.be 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

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 ua.san.a...@gmail.com 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 (){...}

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 rowan.coll...@gmail.com wrote: On 5 March 2015 22:05:05 GMT, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi Rowan, On Fri, Mar 6, 2015 at 5:41 AM, Rowan Collins rowan.coll...@gmail.com wrote: Yasuo Ohgaki wrote on 05/03/2015 20:20:

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 les...@lsces.co.uk 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 the

Re: [PHP-DEV] Use behavior thoughts

2015-03-06 Thread Anthony Ferrara
Lee, On Fri, Mar 6, 2015 at 7:06 AM, Lee Davis leedavi...@gmail.com 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

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 mail...@pascal-martin.fr 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

[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 franc...@php.net 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

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

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...@ajf.me a écrit : On 1 Sep 2014, at 17:29, Chris Wright c...@daverandom.com 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

[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

[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

[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

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

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 arvids.godj...@gmail.com 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

Re: [PHP-DEV] Consistent function names

2015-03-06 Thread Pierre Joye
On Sat, Mar 7, 2015 at 7:09 AM, Yasuo Ohgaki yohg...@ohgaki.net 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

[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

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

2015-03-06 Thread Patrick Schaaf
Am 06.03.2015 20:14 schrieb Philip Sturgeon pjsturg...@gmail.com: 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

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 jrba...@gmail.com 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

Re: [PHP-DEV] Use behavior thoughts

2015-03-06 Thread Alexander Lisachenko
Hello! 2015-03-05 22:40 GMT+03:00 Anthony Ferrara ircmax...@gmail.com: 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; //

Re: [PHP-DEV] Use behavior thoughts

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

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 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 odd):