cakephp/cakephp — pull request #579 by tPl0ch (2012-03-24 15:22:49+00:00)
Title: Fixed CakeSession and test cases to pass in travis 5.2, 5.3 and 5.4 PHP environments.

I did some changes to Session since CakePHP core tests segfaulted in the travis CI PHP 5.2 environments:

* Removed manual gc probablility calculation, since it is controlled by `session.gc_probability` ini value
* Removed `session_write_close()` from custom Session handler destructors, since this could result in segfaults in some PHP environments
* Added `$expires` parameter to `CakeSessionHandlerInterface::gc()` and it's implementors since a custom session_save_handler will pass expires to the registeres gc handler
* Fixed Sqlite test where older versions bail out on `SUBSTR()` as virtualField without second parameter
* Fixed `mime_content_type()` returning false if the magic mime db is corrupt or empty

Travis build: http://travis-ci.org/#!/tPl0ch/cakephp/builds/938104