Title: Php 7.2 Compatibility
Last modified: February 28, 2018

---

# Php 7.2 Compatibility

 *  Resolved [mariushosting](https://wordpress.org/support/users/marius84/)
 * (@marius84)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-9/)
 * Hello im using PHP Compatibility Checker Plugin and see Autoptimize have some
   deprecated functions on php 7.2 here is the log file:
 * FILE: …html/wp-content/plugins/autoptimize/classes/external/php/minify-2.1.7-
   jsmin.php
    ———————————————————————————————————————————— FOUND 0 ERRORS AND 1 
   WARNING AFFECTING 1 LINE ———————————————————————————————————————————— 107 | WARNING
   | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2 ————————————————————————————————————————————
 * FILE: …html/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-
   jsmin.php
    ———————————————————————————————————————————— FOUND 0 ERRORS AND 1 
   WARNING AFFECTING 1 LINE ———————————————————————————————————————————— 107 | WARNING
   | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2 ————————————————————————————————————————————
 * FILE: ….html/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php
    ———————————————————————————————————————-
   FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ———————————————————————————————————————-
   96 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an
   anonymous function instead 481 | WARNING | Function create_function() is deprecated
   since PHP 7.2; Use an anonymous function instead ———————————————————————————————————————-
 * FILE: …html/wp-content/plugins/autoptimize/classes/autoptimizeBase.php
    ——————————————————————————————————————–
   FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES ——————————————————————————————————————–
   146 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an
   anonymous function instead 163 | WARNING | Function create_function() is deprecated
   since PHP 7.2; Use an anonymous function instead 179 | WARNING | Function create_function()
   is deprecated since PHP 7.2; Use an anonymous function instead 195 | WARNING 
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead 211 | WARNING | Function create_function() is deprecated since PHP 7.2;
   Use an anonymous function instead 227 | WARNING | Function create_function() 
   is deprecated since PHP 7.2; Use an anonymous function instead 303 | WARNING 
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead ——————————————————————————————————————–
    -  This topic was modified 8 years, 2 months ago by [Andrew Nevins](https://wordpress.org/support/users/anevins/).
    -  This topic was modified 8 years, 2 months ago by [mariushosting](https://wordpress.org/support/users/marius84/).

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-9/#post-10024911)
 * the create_functions() will be removed in AO 2.4 [@marius84](https://wordpress.org/support/users/marius84/)
 * > INI directive ‘mbstring.func_overload’
 * rather is a false positive, as the code in question (which is actually a part
   of [MrClay’s minify](https://github.com/mrclay/minify/)) reads;
 *     ```
       if (function_exists('mb_strlen') && ((int)ini_get('mbstring.func_overload') & 2))
       ```
   
 * meaning that if `ini_get('mbstring.func_overload')` is not available any more,
   the code in the if statement is (and should not) be executed any more.
 * hope this clarifies,
    frank
 *  Thread Starter [mariushosting](https://wordpress.org/support/users/marius84/)
 * (@marius84)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-9/#post-10025519)
 * Thank you Frank!
 *  [politicske](https://wordpress.org/support/users/politicske/)
 * (@politicske)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-9/#post-10026377)
 * For me I found this (guess it’s quite similar). Good plugin btw. Kudos!
 *     ```
       FILE: /public_html/wp-content/plugins/autoptimize/classes/autoptimizeBase.php
       -----------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
       -----------------------------------------------------------------------------------------------------------
        146 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
        163 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
        179 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
        195 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
        211 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
        227 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
        303 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
       -----------------------------------------------------------------------------------------------------------
   
       FILE: /public_html/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php
       -----------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
       -----------------------------------------------------------------------------------------------------------
         96 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
        481 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
       -----------------------------------------------------------------------------------------------------------
   
       FILE: /public_html/wp-content/plugins/autoptimize/classes/external/php/minify-2.1.7-jsmin.php
       -----------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       -----------------------------------------------------------------------------------------------------------
        107 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
       -----------------------------------------------------------------------------------------------------------
   
       FILE: /public_html/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php
       -----------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       -----------------------------------------------------------------------------------------------------------
        107 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
       -----------------------------------------------------------------------------------------------------------
       ```
   
 *  [weddje](https://wordpress.org/support/users/weddje/)
 * (@weddje)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-7-2-compatibility-9/#post-10068176)
 * Hi I found these warnings through the tester:
 * FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    ———————————————————————————————————–
   146 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an
   anonymous function instead 163 | WARNING | Function create_function() is deprecated
   since PHP 7.2; Use an anonymous function instead 179 | WARNING | Function create_function()
   is deprecated since PHP 7.2; Use an anonymous function instead 195 | WARNING 
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead 211 | WARNING | Function create_function() is deprecated since PHP 7.2;
   Use an anonymous function instead 227 | WARNING | Function create_function() 
   is deprecated since PHP 7.2; Use an anonymous function instead 303 | WARNING 
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead ———————————————————————————————————–
 * FILE: /www/web_259/public/wp-content/plugins/autoptimize/classes/autoptimizeStyles.
   php
    ———————————————————————————————————– FOUND 0 ERRORS AND 2 WARNINGS AFFECTING
   2 LINES ———————————————————————————————————– 96 | WARNING | Function create_function()
   is deprecated since PHP 7.2; Use an anonymous function instead 481 | WARNING 
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead ———————————————————————————————————–
 * FILE: /www/web_259/public/wp-content/plugins/autoptimize/classes/external/php/
   minify-2.3.1-jsmin.php
    —————————————————————————————————————– FOUND 0 ERRORS
   AND 1 WARNING AFFECTING 1 LINE —————————————————————————————————————– 107 | WARNING
   | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2 —————————————————————————————————————–
 * FILE: /www/web_259/public/wp-content/plugins/autoptimize/classes/external/php/
   minify-2.1.7-jsmin.php
    —————————————————————————————————————– FOUND 0 ERRORS
   AND 1 WARNING AFFECTING 1 LINE —————————————————————————————————————– 107 | WARNING
   | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2 —————————————————————————————————————–
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-7-2-compatibility-9/#post-10068209)
 * see [my previous answer](https://wordpress.org/support/topic/php-7-2-compatibility-9/#post-10024911)
   [@weddje](https://wordpress.org/support/users/weddje/) 🙂

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

The topic ‘Php 7.2 Compatibility’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [PHP 7.2](https://wordpress.org/support/topic-tag/php-7-2/)

 * 5 replies
 * 5 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/php-7-2-compatibility-9/#post-10068209)
 * Status: resolved