Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API

2012-07-03 Thread Anthony Ferrara
Richard, > There is also the case of an app that simple shouldn't run with the > single default, but could pick and choose suitable algorithm from a > list of defaults, while still honoring whatever is in the .ini file > instead of going rogue with some other algorithm. I disagree there. I think

Re: [PHP-DEV] Re: Adding Simplified Password Hashing API

2012-07-03 Thread Ángel González
On 03/07/12 18:21, Anthony Ferrara wrote: >> 2) I'd like to be able to check wether a stored password uses an outdated > algorithm and update the hash in that case. For that I'd need either a > function to extract the salt from a hash to pass it to password_hash() and > compare the result with the

[PHP-DEV] Re: Adding Simplified Password Hashing API

2012-07-03 Thread Christian Schneider
Am 03.07.2012 um 18:21 schrieb Anthony Ferrara: > >> know you didn't like PASSWORD_MOST_SECURE. So what about keeping > >> PASSWORD_DEFAULT as a moving target, documented, and just making the > >> second parameter (algo) to password_hash required? That way users > > > > To be honest I'm not sure of

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Arvids Godjuks
Could be, xcache is definetly dummer in features and it is its feature. I guess it helps it to keep up with releases. I will investigate this today, maybe get some interesting results worth to share here. 03.07.2012 16:54 пользователь "Rasmus Lerdorf" написал: > On 07/03/2012 09:49 AM, Arvids God

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Arvids Godjuks
Just to be clear - all 3 major opcode cachers i know (zend optimizer excluded - have no idea what he has) have that shared memory cache with almost identical API. Some have extended functionality (xcache has xcache_isset(), haven't seen that in others, but have to confess i haven't been looking for

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Rasmus Lerdorf
On 07/03/2012 09:49 AM, Arvids Godjuks wrote: > One one side it's good to know i'm not wrong, on the other hand it's sad > in this case. > Sure about one thing - xcache is worth looking at and may be a better > choise than APC and has better potential. > One thing sure - I haven't heard anyone comp

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Arvids Godjuks
One one side it's good to know i'm not wrong, on the other hand it's sad in this case. Sure about one thing - xcache is worth looking at and may be a better choise than APC and has better potential. One thing sure - I haven't heard anyone complaining about xcache. And heard many complains about AP

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Rasmus Lerdorf
On 07/03/2012 08:17 AM, Pierre Joye wrote: > I for one would like to kill all the legacy features or too specific > features which are really unusable by any common developers. > > Other developers may disagree but it makes very hard to maintain APC. There are really just two big features in APC.

[PHP-DEV] Re: Adding Simplified Password Hashing API

2012-07-03 Thread Anthony Ferrara
Christian, > Hi Anthony, > I tried sending this to intern...@php.net but it seems it didn't get through... Replying on list. >> know you didn't like PASSWORD_MOST_SECURE. So what about keeping >> PASSWORD_DEFAULT as a moving target, documented, and just making the >> second parameter (algo) to p

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Tom Boutell
The ability to store your own data in the APC cache is a feature that does get used a lot in the Symfony framework world because of the availability of the sfAPCCache and whatever its Symfony 2 equivalent is. It's popular with folks who haven't felt the need to set up Redis or some other external c

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Lester Caine
> > It is still the case. > > > > I for one would like to kill all the legacy features or too specific > > features which are really unusable by any common developers. > > > > Other developers may disagree but it makes very hard to maintain APC. > > Perhaps that indicates it's time to pull the c

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Anthony Ferrara
Pierre, > It is still the case. > > I for one would like to kill all the legacy features or too specific > features which are really unusable by any common developers. > > Other developers may disagree but it makes very hard to maintain APC. Perhaps that indicates it's time to pull the core of AP

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Arvids Godjuks
There are alternative opcode cachers besides APC. For example xcache, for me, just works when APC is still catching up. I remember someone writing about APC that it is overly compex internally and due to that hard to keep up with the changes in the PHP, maybe that is not the case now. But looking a

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Pierre Joye
hi, On Tue, Jul 3, 2012 at 5:12 PM, Arvids Godjuks wrote: > There are alternative opcode cachers besides APC. For example xcache, for > me, just works when APC is still catching up. > I remember someone writing about APC that it is overly compex internally > and due to that hard to keep up with t

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Pierre Joye
hi Tom, On Tue, Jul 3, 2012 at 4:49 PM, Tom Boutell wrote: > Given the impracticality of using PHP without APC, it would be nice if > it were part of the main "if these fail, it's not ready" test suite. > But I suppose that's just administering beatings until morale improves > (: That's why lat

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Tom Boutell
Given the impracticality of using PHP without APC, it would be nice if it were part of the main "if these fail, it's not ready" test suite. But I suppose that's just administering beatings until morale improves (: On Tue, Jul 3, 2012 at 10:20 AM, Rasmus Lerdorf wrote: > On 07/03/2012 07:13 AM, To

Re: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Rasmus Lerdorf
On 07/03/2012 07:13 AM, Tom Boutell wrote: > This one: > > *** glibc detected *** /usr/local/bin/php-cgi: double free or > corruption (out): 0x7f9d6ce2c080 *** > === Backtrace: = > /lib/libc.so.6(+0x77806)[0x7f9d679be806] > /lib/libc.so.6(cfree+0x73)[0x7f9d679c50d3] > /usr/local/bi

[PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-07-03 Thread Tom Boutell
This one: *** glibc detected *** /usr/local/bin/php-cgi: double free or corruption (out): 0x7f9d6ce2c080 *** === Backtrace: = /lib/libc.so.6(+0x77806)[0x7f9d679be806] /lib/libc.so.6(cfree+0x73)[0x7f9d679c50d3] /usr/local/bin/php-cgi(destroy_zend_class+0x23d)[0x749f5d] /usr/local/bi

Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API

2012-07-03 Thread Anthony Ferrara
Pierre, >> I know you didn't like PASSWORD_MOST_SECURE. So what about keeping >> PASSWORD_DEFAULT as a moving target, documented, and just making the >> second parameter (algo) to password_hash required? That way users >> could choose between PASSWORD_BCRYPT and PASSWORD_DEFAULT. >> >> That way, ov

Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API

2012-07-03 Thread Pierre Joye
hi Anthony, On Tue, Jul 3, 2012 at 1:53 PM, Anthony Ferrara wrote: > Pierre, > > Getting back to the PASSWORD_DEFAULT discussion... > > I know you didn't like PASSWORD_MOST_SECURE. So what about keeping > PASSWORD_DEFAULT as a moving target, documented, and just making the > second parameter (alg

Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API

2012-07-03 Thread Anthony Ferrara
Pierre, Getting back to the PASSWORD_DEFAULT discussion... I know you didn't like PASSWORD_MOST_SECURE. So what about keeping PASSWORD_DEFAULT as a moving target, documented, and just making the second parameter (algo) to password_hash required? That way users could choose between PASSWORD_BCRYPT

Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API

2012-07-03 Thread Anthony Ferrara
Pierre, > Simply by not allowing to change it. If one does not like it, it can > pass the option value as he wishes. > > An ini setting for that sounds wrong to me. Alright. I've pulled the ini option from the fork, and have updated the RFC to the same... Anthony -- PHP Internals - PHP Runtime

Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API

2012-07-03 Thread Nikita Popov
On Tue, Jul 3, 2012 at 10:42 AM, Pierre Joye wrote: > hi! > > On Tue, Jul 3, 2012 at 1:23 AM, Anthony Ferrara wrote: > >> Well, if not for an ini parameter, what way would you suggest to alter >> the default bcrypt cost? (seriously, I'm open to suggestions)... > > Simply by not allowing to change

Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API

2012-07-03 Thread Pierre Joye
hi! On Tue, Jul 3, 2012 at 1:23 AM, Anthony Ferrara wrote: > Well, if not for an ini parameter, what way would you suggest to alter > the default bcrypt cost? (seriously, I'm open to suggestions)... Simply by not allowing to change it. If one does not like it, it can pass the option value as he