Re: [PHP-DEV] [PHP-CVS] com php-src: Faster sorting algo: UPGRADING Zend/Makefile.am Zend/tests/methods-on-non-objects-usort.phpt Zend/zend_API.c Zend/zend_hash.c Zend/zend_hash.h Zend/zend_ini.c Zend

2015-01-16 Thread Simon J Welsh
That’s an invalid comparison function. It causes the current usort to reverse sort the array and I see no problem with that changing (you’re saying that a value for $a less than $b is in fact greater than it, and a value of $b less than or equal to $a is equal to it). > On 17/01/2015, at 06:17,

Re: [PHP-DEV] [RFC][Vote] Return Types

2015-01-15 Thread Simon J Welsh
> On 16/01/2015, at 18:46, Yasuo Ohgaki wrote: > > Hi Levi, > > On Wed, Jan 14, 2015 at 6:18 PM, Levi Morrison wrote: > >> [1]: https://wiki.php.net/rfc/return_types#vote >> > > I read the RFC quickly and could not find closure syntax example. > > function():array use ($var) {} > > or >

Re: [PHP-DEV] [RFC] Skipping parameters take 2

2015-01-14 Thread Simon J Welsh
> On 15/01/2015, at 06:33, Marcio Almada wrote: > > Marc Bennewitz, Stas, > >> But I think adding "default" as new keyword is a big BC break! >> I personally also don't like it and asked myself why can't the parameter > simply skipped? > > Default is already a reserved word AFAIK. But I've bee

Re: [PHP-DEV] __invokeStatic() method

2013-03-16 Thread Simon J Welsh
On 17/03/2013, at 8:33 AM, Daniele Orlando wrote: > Hi List, > > I'm interested in proposing an RFC and I would know your opinion. > > === Current Situation === > Since PHP 5.3 we can use an object instance, who defines the __invoke() > method, as a callable object. > Example: > > // PHP Code.

Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars

2012-09-13 Thread Simon J Welsh
On 13/09/2012, at 8:28 PM, Lars Strojny wrote: > Hi Dmitry, > > Am 13.09.2012 um 10:17 schrieb Dmitry Stogov : > [...] >> I think the syntax is wired. >> Instead of classname::class I would prefer something like class(classname). > > Wouldn’t this look too much like a function with all the impl

Re: [PHP-DEV] common issue with version_compare()

2012-07-20 Thread Simon J Welsh
On 21/07/2012, at 10:22 AM, Hartmut Holzgraefe wrote: > On 07/20/2012 11:07 PM, Stas Malyshev wrote: >> 1.0.0 and 1.0 are different things. If you want to make a comparison >> that takes into account only two components, you can just cut them both >> to two components, then compare. > > it is ha

Re: [PHP-DEV] [RFC] skipping optional parameters

2012-04-17 Thread Simon J Welsh
On 18/04/2012, at 10:54 AM, Stas Malyshev wrote: > Hi! > > One of the annoying things I've encountered in working with PHP was > dealing with functions having long optional parameter lists, especially > if you need to change only the last one - you have to copy all the > defaults. Full named para

Re: [PHP-DEV] Autotests: Access denied for user 'root'@'localhost' (using password: NO)

2011-08-17 Thread Simon J Welsh
On 18/08/2011, at 10:46 AM, Reindl Harald wrote: > Wouldn't it be a good idea to specify here a user/pwd/database for > build-systems without force them open root without password? > > SKIP mysql_get_host_info() [ext/mysql/tests/mysql_get_host_info.phpt] reason: > Can't connect to MySQL Server -