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:
parent
d1e849c7e2
commit
ff2b6d6346
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user