At 17:32 08.11.2002, Tim Molendijk spoke out and said:
--------------------[snip]--------------------
>why do you think it won't be supported by future versions? all i do is
>passing an object by reference. because in this case this function always
>should accept its argument as a reference and therefore is bad programming
>habit does not mean the php construction is bad or weird!?!
--------------------[snip]-------------------- 

This is clearly said in your PHP.ini file:

; Whether to enable the ability to force arguments to be passed by reference
; at function call time.  This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend.  The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration.  You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On

...god has spoken :)

I'd rather have the abilty to pass A reference like "foo(&$a)" and have the
opportunity to choose at runtime if I want to use a reference here or not,
but it's how they say...


-- 
   >O Ernest E. Vogelsinger 
   (\) ICQ #13394035 
    ^ http://www.vogelsinger.at/

Reply via email to