Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 8483292

    (@anonymized-8483292)

    The new to release 1.4 version of Shopp will meet PHP 7 requirements.

    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)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 7 compatibility’ is closed to new replies.