| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public static function getSample() |
||
| 26 | { |
||
| 27 | |||
| 28 | $resource = sem_get(1); |
||
| 29 | yield ["native memory" => $resource]; |
||
| 30 | |||
| 31 | |||
| 32 | // @todo: add native res |
||
| 33 | // $r = opendir(); |
||
| 34 | // $r = shmop_open(); |
||
| 35 | |||
| 36 | // shm_attach(); |
||
| 37 | // xml_parser_create(); |
||
| 38 | // gzopen(); |
||
| 39 | |||
| 40 | |||
| 41 | if (function_exists("imagecreate")) { |
||
| 42 | $resource = \imagecreate(1, 1); |
||
| 43 | yield $resource; |
||
| 44 | @\imagedestroy($resource); |
||
| 45 | } |
||
| 47 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.