<?php
class MyClass {
public function __call($MethodName, $Parameters)
{
throw new Exception('Error Getting Method: ' . $MethodName . ' does not exist!');
// THIS line number appears in the exception, but
// is useless because it isn't the problem.
}
}
$MyClass = new MyClass();
// THIS line number should be in the exception,
// since its the line that's wrong.
$MyClass->GetSomethingThatDoesNotExist();
PD9waHAKY2xhc3MgTXlDbGFzcyB7CiAgIHB1YmxpYyBmdW5jdGlvbiBfX2NhbGwoJE1ldGhvZE5hbWUsICRQYXJhbWV0ZXJzKQogICB7CiAgICAgICBpZiAoIW1ldGhvZF9leGlzdHMoJHRoaXMsICRNZXRob2ROYW1lKSkgICAgICAgICAgICAKICAgICAgICAgdGhyb3cgbmV3IEV4Y2VwdGlvbignRXJyb3IgR2V0dGluZyBNZXRob2Q6ICcgLiAkTWV0aG9kTmFtZSAuICcgZG9lcyBub3QgZXhpc3QhJyk7CiAgICAgICAvLyBUSElTIGxpbmUgbnVtYmVyIGFwcGVhcnMgaW4gdGhlIGV4Y2VwdGlvbiwgYnV0CiAgICAgICAvLyBpcyB1c2VsZXNzIGJlY2F1c2UgaXQgaXNuJ3QgdGhlIHByb2JsZW0uCiAgIH0KfQoKCiRNeUNsYXNzID0gbmV3IE15Q2xhc3MoKTsKLy8gVEhJUyBsaW5lIG51bWJlciBzaG91bGQgYmUgaW4gdGhlIGV4Y2VwdGlvbiwKLy8gc2luY2UgaXRzIHRoZSBsaW5lIHRoYXQncyB3cm9uZy4KJE15Q2xhc3MtPkdldFNvbWV0aGluZ1RoYXREb2VzTm90RXhpc3QoKTsg