[PHP-DEV] Re: what is the rule of merging fix to release branch?

2012-06-17 Thread Dmitry Stogov
On 06/17/2012 09:36 AM, Stas Malyshev wrote: Hi! there comes some bug of a already fixed issue (PHP5.4.4) the fix(#61998) is here https://github.com/php/php-src/commit/90e23107a2acba1fd53b7e799372eb9f24194a56 but seems this fix is not merged into 5.4.4 when it was released?

Re: [PHP-DEV] what is the rule of merging fix to release branch?

2012-06-17 Thread Laruence
On Sun, Jun 17, 2012 at 6:45 PM, Johannes Schlüter wrote: > On Sun, 2012-06-17 at 13:20 +0800, Laruence wrote: >> Hi: >>     there comes some bug of a already fixed issue (PHP5.4.4) >> >>     the fix(#61998)  is here >> https://github.com/php/php-src/commit/90e23107a2acba1fd53b7e799372eb9f24194a56

Re: [PHP-DEV] Support negative indexes for arrays and strings

2012-06-17 Thread Lars Strojny
Hi Marc, Am 17.06.2012 um 21:53 schrieb Marc Easen: [...] > Numerical keyed array: > >$a = array('foo', 'bar', 'baz'); >$a[0] === 'foo' > > I would expect: > >$a[-1] === 'baz'; > > An string keyed array: > >$b = array('foo' => 1, 'bar' => 2, 'baz' => 3); >$b[0] === 1; >

Re: [PHP-DEV] Adding a simple API for secure password hashing?

2012-06-17 Thread Pierre Joye
hi, On Sun, Jun 17, 2012 at 3:58 PM, Alexey Zakhlestin wrote: > I guess SCrypt binding could be implemented. > http://www.tarsnap.com/scrypt.html Using yet another dependency for that? Not good. > That's the best available option at the moment. > http://stackoverflow.com/questions/1226513/what

Re: [PHP-DEV] How hard should PHP try to finish a script?

2012-06-17 Thread John LeSueur
On Sun, Jun 17, 2012 at 1:06 PM, Karoly Negyesi wrote: > Hi, > > PHP often throws fatal errors when it could throw an exception. > > Take PHP Fatal error: Non-abstract method foo::bar() must contain > body this error for example. It would be possible to mark this class > as 'invalid' instead an

Re: [PHP-DEV] Support negative indexes for arrays and strings

2012-06-17 Thread Marc Easen
Hi Lars, I don't think there needs to be a new operator, as it is possible to achieve this behaviour without adding a new language construct. The odd thing with PHP as I'm sure you are aware of is that arrays can be either a lists or a dictionary. This is where this becomes quite difficult to

Re: [PHP-DEV] How hard should PHP try to finish a script?

2012-06-17 Thread sam . e . giles
Hi, I think the example of the abstract method not containing a body is a bad example, as it is fatal and would normally be caught at compilation in a compiled language. I think these sorts of errors shouldn't be catchable, although, I can see instances where it could be a useful interface but

[PHP-DEV] How hard should PHP try to finish a script?

2012-06-17 Thread Karoly Negyesi
Hi, PHP often throws fatal errors when it could throw an exception. Take PHP Fatal error: Non-abstract method foo::bar() must contain body this error for example. It would be possible to mark this class as 'invalid' instead and when doing a new foo , throw an exception. Or if you try really har

Re: [PHP-DEV] Adding a simple API for secure password hashing?

2012-06-17 Thread Alexey Zakhlestin
On 14.06.2012, at 1:31, Nikita Popov wrote: > So, wouldn't it be better if PHP provided an easy to use API for > secure password hashes natively? So you just have to call a single > function, which magically handles everything for you (like salt > generation). > > A simple sample API could be tw

Re: [PHP-DEV] what is the rule of merging fix to release branch?

2012-06-17 Thread Johannes Schlüter
On Sun, 2012-06-17 at 13:20 +0800, Laruence wrote: > Hi: > there comes some bug of a already fixed issue (PHP5.4.4) > > the fix(#61998) is here > https://github.com/php/php-src/commit/90e23107a2acba1fd53b7e799372eb9f24194a56 > > but seems this fix is not merged into 5.4.4 when it was