WordPress.org

Make WordPress Core

Ticket #10222: simple-pie-php5.patch

File simple-pie-php5.patch, 548 bytes (added by codestyling, 6 years ago)
  • class-simplepie.php

     
    340340/** 
    341341 * Whether we're running on PHP5 
    342342 */ 
    343 define('SIMPLEPIE_PHP5', version_compare(PHP_VERSION, '5.0.0', '>=')); 
     343$zend_compatibility = (int)str_replace('on', '1', strtolower(ini_get('zend.ze1_compatibility_mode'))); 
     344define('SIMPLEPIE_PHP5', version_compare(PHP_VERSION, '5.0.0', '>=') && ($zend_compatibility != 1)); 
    344345 
    345346/** 
    346347 * No file source