Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
PHP_MAXPATHLEN
check for existing check of files for views
A PHP warning can occur if the filename is a little less than (or equal to) \PHP_MAXPATHLEN [1] AND open_basedir [2] is configured (otherwise PHP will not throw this error [3]). By searching for the filename and appending a suffix (and also using the absolute path), we may exceed the limit. If the limit is exceeded, PHP throws a warning message [4] and Laravel aborts the execution of the code. [1] https://www.php.net/manual/en/reserved.constants.php#constant.php-maxpathlen [2] https://www.php.net/manual/en/ini.core.php#ini.open-basedir [3] https://github.com/php/php-src/blob/7c860628cd2bf11ee867bfb41b3fd0314c5177c5/main/fopen_wrappers.c#L302 [4] File name is longer than the maximum allowed path length on this platform
- Loading branch information