Issues

ZF-2271: Zend_Cache_Backend_File bug in PHP 5.2.5

Issue Type: Bug Created: 2007-12-05T19:18:45.000+0000 Last Updated: 2008-02-26T12:56:04.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: Jordan Ryan Moore (jordanryanmoore) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: - ZF-2200

Attachments:

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.

Comments

Posted by Fabien MARTY (fab) on 2007-12-06T16:47:58.000+0000

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

Posted by Jordan Ryan Moore (jordanryanmoore) on 2007-12-06T17:04:43.000+0000

It's fixed.

Posted by Fabien MARTY (fab) on 2007-12-11T14:10:57.000+0000

fixed in trunk and in 1.0 branch

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts