Title: PHP 7 compatibility
Last modified: August 31, 2016

---

# PHP 7 compatibility

 *  [eclev91](https://wordpress.org/support/users/eclev91/)
 * (@eclev91)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-compatibility-13/)
 * Is there an ETA on PHP 7 compatibility? Currently I think there’s just one fatal
   error – line 1554 of core/model/Shipping.php – a break outside of a loop.
 * [https://wordpress.org/plugins/shopp/](https://wordpress.org/plugins/shopp/)

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

 *  Anonymous User 8483292
 * (@anonymized-8483292)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-compatibility-13/#post-7151146)
 * The new to release 1.4 version of Shopp will meet PHP 7 requirements.
 *  [jqz](https://wordpress.org/support/users/jqz/)
 * (@jqz)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatibility-13/#post-7151175)
 * Will the next release also include a fix for `storage/core/DBStorage.php` depending
   on the MySQL API which is deprecated since PHP 5.5 (and removed in PHP 7) and
   though only deprecated in PHP 5.5 will likely fail with an access denied error,
   causing product images to be saved in the cache and returned as empty files?
 * Specifically, the line (57)
 *     ```
       $data = @mysql_real_escape_string($data);
       ```
   
 * should be changed to
 *     ```
       $data = sDB::get()->api->escape($data);
       ```
   
 * (Not `sDB::escape($data)` which will unescape before escaping which is clearly
   not desired here.)
 * It would have been a hell of a lot easier and less time-consuming to track down
   this problem had you not suppressed error reporting with `@`!
 *  Anonymous User 8483292
 * (@anonymized-8483292)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatibility-13/#post-7151181)
 * Yes, that one has already been corrected in 1.4
    [https://github.com/ingenesis/shopp/blob/master/storage/core/DBStorage.php#L57](https://github.com/ingenesis/shopp/blob/master/storage/core/DBStorage.php#L57)

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

The topic ‘PHP 7 compatibility’ is closed to new replies.

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

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 3 replies
 * 3 participants
 * Last reply from: Anonymous User 8483292
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatibility-13/#post-7151181)
 * Status: not resolved