Note for register_shutdown_function:
Working directory of the script can change inside the shutdown function under some web servers, e.g. Apache.
In such cases the relative path does not work.
Solution: save the current working directory in autorun.php and restore it in the shutdown function simpletest_autorun().
Log in to post a comment.