mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +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 '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists($file)) {
|
if (@file_exists($file)) {
|
||||||
$file = realpath($file);
|
$file = realpath($file);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ abstract class DataCollector implements DataCollectorInterface
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists($file)) {
|
if (@file_exists($file)) {
|
||||||
$file = realpath($file);
|
$file = realpath($file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ class TimeDataCollectorTest extends DebugBarTestCase
|
|||||||
public function testMeasure()
|
public function testMeasure()
|
||||||
{
|
{
|
||||||
$returned = $this->c->measure('bar', function() {
|
$returned = $this->c->measure('bar', function() {
|
||||||
|
usleep(50);
|
||||||
return 'returnedValue';
|
return 'returnedValue';
|
||||||
});
|
});
|
||||||
$m = $this->c->getMeasures();
|
$m = $this->c->getMeasures();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user