--- a/wp/wp-includes/pomo/streams.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/pomo/streams.php Wed Sep 21 18:19:35 2022 +0200
@@ -11,15 +11,22 @@
if ( ! class_exists( 'POMO_Reader', false ) ) :
class POMO_Reader {
- var $endian = 'little';
- var $_post = '';
+ public $endian = 'little';
+ public $_post = '';
/**
* PHP5 constructor.
*/
function __construct() {
- $this->is_overloaded = ( ( ini_get( 'mbstring.func_overload' ) & 2 ) != 0 ) && function_exists( 'mb_substr' ); // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated
- $this->_pos = 0;
+ if ( function_exists( 'mb_substr' )
+ && ( (int) ini_get( 'mbstring.func_overload' ) & 2 ) // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated
+ ) {
+ $this->is_overloaded = true;
+ } else {
+ $this->is_overloaded = false;
+ }
+
+ $this->_pos = 0;
}
/**
@@ -62,7 +69,7 @@
/**
* Reads an array of 32-bit Integers from the Stream
*
- * @param integer $count How many elements should be read
+ * @param int $count How many elements should be read
* @return mixed Array of integers or false if there isn't
* enough data or on error
*/
@@ -175,7 +182,7 @@
/**
* @param int $pos
- * @return boolean
+ * @return bool
*/
function seekto( $pos ) {
if ( -1 == fseek( $this->_f, $pos, SEEK_SET ) ) {
@@ -226,7 +233,7 @@
*/
class POMO_StringReader extends POMO_Reader {
- var $_str = '';
+ public $_str = '';
/**
* PHP5 constructor.