Re: call_user_func problem
| From: | faeton | Date: | Sat, 01 Dec 2001 07:45:17 +0000 |
| Subject: | Re: call_user_func problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76301@lists.php.net to get a copy of this message | ||
Hello C,
That means that you should create a .htaccess file containing that:
php_value allow_call_time_pass_reference 1
That should work :)
C> Prior to 4.0.6 it worked fine, however, now when I try:
C> $result = call_user_func("foo", &$bar);
C> function foo( &$bar ) {
C> $bar .= 'foobar';
C> return 1;
C> }
C> I get this:
C> Warning: Call-time pass-by-reference has been deprecated - argument passed
C> by value; If you would like to pass it by reference, modify the declaration
C> of call_user_func(). If you would like to enable call-time
C> pass-by-reference, you can set allow_call_time_pass_reference to true in
C> your INI file. However, future versions may not support this any longer.
C> Does that mean I can't pass by reference anymore? I kinda need to (the two
C> functions above are not my actual functions btw)....
------------------------------------------------
Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) faeton@xemichat.com www.xemichat.com
::: Слоны по деpевьям не лазают. Они могyт, но их ломает. :::