Title: Deprecated Warning
Last modified: August 30, 2016

---

# Deprecated Warning

 *  [Gary Watts](https://wordpress.org/support/users/tastycarp/)
 * (@tastycarp)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/deprecated-warning-3/)
 * A heads up about a depreciated warning if you have wp-debug on, (The plugin still
   works ok)
 * > Deprecated: Assigning the return value of new by reference is deprecated in/
   > my-host/public_html/wp-content/plugins/exec-php/exec-php.php on line 22
 * Plugin version 4.9 WordPress 4.3.1 host running PHP Version 5.4.43
 * line 22 of exec-php.php is
 *  `$GLOBALS['g_execphp_manager'] =& new ExecPhp_Manager();`
 * any thoughts of a patch or alt plugin that could be used as a drop in replacement??
 * [https://wordpress.org/plugins/exec-php/](https://wordpress.org/plugins/exec-php/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Gary Watts](https://wordpress.org/support/users/tastycarp/)
 * (@tastycarp)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/deprecated-warning-3/#post-6598050)
 * Answering part of my own question after a bit of googling the issue looks to 
   be the usage of =&
 * > $obj =& new MyClass();
   >  The ampersand is not required any more since php 5;
   > you can simply write
   > $obj = new MyClass();
 * removing the & from every file that the error pops up on will see you modding
   lines on exec-php.php as well as admin.php ,ajax.php, cache.php and manager.php
   in the includes dir
 * Doing that gets rid of the debug message and the plugin still works.
 * That said, although this issue is not a deal breaker at the moment it is concerning
   using such an out of date plugin. Any suggestions of a better drop in replacement
   would be most welcome.
 *  [infinustechnology](https://wordpress.org/support/users/koppit/)
 * (@koppit)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/deprecated-warning-3/#post-6598269)
 * Hey tastycarp – I re-uploaded the one that I had created many years ago, due 
   to people emailing me about it. Seems the plugin still does the trick for several
   hundred thousand people, after 7 years of non-development. That’s staying power!
 * Here’s the link:
 * [http://www.codingconcepts.net/exec-php.zip](http://www.codingconcepts.net/exec-php.zip)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Deprecated Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/exec-php.svg)
 * [Exec-PHP](https://wordpress.org/plugins/exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/exec-php/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [infinustechnology](https://wordpress.org/support/users/koppit/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/deprecated-warning-3/#post-6598269)
 * Status: not resolved