Closed jozydapozy closed 2 years ago
The bug described in https://github.com/spatie/ray/issues/73 is still present in Ray. When code is run on shutdown, the result of getcwd() is /. (see this comment on php.net)
/
So when you run this:
register_shutdown_function(function () { ray('hello world'); });
the method searchConfigFilesOnDisk() will start searching in / triggering an unwanted 'is_dir(): open_basedir restriction in effect E_WARNING
searchConfigFilesOnDisk()
'is_dir(): open_basedir restriction in effect
This pull request will fix this by stop searching any further when the path is /
I do see that this is not a full solution. On another installtion I see getcwd() returning /var/www/cgi-bin/cgi_wrapper
getcwd()
/var/www/cgi-bin/cgi_wrapper
I'm going to pass on this for now.
The bug described in https://github.com/spatie/ray/issues/73 is still present in Ray. When code is run on shutdown, the result of getcwd() is
/
. (see this comment on php.net)So when you run this:
the method
searchConfigFilesOnDisk()
will start searching in/
triggering an unwanted'is_dir(): open_basedir restriction in effect
E_WARNINGThis pull request will fix this by stop searching any further when the path is
/