Posted by Daniel Loose on 02/20/07 19:17
dear folks,
I'm one more guy having the cannot re-assign $this problem.
someone left a php4 file here containing the lines
| function linkbar()
| {
| if(func_num_args() == 1)
| {
| $this = func_get_arg(0);
| return;
}
...
| }
inside a php4 class definition. func_get_arg(0) in this case delivers
an object - working fine in php4. I struggled a bit with the &
referencing (while not really understanding it and the problem) but
gave up. how must I modify the code to get it to work in php5?
thank you very much!!
daniel
Navigation:
[Reply to this message]
|