Re: [PHP-DEV] openssl_(en|de)crypt missing IV

2010-05-17 Thread Pierre Joye
hi Sara, On Tue, May 18, 2010 at 3:53 AM, Sara Golemon wrote: > I was just looking through the implementation of openssl_encrypt() (and > openssl_decrypt()) today because I need to make some encrypted payloads, but > the prototype didn't have anywhere to place an initialization vector. > > On ope

Re: [PHP-DEV] openssl_(en|de)crypt missing IV

2010-05-17 Thread Tjerk Anne Meesters
On Tue, May 18, 2010 at 10:19 AM, Davey Shafik wrote: > The least disruptive change would be to have it as the last arg, and default > to the current all-null value. > > Perhaps you could do this and add a warning akin to the date.timezone if none > is passed? > > Having said that, I don't think

Re: [PHP-DEV] openssl_(en|de)crypt missing IV

2010-05-17 Thread Davey Shafik
The least disruptive change would be to have it as the last arg, and default to the current all-null value. Perhaps you could do this and add a warning akin to the date.timezone if none is passed? Having said that, I don't think the disruption would be too bad, I haven't seen much use of the o

[PHP-DEV] openssl_(en|de)crypt missing IV

2010-05-17 Thread Sara Golemon
I was just looking through the implementation of openssl_encrypt() (and openssl_decrypt()) today because I need to make some encrypted payloads, but the prototype didn't have anywhere to place an initialization vector. On opening ext/openssl/openssl.c, I noticed line 4620 which simply hardcode

Re: [PHP-DEV] Re: Closure local return

2010-05-17 Thread mathieu.suen
On 05/03/2010 05:42 PM, Christian Schneider wrote: mathieu.suen wrote: May be it could be interesting to have a syntax for returning from the define scope. For example. $findedElment = $myList->selectIfAbsent($fooo, function(){ return 'No item founded'; //Retrun from the define scope }