Title: php 7.2 Deprecated function
Last modified: November 1, 2018

---

# php 7.2 Deprecated function

 *  Resolved [klever](https://wordpress.org/support/users/klever/)
 * (@klever)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-7-2-deprecated-function/)
 * PHP Deprecated: Function create_function() is deprecated in ../wp-content/plugi

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

 *  [jarledb](https://wordpress.org/support/users/jarledb/)
 * (@jarledb)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-deprecated-function/#post-10893664)
 * From what I can tell this plugin seems abandoned.
 * Here is the problem:
    /wp-content/plugins/broken-link-checker/modules/checkers/
   http.php: create_function(‘$str’,’return rawurlencode($str[0]);’),
 *  [moody1337](https://wordpress.org/support/users/moody1337/)
 * (@moody1337)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-7-2-deprecated-function/#post-11084076)
 * Just change the whole function to:
 *     ```
       function urlencodefix($url){
       	//TODO: Remove/fix this. Probably not a good idea to "fix" invalid URLs like that.
       	return preg_replace_callback(
       		'|[^a-z0-9\+\-\/\\#:.,;=?!&%@()$\|*~_]|i',
       		function ($str) {
       			return rawurlencode($str[0]);
       		},
       		$url);
       }
       ```
   
 *  [Nemanja Aleksić](https://wordpress.org/support/users/kouteki/)
 * (@kouteki)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-2-deprecated-function/#post-11338695)
 * Plugin has been updated to support PHP7.2 and WP 5.1.1. These two were the cause
   for a lot of the recent bugs.
 * Please let me know if the issue persists with the latest version of BLC.
 * Cheers,
    Nemanja

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

The topic ‘php 7.2 Deprecated function’ is closed to new replies.

 * ![](https://ps.w.org/broken-link-checker/assets/icon-256x256.png?rev=2900468)
 * [Broken Link Checker](https://wordpress.org/plugins/broken-link-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/broken-link-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/broken-link-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/broken-link-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/broken-link-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/broken-link-checker/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Nemanja Aleksić](https://wordpress.org/support/users/kouteki/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-2-deprecated-function/#post-11338695)
 * Status: resolved