1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

fix open_basedir restriction error (#590)

This commit is contained in:
erikn69 2024-02-10 05:00:09 -05:00 committed by GitHub
parent d1e849c7e2
commit ff2b6d6346
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@ abstract class DataCollector implements DataCollectorInterface
return '';
}
if (file_exists($file)) {
if (@file_exists($file)) {
$file = realpath($file);
}
@ -69,7 +69,7 @@ abstract class DataCollector implements DataCollectorInterface
return null;
}
if (file_exists($file)) {
if (@file_exists($file)) {
$file = realpath($file);
}

View File

@ -53,6 +53,7 @@ class TimeDataCollectorTest extends DebugBarTestCase
public function testMeasure()
{
$returned = $this->c->measure('bar', function() {
usleep(50);
return 'returnedValue';
});
$m = $this->c->getMeasures();