title: PHP Notice: A non well formed numeric value encountered in /var/www/zephyr/library/XenForo/Application.php on line 1534
body: <p>[Sat Aug 12 02:21:28.993810 2017] [php7:notice] [pid 20352] [client :14302] PHP Notice:  A non well formed numeric value encountered in /var/www/zephyr/library/XenForo/Application.php on line 1534</p>
  
  <pre><code>    /**
   * Gets the current memory limit.
   *
   * @return int
   */
  public static function getMemoryLimit()
  {
      if (self::$_memoryLimit === null)
      {
          $curLimit = @ini_get('memory_limit');
          if ($curLimit === false)
          {
              // reading failed, so we have to treat it as unlimited - unlikely to be able to change anyway
              $curLimit = -1;
          }
          else
          {
              switch (substr($curLimit, -1))
              {
                  case 'g':
                  case 'G':
                      $curLimit *= 1024; //This is line 1534
                      // fall through
  
                  case 'm':
                  case 'M':
                      $curLimit *= 1024;
                      // fall through
  
                  case 'k':
                  case 'K':
                      $curLimit *= 1024;
              }
          }
  
          self::$_memoryLimit = intval($curLimit);
      }
  
      return self::$_memoryLimit;
  }
  </code></pre>
  
  <p>Not quite sure how to fix this one, kind of stumped, I pointed out line 1534</p>