PDA

View Full Version : Deprecated Warning



Icemann3000
03-07-2010, 09:39 AM
Hi,

every time i access the first time the Links - i get this PHP Deprecated Information:

Deprecated: Assigning the return value of new by reference is deprecated in \wwwdoc\links\links_global.php on line 44

Please, could you fix this - i havenīt checked the source code - but it is normally a small "&" who makes the warning.

Iīve been using PHP 5.3. but the deprecated Information also affects normally the PHP 5.2 Builds.

Best regards,
Michael

Brian
03-08-2010, 10:59 AM
I haven't seen any other reports like this, so it sounds more like this may just be a new issue with PHP 5.3. It doesn't look like the reference there is really necessary though, so you should be able to solve the issue by looking in your links_global.php file for this code:

$vba_links =& new vba_links();

And replace with this:

$vba_links = new vba_links();
(just removing the & as you stated)

Our Sponsors
 

Icemann3000
03-10-2010, 03:19 PM
It isnīt a PHP 5.3 Feature - this is since PHP 5.2.

Correct - by removing the & the "Notice" disappears.

You normally donīt see or hear this, because normally the ErrorReporting of PHP is configured without "NOTICE".

If you turn on NOTICE in Error Reporting - you will see it also on PHP 5.2

Thanks a lot.