Bug: Call-time pass-by-reference

As bugs and suggestions are fixed/implemented/rejected, they will be moved in here.
Post Reply
PatteDePoule
Newbie
Posts: 6
Joined: Wed Apr 27, 2005 11:40 pm

Post by PatteDePoule »

I have this at the top of all pages:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Inetpub\wwwroot\games\promisance\TagParser.php on line 303

Server info:
- Windows Server 2003
- IIS 6
- PHP 4.3.11
- MySql 4.0.23
- Smarty 2.6.9
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

That's not going to change. If you want to get rid of the message, then modify the top of your index.php where it says:

code: Select all

error_reporting(E_ALL ^ E_NOTICE);
//error_reporting(E_ALL);
to:

code: Select all

error_reporting(E_ALL);
:wq
PatteDePoule
Newbie
Posts: 6
Joined: Wed Apr 27, 2005 11:40 pm

Post by PatteDePoule »

I have try this, but I have more messages:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Inetpub\wwwroot\games\promisance\TagParser.php on line 303

Notice: Undefined variable: users in C:\Inetpub\wwwroot\games\promisance\lib\status.php on line 2

Notice: Undefined index: basehref in C:\Inetpub\wwwroot\games\promisance\header.php on line 29

Notice: Use of undefined constant freeland - assumed 'freeland' in C:\Inetpub\wwwroot\games\promisance\lib\status.php on line 29

Notice: Use of undefined constant farms - assumed 'farms' in C:\Inetpub\wwwroot\games\promisance\lib\status.php on line 29

etc.....
but the game work fine,hehe

For the "warning", php.ini say this :
Whether to enable the ability to force arguments to be passed by reference at function call time.  This method is <span style='color:red'>deprecated</span>  and is likely to be <span style='color:red'>unsupported in future versions</span> 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).
FAF will may not be compatible with future version of php???

Where TAGPARSER is use?
sh0e
Forum Maniac
Posts: 290
Joined: Mon Apr 19, 2004 6:13 pm

Post by sh0e »

Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members