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

Detect dynamic function calls #276

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Detect dynamic function calls #276

merged 1 commit into from
Dec 6, 2024

Conversation

spaze
Copy link
Owner

@spaze spaze commented Dec 6, 2024

For example:

$sneaky = 'print_r';
$sneaky('foo');

and

('print_r')('foo');

Ref #275

For example:
```php
$sneaky = 'print_r';
$sneaky('foo');
```
and
```php
('print_r')('foo');
```
@spaze spaze self-assigned this Dec 6, 2024
@spaze spaze merged commit 20fd804 into main Dec 6, 2024
124 checks passed
@spaze spaze deleted the spaze/dynamic-function-calls branch December 6, 2024 03:43
spaze added a commit that referenced this pull request Dec 7, 2024
Detect
- `${'variable'}('foo')` dynamic function calls
- `$object->$method()` and `$object->${'method'}()`
- `Class::$method()` and `Class::${'method'}()`

Ref #275
Follow-up to #276
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

Successfully merging this pull request may close these issues.

1 participant