| 1 | <?php |
||
| 17 | class Debug extends Dispatcher { |
||
| 18 | |||
| 19 | /** @var bool Autodetect and append trace data to debug */ |
||
| 20 | public $detectTraceAndSource = false; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Send debug data message to client |
||
| 24 | * @param mixed $data |
||
| 25 | * @param null|string $tags Tags separated by dot, e.g. "low.db.billing" |
||
| 26 | * @param int|array $ignoreTraceCalls Ignore tracing classes by name prefix `array('PhpConsole')` or fixed number of calls to ignore |
||
| 27 | */ |
||
| 28 | 14 | public function dispatchDebug($data, $tags = null, $ignoreTraceCalls = 0) { |
|
| 41 | } |
||
| 42 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: