Apparently, realpath is very buggy. In PHP 5.3.1, it causes random crashes. In 5.3.0 and less, realpath randomly fails and returns false (for the s
realpath
For those Zend users out there, THIS answer may help you, as it did me:
$path = APPLICATION_PATH . "/../directory"; $realpath = new Zend_Filter_RealPath(new Zend_Config(array('exists' => false))); $realpath = $realpath->filter($path);