Zend Framework

Zend_Cache_Backend_File bug in PHP 5.2.5

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.0.3
  • Fix Version/s: 1.0.4
  • Component/s: Zend_Cache
  • Labels:
    None
  • Fix Version Priority:
    Must Have

Description

The return value of glob() changed in PHP 5.2.5 when no matches are found (now returns false). See http://www.php.net/glob.

This causes an "Invalid argument supplied for foreach()" on line 281 in release 1.0.3, as well as any other place in Zend_Cache_Backend_File where the return value of glob() is iterated using a foreach loop.

Issue Links

Activity

Hide
Fabien MARTY added a comment -

i just commited a fix for this in trunk, can you confirm that the problem is gone ?

Show
Fabien MARTY added a comment - i just commited a fix for this in trunk, can you confirm that the problem is gone ?
Hide
Jordan Ryan Moore added a comment -

It's fixed.

Show
Jordan Ryan Moore added a comment - It's fixed.
Hide
Fabien MARTY added a comment -

fixed in trunk and in 1.0 branch

Show
Fabien MARTY added a comment - fixed in trunk and in 1.0 branch

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: