Fixed glob() return value handling in PHP 5.2.5+ w/ safety restrictions, closes #649. Added a check for cycle value to AgaviRotatingFileLoggerAppender, closes #654 (also made the code more efficient)