| 1 | <?php |
||
| 2 | class Snidel_Pcntl |
||
|
|
|||
| 3 | { |
||
| 4 | /** |
||
| 5 | * @see pcntl_fork |
||
| 6 | */ |
||
| 7 | public function fork() |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @see pcntl_signal |
||
| 14 | */ |
||
| 15 | public function signal($signo, $handler, $restart_syscall = true) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @see pcntl_waitpid |
||
| 22 | */ |
||
| 23 | public function waitpid($pid, &$status, $options = 0) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @see pcntl_wifexited |
||
| 30 | */ |
||
| 31 | public function wifexited($status) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @see pcntl_wexitstatus() |
||
| 38 | */ |
||
| 39 | public function wexitstatus($status) |
||
| 43 | } |
||
| 44 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.