Dec 8, 2015, 12:21 PM
Post #5 of 5
I copied your code onto my computer and ran it. That confirmed my previous description. There is no mysterious "module". Given that AUTOLOAD runs whenever a function cannot be found, your code contains an explicit recursion of infinite depth.
Re: [sonal] Memory leak with Autoload method
[In reply to]
Your main program calls undefined_function. AUTOLOAD runs instead. It never completes because it prints its message and then calls undefined_function (AUTOLOAD) which never completes because it prints its message and then calls ...
This continues until you manually interrupt the program.
We cannot help you to fix this because we have no idea what you are trying to do. As Fishmonger suggested, If you explain what you want to accomplish, we probably can offer a solution which does not require recursion or AUTOLOAD.