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
Describe your environment Describe any aspect of your environment relevant to the problem, including your php version (php -v will tell you your current version), version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on master.
Which version of PHP is this? in 8.3, I don't see an exception but rather warning and is_file returns false, which is what the docs say should happen:
$ php -d open_basedir=/usr/src/myapp -a
Interactive shell
php > var_dump(is_file('/tmp/foo'));
Warning: is_file(): open_basedir restriction in effect. File(/tmp/foo) is not within the allowed path(s): (/usr/src/myapp) in php shell code on line 1
bool(false)
Ah yes I've been using an error handler for so long that I forgot it wasn't enabled by default. The failure emits a warning, which will trigger the error handler if you or your framework use set_error_handler().
This means that any site using an error handler (such as Laravel) will fail to load any page as soon as OpenTelemetry is installed.
Describe your environment Describe any aspect of your environment relevant to the problem, including your php version (
php -v
will tell you your current version), version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on master.Linux, PHP 8.3.11, Laravel 11, opentelemetry-sdk v1.1.2
Steps to reproduce
Describe exactly how to reproduce the error. Include a code sample if applicable.
Edit
php.ini
to includeopen_basedir=/var/www
What is the expected behavior?
What did you expect to see?
The site should continue to work as before.
What is the actual behavior?
What did you see instead?
During page load, the following exception is thrown:
is_file(): open_basedir restriction in effect. File(/etc/machine-id) is not within the allowed path(s):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: