Re: [PHP-DEV] In memory support for openssl_pkcs7_*

2010-07-16 Thread Jille Timmermans
For the record: I created a proof-of-concept patch which changes openssl_pkcs7_sign() to use the input filename as a string instead as a filename. Paul has tested this and it seems to work. I don't know what the best way is to go from here. We could add an extra argument to all those functions

Re: [PHP-DEV] [PATCH] string_offset access optimization

2010-07-16 Thread Stas Malyshev
Hi! $str = "abs"; var_dumo($str[1][0]); I think it's not a problem at all. "b" makes sense because "abs"[1] -> "b" and "b"[0] -> "b". Totally makes sense, but it'd be a bit strange that $str[1][0] works but $str[1][0] = "a" does not. -- Stanislav Malyshev, Software Architect SugarCRM: htt

Re: [PHP-DEV] In memory support for openssl_pkcs7_*

2010-07-16 Thread Pierre Joye
hi, On Fri, Jul 16, 2010 at 9:45 AM, Jille Timmermans wrote: > For the record: I created a proof-of-concept patch which changes > openssl_pkcs7_sign() to use the input filename as a string instead as a > filename. Paul has tested this and it seems to work. > > I don't know what the best way is to

Re: [PHP-DEV] [PATCH] string_offset access optimization

2010-07-16 Thread Ferenc Kovacs
On Fri, Jul 16, 2010 at 9:47 AM, Stas Malyshev wrote: > Hi! > >> $str = "abs"; >> var_dumo($str[1][0]); >> >> I think it's not a problem at all. >> "b" makes sense because "abs"[1] ->  "b" and "b"[0] ->  "b". > > Totally makes sense, but it'd be a bit strange that $str[1][0] works but > $str[1][0]

Re: [PHP-DEV] [PATCH] string_offset access optimization

2010-07-16 Thread Dmitry Stogov
Hi Stas, On 07/16/2010 11:47 AM, Stas Malyshev wrote: Hi! $str = "abs"; var_dumo($str[1][0]); I think it's not a problem at all. "b" makes sense because "abs"[1] -> "b" and "b"[0] -> "b". Totally makes sense, but it'd be a bit strange that $str[1][0] works but $str[1][0] = "a" does not. $

Re: [PHP-DEV] In memory support for openssl_pkcs7_*

2010-07-16 Thread Paul van Brouwershaven
Op 16-7-2010 9:54, Pierre Joye schreef: > Can you open a feature request for these changes/features please? So I > won't lost track of them. http://bugs.php.net/bug.php?id=52356 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Unintuitive array_combine() behaviour

2010-07-16 Thread Richard Quadling
On 16 July 2010 02:42, Joel Perras wrote: > array_combine(array(), array()) triggers an E_WARNING and returns > false, instead of simply returning an empty array with no triggered > warning. > > This is not a bug, but was intentionally written as such - see > ext/standard/array.c around lines 4480