classes and reference in php 4.x

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
class test()
    function bob()
        $this->var = '';
         // why is $this->var still '' ??   in php 5 it's 'not empty'

     $test->var = 'not empty';

how can I fix / get around problem?

Re: classes and reference in php 4.x

I was actually doing call_user_func('outsidefunc',$this);
As the documentation states, parameters are not pass via reference
dunno why it works in php 5 then

Site Timeline