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] Run-time taint support proposal

2006-12-15 Thread Emil Hernvall
(I realize that I haven't got any karma here. Just want to offer a users point of view. :)) I think this would make a great addition. Just not for educational purposes, but also to help experienced developers avoid missing holes. Ilia wrote: safe_mode is/was off by default to, and yet a good c

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-13 Thread Emil Hernvall
Talking about type hinting. It would be nice to be able to declare variables as a certain type once and for all (like c, although optional). I don't if this has been discussed and dismissed before, and if that is the case, please don't kill me. You're just brainstorming anyway, right? :) Emil --