View Single Post
Old 05-11-2009, 05:41 PM   #6 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

This line is deprecated in PHP5:
PHP Code:
self::$instance = &new self() 
In favor of this:
PHP Code:
self::$instance = new self() 
As objects get passed around by reference auto-magically in PHP5.

That code produces a PHP strict warning:
Code:
Assigning the return value of new by reference is deprecated
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote