without this the functions will be part of the global namespace. That same namespace is defined in web/index.php. If it still worked it was because the search for the function falls back on the global namespace.