New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is_callable() invoked on system functions #47
Comments
steinkel
added a commit
that referenced
this issue
Aug 1, 2019
closed per #48 |
steinkel
added a commit
that referenced
this issue
Aug 20, 2019
steinkel
added a commit
that referenced
this issue
Aug 20, 2019
rochamarcelo
added a commit
that referenced
this issue
Aug 26, 2019
Refs #47 fix callable plugin name
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a plugin named Ord. When using 'plugin' => 'Ord' in my permissions array, the _matchPermission() method evaluates is_callable('Ord') as true and attempts to call_user_func().
ord() is a built-in PHP function so is_callable() returns true. Additional checks on $value should be performed: if(!is_string($value) and is_callable($value))
The text was updated successfully, but these errors were encountered: