Skip to content
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

Closed
kwumr opened this issue Jul 19, 2019 · 1 comment
Closed

is_callable() invoked on system functions #47

kwumr opened this issue Jul 19, 2019 · 1 comment

Comments

@kwumr
Copy link

kwumr commented Jul 19, 2019

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))

steinkel added a commit that referenced this issue Aug 1, 2019
steinkel added a commit that referenced this issue Aug 1, 2019
@steinkel
Copy link
Member

steinkel commented Aug 1, 2019

closed per #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants