Issues

ZF-7281: Refactor Zend_Cache_Backend::getTmpDir()'s way to detect the temp dir

Issue Type: Improvement Created: 2009-07-15T00:32:12.000+0000 Last Updated: 2009-11-19T12:30:20.000+0000 Status: Resolved Fix version(s): Reporter: Eddo Rotman (karnaf) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Cache

Related issues: Attachments:

Description

Currently the function uses a loop to detect where the temp dir is. Since we now require PHP >= 5.2.4 we can use sys_get_temp_dir() instead

Comments

Posted by Thomas Weidner (thomas) on 2009-07-15T06:53:03.000+0000

I was said that sys_get_temp_dir is not always available or returns proper data.

Also note that this methodology is available multiple times in the framework. Changing one means of course to change also the others.

Posted by Pádraic Brady (padraic) on 2009-11-19T12:30:20.000+0000

If it's not broken don't fix it ;). Seriously though, while the change would be attractive there remains doubt about it's cross-system behaviour. For Zend Framework 2.0 the approach would be better suited if a unified approach was defined somewhere all components could utilise. Zend_Environment might be a possible target for this.

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