Title: PHP 7 Compatibility issue &#8211; Constructor using PHP4 Style
Last modified: September 1, 2016

---

# PHP 7 Compatibility issue – Constructor using PHP4 Style

 *  [Kimberly](https://wordpress.org/support/users/amiga500/)
 * (@amiga500)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-7-compatibility-issue-constructor-using-php4-style/)
 * /inc/widget.php
 * – Deprecated PHP4 style constructor are not supported since PHP7
 * I figure
 *     ```
       function wp_fanzone_recent_posts() {
           parent::__construct( 'wp_fanzone_recent_posts', $name = 'FanZone Recent Post' );
       }
       ```
   
 * should be changed to:
 *     ```
       function __construct() {
            $this->wp_fanzone_recent_posts();
       }
   
       function wp_fanzone_recent_posts() {
       	parent::__construct( 'wp_fanzone_recent_posts', $name = 'FanZone Recent Post' );
       	}
       ```
   

The topic ‘PHP 7 Compatibility issue – Constructor using PHP4 Style’ is closed to
new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/wp-fanzone/3.2/screenshot.png)
 * WP FanZone
 * [Support Threads](https://wordpress.org/support/theme/wp-fanzone/)
 * [Active Topics](https://wordpress.org/support/theme/wp-fanzone/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/wp-fanzone/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/wp-fanzone/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Kimberly](https://wordpress.org/support/users/amiga500/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/php-7-compatibility-issue-constructor-using-php4-style/)
 * Status: not resolved