Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Understand\UnderstandLaravel5\Handlers; |
||
10 | protected function send($escapedData) |
||
11 | { |
||
12 | $parts = [ |
||
13 | 'curl', |
||
14 | '-X POST', |
||
15 | '--cacert', |
||
16 | $this->sslBundlePath, |
||
17 | '-d', |
||
18 | $escapedData, |
||
19 | $this->getEndpoint(), |
||
20 | '> /dev/null 2>&1 &' |
||
21 | ]; |
||
22 | |||
23 | $cmd = implode(' ', $parts); |
||
24 | |||
25 | exec($cmd); |
||
26 | } |
||
27 | |||
60 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: