psecio/iniscan

PHP warnings when using memcache session handler

pkordylewski opened this issue · 5 comments

Hey,

i get the following warnings when using the scan command with a php.ini that has memcache session handlers configured:

$ vendor/bin/iniscan scan --path=php.ini
Warning: fileperms(): Unable to find the wrapper "tcp" - did you forget to enable it when you configured PHP? in /home/patryk/composer/vendor/psecio/iniscan/src/Psecio/Iniscan/Rule/CheckSessionPath.php on line 24
Warning: fileperms(): Unable to find the wrapper "tcp" - did you forget to enable it when you configured PHP? in /home/patryk/composer/vendor/psecio/iniscan/src/Psecio/Iniscan/Rule/CheckSessionPath.php on line 24
Warning: fileperms(): stat failed for tcp://127.0.0.1:11211 in /home/patryk/composer/vendor/psecio/iniscan/src/Psecio/Iniscan/Rule/CheckSessionPath.php on line 24

Cheers,
Patryk

Hmm, interesting...that session "path" check needs an update to test if the session handling is non-filesystem based. Cool - thanks for the note, good catch!

I'm glad i could help :-)

Give this a shot - it should fix the issue: 15a3a87

Hey,

thanks, i will try this. Just as a note, there are more save-handlers built-in: sqlite and memcached
Your check should fail for these other handlers?

Cheers,
Patryk

Yeah, right now it would, but I'll get those added in too - thanks!