You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently we encountered a problem when deploying phpCAS in a production environment with the include path in other parts of our application.
On investigation we found that phpCAS is calling set_include_path at the bottom of the CAS/Autoload.php if it does not find itself on the include path.
This causes includes in other files that rely on the relative path to the file they're including to fail under certain circumstances. In addition it negatively impacts on application performance as changing the include path at runtime is inefficient.
This issue is seen when you're including folders files from below the current working directory which include files in their current working directory, when the system include path is blank.
The fix for this is to remove the calls to set_include_path in Autoload.php and to update the CAS_autoload function to reference the current library location instead.
The text was updated successfully, but these errors were encountered:
Hello,
Recently we encountered a problem when deploying phpCAS in a production environment with the include path in other parts of our application.
On investigation we found that phpCAS is calling set_include_path at the bottom of the CAS/Autoload.php if it does not find itself on the include path.
This causes includes in other files that rely on the relative path to the file they're including to fail under certain circumstances. In addition it negatively impacts on application performance as changing the include path at runtime is inefficient.
This issue is seen when you're including folders files from below the current working directory which include files in their current working directory, when the system include path is blank.
The fix for this is to remove the calls to set_include_path in Autoload.php and to update the CAS_autoload function to reference the current library location instead.
The text was updated successfully, but these errors were encountered: