jmathai / epiphany

A micro PHP framework that's fast, easy, clean and RESTful. The framework does not do a lot of magic under the hood. It is, by design, very simple and very powerful.
https://github.com/jmathai/epiphany
Other
686 stars 139 forks source link

Memcached $params compared against isset() when 0 is valid #59

Closed cr1st1an closed 11 years ago

cr1st1an commented 11 years ago

On the creation of the Memcached objects with parameters, the compress and expiry values were compared against empty() before returning a default value. But 0s are valid, meanning no compression and no expiration respectively.