nikic / PHP-Fuzzer

Experimental fuzzer for PHP libraries
MIT License
415 stars 17 forks source link

the main Fuzzer class should not be scoped to a generated namespace in the phar #7

Closed stof closed 1 year ago

stof commented 3 years ago

The fuzzer class is the API used in userland for the $fuzzer variable in the target file. Scoping it makes it impossible for projects to define a type for that $fuzzer variable, as the variable will have a different type when using the phar or when using composer.

stof commented 3 years ago

as an alternative, a non-scoped interface might be shipped defining the public API instead of exposing the class itself.