fork download
  1. <?php
  2. class MyClass {
  3. public function __call($MethodName, $Parameters)
  4. {
  5. if (!method_exists($this, $MethodName))
  6. throw new Exception('Error Getting Method: ' . $MethodName . ' does not exist!');
  7. // THIS line number appears in the exception, but
  8. // is useless because it isn't the problem.
  9. }
  10. }
  11.  
  12.  
  13. $MyClass = new MyClass();
  14. // THIS line number should be in the exception,
  15. // since its the line that's wrong.
  16. $MyClass->GetSomethingThatDoesNotExist();
Runtime error #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Standard output is empty