src/Handler/PThreadHandler.php 1 location
|
@@ 95-97 (lines=3) @@
|
92 |
|
public function getResult() |
93 |
|
{ |
94 |
|
$result = $this->result; |
95 |
|
if (is_object($result) && (is_subclass_of($result, '\\Error') || is_subclass_of($result, '\\Exception'))) { |
96 |
|
throw $result; |
97 |
|
} |
98 |
|
|
99 |
|
return $result; |
100 |
|
} |
src/Handler/ForkHandler.php 1 location
|
@@ 141-143 (lines=3) @@
|
138 |
|
$result = $cache->get($key); |
139 |
|
$cache->release($key); |
140 |
|
|
141 |
|
if (is_object($result) && (is_subclass_of($result, '\\Error') || is_subclass_of($result, '\\Exception'))) { |
142 |
|
throw $result; |
143 |
|
} |
144 |
|
|
145 |
|
return $result; |
146 |
|
} |