stefangabos / Zebra_Session

A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing better performance, better security and protection against session fixation and session hijacking
https://stefangabos.github.io/Zebra_Session/Zebra_Session/Zebra_Session.html
Other
172 stars 85 forks source link

Divide by zero error when calling get_settings() #48

Closed alexp-uk closed 1 year ago

alexp-uk commented 1 year ago

When calling get_settings(), line 477: 'probability' => (int)$gc_probability / (int)$gc_divisor * 100 . '%',

Triggers a divide by zero error when running on a host that has 'session.gc_divisor' set to 0.

Thanks so much for this useful tool by the way! :)

stefangabos commented 1 year ago

Thanks for the heads up. I pushed out a fix and will publish a release soon