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

Missing TaintedCallable for 4 core generic functions #11089

Closed
cgocast opened this issue Sep 6, 2024 · 1 comment · Fixed by #11090
Closed

Missing TaintedCallable for 4 core generic functions #11089

cgocast opened this issue Sep 6, 2024 · 1 comment · Fixed by #11090

Comments

@cgocast
Copy link
Contributor

cgocast commented Sep 6, 2024

The following code sample should trigger 4 TaintedCallable issues: https://psalm.dev/r/1f0060a897

I'll write a Pull Request that fixes this issue

Copy link

I found these snippets:

https://psalm.dev/r/1f0060a897
<?php //--taint-analysis

$foo = $_GET["foo"];

register_shutdown_function($foo);
register_tick_function($foo);

class B
{
    public static function test($foo) {
        forward_static_call($foo, "one", "two");
        forward_static_call_array($foo, array("one", "two"));
    }
}

B::test($foo);
Psalm output (using commit 16b24bd):

No issues!

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 a pull request may close this issue.

1 participant