Was trying to figure out why this wasn't returning $data so I referred to the original PhpClosure class by Daniel Pupius which is being maintained.
I noticed (aside from the lack of localCompile() in the original) that the API endpoint has changed:
fsockopen("closure-compiler.appspot.com", 80) should now be
fsockopen("ssl://closure-compiler.appspot.com", 443)
Just in-case anyone else is having this issue.
Was trying to figure out why this wasn't returning $data so I referred to the original PhpClosure class by Daniel Pupius which is being maintained.
I noticed (aside from the lack of localCompile() in the original) that the API endpoint has changed:
fsockopen("closure-compiler.appspot.com", 80)should now befsockopen("ssl://closure-compiler.appspot.com", 443)Just in-case anyone else is having this issue.