ZF-10663: Documentation for WURFL support does not work on Windows machines

Issue Type: Docs: Problem Created: 2010-11-09T12:43:43.000+0000 Last Updated: 2011-10-31T01:23:23.000+0000 Status: Closed Fix version(s): Reporter: Kevin Schroeder (kschroeder) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Http_UserAgent

Related issues: Attachments:


The WURFL code assumes that the system being run on is a *nix machine.

WURFL_Configuration_Config::getFullPath() {

$fileName = trim($fileName);
if ($fileName[0] == '/') {    <-- *nix only file check
    return $fileName;
$fullName = $this->configurationFileDir . $fileName; 

if(file_exists($fullName)) {
    return $fullName;

die("The File " . $fullName . " does not exist!!!\n");


Technically, I would argue that the WURFL folks should fix that, but until that happens the WURLF Quickstart could be updated with the following example code to make it work.

$wurfl['main-file'] = '../data/wurfl/'; $wurfl['patches'] = array('../data/wurfl/web_browsers_patch.xml');


Posted by steve (stevebor1) on 2011-06-02T07:04:31.000+0000

I have the same issue with zf 1.11 using wurlf. I don't see the error on my hosted win 7 desktop, but when I view from my connected android phone tp mymachine:8080 I get the error:

C:Program Files(x86)\Zend\Apache2\htdocs\mysite\application\C:Program Files(x86)\Zend\Apache2\htdocs\mysite\application../../data/wurlf/ does not exist!!!

The suggested fix mentioned above did not fix it for me.

I used the Quick Start sample found on zf site.…

wurlf-config.php: $resourcesDir = dirname(FILE) . '/../../data/wurfl/'; $wurfl['main-file'] = $resourcesDir . ''; $wurfl['patches'] = array($resourcesDir . 'web_browsers_patch.xml');$persistence['provider'] = 'file'; $persistence['dir'] = $resourcesDir . '/cache/'; $cache['provider'] = null; $configuration['wurfl'] = $wurfl; $configuration['persistence'] = $persistence; $configuration['cache'] = $cache;


resources.useragent.wurflapi.wurfl_api_version = "1.1" resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php-1.1/WURFL/" resources.useragent.wurflapi.wurfl_config_file = APPLICATION_PATH "/configs/wurfl-config.php"

Posted by Adam Lundrigan (adamlundrigan) on 2011-10-31T01:23:23.000+0000

The original issue was corrected in later versions of WURFL (I tested against WURFL v1.3.1)

Have you found an issue?

See the Overview section for more details.


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

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