NoNativeRequestApisRule
class NoNativeRequestApisRule implements Rule
| internal |
Reports PHP's native request, response and session APIs, which act on PHP's own SAPI state rather than the request and response a Swoole worker is handling.
Constants
| private RESPONSE_TIP |
|
| private SESSION_TIP |
|
| private DISCONNECT_TIP |
|
| private INPUT_TIP |
|
| private HEADER_TIP |
|
| private FILTER_TIP |
|
| private FUNCTIONS |
The tip for each reported function, by lowercase name. Other session_* functions use the session tip. |
| private FILTER_FUNCTIONS |
The input type parameter of each filter function that reads SAPI input, by lowercase name. |
| private SUPERGLOBALS |
The tip for each reported superglobal. |
Methods
__construct(ReflectionProvider $reflectionProvider)
Create a new native request APIs rule instance.
string
getNodeType()
Get the node type the rule checks.
array
processNode(Node $node, Scope $scope)
Report a native request API call or superglobal access.
Details
at line 99
__construct(ReflectionProvider $reflectionProvider)
Create a new native request APIs rule instance.
at line 107
string
getNodeType()
Get the node type the rule checks.
at line 119
array
processNode(Node $node, Scope $scope)
Report a native request API call or superglobal access.