class instance? (trying to write an extension for a website and I need to patch a variable in class)
function start() {
new Class();
}
start();
the constructor calls a long running task so there is always reference to it I assume
if you never return or assign it: no.
do not use constructors for long running tasks
yeah the website is not mine just trying to patch something in it
Обсуждают сегодня