John Smith
John Smith

Reputation: 283

Is there a way to track down where the class autoloading triggered at?

Is there a way to track down where the class autoloading triggered at? I meant I want to know which file, line refers to the class/interface. Where its began to use.

Upvotes: 0

Views: 43

Answers (1)

Jani Hartikainen
Jani Hartikainen

Reputation: 43243

I'm pretty sure if you use debug_print_backtrace() or such in your autoload function, this should show you where it's being called from, allowing you to track down where the first usage was.

Upvotes: 1

Related Questions