| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Understand\UnderstandLaravel5\Handlers; |
||
| 32 | protected function escapeshellarg($requestData) |
||
| 33 | { |
||
| 34 | // the `escapeshellarg` function throws a fatal error in Unix if the size exceeds 2097152 bytes (~2mb) |
||
| 35 | if (strlen($requestData) >= 2000000) |
||
| 36 | { |
||
| 37 | return; |
||
| 38 | } |
||
| 39 | |||
| 40 | return escapeshellarg($requestData); |
||
| 41 | } |
||
| 42 | |||
| 60 |
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: