Title: PHP 7.2
Last modified: November 5, 2018

---

# PHP 7.2

 *  Resolved [politicske](https://wordpress.org/support/users/politicske/)
 * (@politicske)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-7-2-15/)
 * Hi. PHP Compatibility Checker flags this code in the revive old post plugin for
   php 7.2
 *     ```
       FILE: /home/xxx/public_html/wp-content/plugins/tweet-old-post/vendor/facebook/graph-sdk/src/Facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 3 ERRORS AFFECTING 1 LINE
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------
        57 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
        57 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
        57 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2
       ```
   
 * Is this a false positive? Or is th code retained for backwards compatibility?

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

 *  Plugin Contributor [Uriahs Victor](https://wordpress.org/support/users/uriahs-victor/)
 * (@uriahs-victor)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-7-2-15/#post-10851010)
 * Hi, the error is being produced by the facebook graph sdk which we make use of,
   I have reported it on the library: [https://github.com/facebook/php-graph-sdk/issues/1077](https://github.com/facebook/php-graph-sdk/issues/1077)
 * You can hold back on using PHP 7.2 Ill see what they say and proceed accordingly
 *  Thread Starter [politicske](https://wordpress.org/support/users/politicske/)
 * (@politicske)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-15/#post-10880603)
 * Good to know. Will keep following on this topic.
 *  Plugin Contributor [Uriahs Victor](https://wordpress.org/support/users/uriahs-victor/)
 * (@uriahs-victor)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-15/#post-10881200)
 * [@politicske](https://wordpress.org/support/users/politicske/) facebook replied.
   This should be fine. We are using their latest SDK

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

The topic ‘PHP 7.2’ is closed to new replies.

 * ![](https://ps.w.org/tweet-old-post/assets/icon-256x256.gif?rev=3127181)
 * [Revive Social – Social Media Auto Post and Scheduling Automation Plugin](https://wordpress.org/plugins/tweet-old-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tweet-old-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tweet-old-post/)
 * [Active Topics](https://wordpress.org/support/plugin/tweet-old-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tweet-old-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tweet-old-post/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Uriahs Victor](https://wordpress.org/support/users/uriahs-victor/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-15/#post-10881200)
 * Status: resolved