On 9 Mar, 2012, at 11:20 PM, Lazare Inepologlou <linep...@gmail.com> wrote:
> Type casting combined with passing by reference is problematic in many > ways. Just an example: > > fuction foo( string & $buffer) { ... } > foo( $my_buffer ); > > Here, $my_buffer has just been declared, so it is null. Should this be an > error? I don't know! So, I think that that passing by reference should not > be (immediately) supported. > Strictly speaking, if you add a type to a referenced variable in that way it's only logical that you expect it to have a proper value when the function is called. After all, it's not an output type declaration :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php