Re: [PHP-DEV] substr/array_slice in []

2007-10-07 Thread Emil Hernvall
On a related note. Code like: $foo = array("a" => range(1,10), "b" => range(11,20)); print_r($foo[][0]); results in Fatal error: Cannot use [] for reading in Command line code on line 3 It would be incredibly useful when handling regular two-dimensional database-resultsets. Essentially, what I'

Re: [PHP-DEV] substr/array_slice in []

2007-10-07 Thread Rasmus Lerdorf
Emil Hernvall wrote: > On a related note. Code like: > > $foo = array("a" => range(1,10), "b" => range(11,20)); > print_r($foo[][0]); > > results in > > Fatal error: Cannot use [] for reading in Command line code on line 3 > > It would be incredibly useful when handling regular two-dimensional

Re: [PHP-DEV] PHP_5_3 Branched

2007-10-07 Thread Ryan Panning
Hi, what are the chances this patch can be committed to the 5.2.x branch? I'm working on a project which can benefit from this patch but 5.3 sounds to be a ways out. Thanks, Ryan Panning Etienne Kneuss wrote: Hello, Thanks! I've that dynamic access of static members patch that is waiting to

Re: [PHP-DEV] PHP_5_3 Branched

2007-10-07 Thread Johannes Schlüter
On Sun, 2007-10-07 at 19:04 -0500, Ryan Panning wrote: > Hi, what are the chances this patch can be committed to the 5.2.x > branch? I'm working on a project which can benefit from this patch but > 5.3 sounds to be a ways out. Zero. 5.2 is a stable branch which can't get any new language feature

Re: [PHP-DEV] substr/array_slice in []

2007-10-07 Thread Antony Dovgal
On 08.10.2007 03:44, Rasmus Lerdorf wrote: >> $result = $pdo->fetchAll(PDO::FETCH_ASSOC); >> $result = array_combine(result[]['my_id'], $result); >> >> If I prepared a patch that made this possible, would it be considered >> for inclusion? Is there any issues I've overlooked or other >> objections