-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Call to a member function get_name() on null in phar #7
Comments
could you share your inputs :
|
It works on the propilto_v0.2.0.phar version. Is there any more information on the configuration file? I'd like my output as csv or json or something other than the var_dump. Thanks |
experiencing a very similar error with the 0.3.0 phar PHP Fatal error: Uncaught Error: Call to a member function add_type() on null in phar:///kdir/progpilot_v0.3.0.phar/vendor/progpilot/package/src/progpilot/Analysis/TaintAnalysis.php:381 Fatal error: Uncaught Error: Call to a member function add_type() on null in phar:///kdir/progpilot_v0.3.0.phar/vendor/progpilot/package/src/progpilot/Analysis/TaintAnalysis.php on line 381 Error: Call to a member function add_type() on null in phar:///kdir/progpilot_v0.3.0.phar/vendor/progpilot/package/src/progpilot/Analysis/TaintAnalysis.php on line 381 Call Stack: |
hello @coderintherye thank you Eric |
@eric-therond any suggestions on how to figure out the exact file it is failing on (is there an extra logging flag or something)? I'm running it across a large codebase, and I can't tell from the output exactly which file is causing the issue |
yes, for the 0.3.0 version of progpilot, if you are using the API you could use : $context->set_pretty_print(true); or if you use a configuration file : set_print_file: true to print the analyzed files during the execution of progpilot Eric |
Still haven't found the issue. I comment some lines out it the error goes away, but if I add them to a separate file, I don't get the error. |
It looks like the current dev build addresses my "get_name()" issue. It looks like there is a null check on line 303 in MyInputs.php, maybe that wasn't there in the 0.30 version. |
I'm just trying to run this with out a configuration file:
php progpilot.phar someFile.php
This is the result I get:
PHP Fatal error: Uncaught Error: Call to a member function get_name() on null in phar:///home/centos/progpilot/progpilot.phar/vendor/progpilot/package/src/progpilot/Inputs/MyInputs.php:310
Stack trace:
#0 phar:///home/centos/progpilot/progpilot.phar/vendor/progpilot/package/src/progpilot/Analysis/SecurityAnalysis.php(93): progpilot\Inputs\MyInputs->get_sink_byname(Object(progpilot\Context), Array, Object(progpilot\Objects\MyFunction), NULL)
#1 phar:///home/centos/progpilot/progpilot.phar/vendor/progpilot/package/src/progpilot/Analysis/TaintAnalysis.php(40): progpilot\Analysis\SecurityAnalysis::funccall(Array, Object(progpilot\Context), Object(progpilot\Code\MyInstruction), NULL)
#2 phar:///home/centos/progpilot/progpilot.phar/vendor/progpilot/package/src/progpilot/Analysis/VisitorAnalysis.php(461): progpilot\Analysis\TaintAnalysis::funccall_specify_analysis(NULL, Array, Object(progpilot\Context), Array, NULL, Object(progpilot\Objects\MyFunction), false, Object(progpilot\Code\MyInstruction), Object(progpilot\Code\MyCode), 858) in phar:///home/centos/progpilot/progpilot.phar/vendor/progpilot/package/src/progpilot/Inputs/MyInputs.php on line 310
The text was updated successfully, but these errors were encountered: