Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 5.2 syntax error T_PAAMAYIM_NEKUDOTAYIM in xhprof_runs.php on line 250 #51

Open
marcusfritze opened this issue Aug 17, 2012 · 0 comments

Comments

@marcusfritze
Copy link

marcusfritze commented Aug 17, 2012

when running xhprof with php 5.2 I will get the following error message

PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /xhprof/xhprof_lib/utils/xhprof_runs.php on line 250

BUG:

 public static function getNextAssoc($resultSet)
  {
    $class = self::getDbClass();
    return $class::getNextAssoc($resultSet);
  }

FIX:

  public static function getNextAssoc($resultSet)
  {
    $class = self::getDbClass();
//    return $class::getNextAssoc($resultSet);

    return call_user_func($class."::getNextAssoc", $resultSet);
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant