public static function readSfixed32(&$input, &$value) { if (!self::readFixed32($input, $value)) { return false; } if (PHP_INT_SIZE === 8) { $value |= -($value >> 31) << 32; } return true; }