Plugin Directory

Changeset 3460594


Ignore:
Timestamp:
02/13/2026 09:01:59 AM (7 weeks ago)
Author:
blaureasonable
Message:

1.1.7 update, further fix OpenSSL and SOAP Client related issue

Location:
reasonable-spread
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • reasonable-spread/tags/1.1.6/inc/Api/ApiManager.php

    r3459467 r3460594  
    6666    }
    6767    public function getSoapClient(){
     68        if (!class_exists('SoapClient')) {
     69            throw new \Exception('The PHP SOAP extension is not installed. Please contact your hosting provider to enable the php-soap extension.');
     70        }
    6871        $urls = self::$url;
    6972        return new SoapClient($urls[self::ENVIRONMENT] .'Service.asmx?WSDL');
  • reasonable-spread/tags/1.1.6/inc/Api/EncryptionHelper.php

    r3460555 r3460594  
    3636    private static function getEncryptionKey() {
    3737        // Try to use WordPress AUTH_KEY if available
    38         if (defined('AUTH_KEY') && !empty(AUTH_KEY)) {
     38        // Note: empty() cannot accept constants in PHP 5.4, so use AUTH_KEY !== '' instead
     39        if (defined('AUTH_KEY') && AUTH_KEY !== '') {
    3940            return substr(AUTH_KEY, 0, 32);
    4041        }
  • reasonable-spread/tags/1.1.6/readme.txt

    r3459574 r3460594  
    180180
    181181* WordPress 5.0 or higher
    182 * PHP 7.4 or higher
     182* PHP 5.4 or higher
    183183* SOAP extension enabled (for API communication)
    184184* SSL certificate (recommended for secure API communication)
  • reasonable-spread/trunk/inc/Api/ApiManager.php

    r3459468 r3460594  
    6666    }
    6767    public function getSoapClient(){
     68        if (!class_exists('SoapClient')) {
     69            throw new \Exception('The PHP SOAP extension is not installed. Please contact your hosting provider to enable the php-soap extension.');
     70        }
    6871        $urls = self::$url;
    6972        return new SoapClient($urls[self::ENVIRONMENT] .'Service.asmx?WSDL');
  • reasonable-spread/trunk/inc/Api/EncryptionHelper.php

    r3460555 r3460594  
    3636    private static function getEncryptionKey() {
    3737        // Try to use WordPress AUTH_KEY if available
    38         if (defined('AUTH_KEY') && !empty(AUTH_KEY)) {
     38        // Note: empty() cannot accept constants in PHP 5.4, so use AUTH_KEY !== '' instead
     39        if (defined('AUTH_KEY') && AUTH_KEY !== '') {
    3940            return substr(AUTH_KEY, 0, 32);
    4041        }
  • reasonable-spread/trunk/readme.txt

    r3459574 r3460594  
    55Tested up to: 6.9
    66Requires PHP: 5.4
    7 Stable tag: 1.1.6
     7Stable tag: 1.1.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    108108== Changelog ==
    109109
     110= 1.1.7 =
     111* Fix: Resolved PHP 5.4 parse error with empty() on constants (T_PAAMAYIM_NEKUDOTAYIM)
     112* Fix: Added graceful fallback when PHP OpenSSL extension is not available
     113* Fix: Added graceful error handling when PHP SOAP extension is not installed
     114* Improvement: Better PHP 5.4 compatibility for encryption helper
     115
    110116= 1.1.6 =
    111117* Maintenance: Confirmed PHP 5.4 compatibility (downgraded from PHP 7.4 requirement)
     
    180186
    181187* WordPress 5.0 or higher
    182 * PHP 7.4 or higher
     188* PHP 5.4 or higher
    183189* SOAP extension enabled (for API communication)
    184190* SSL certificate (recommended for secure API communication)
  • reasonable-spread/trunk/reasonable-spread.php

    r3459475 r3460594  
    99 * Domain Path: /languages
    1010 * Author URL: https://rspread.hk/
    11  * Version: 1.1.6
     11 * Version: 1.1.7
    1212 * Requires PHP: 5.4
    1313 * License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.