dmolsen / Detector

Detector is a simple, PHP- and JavaScript-based browser- and feature-detection library that can adapt to new devices & browsers on its own without the need to pull from a central database of browser information.
http://detector.dmolsen.com/
MIT License
847 stars 80 forks source link

Error relating to spyc-0.5 only on iOS #14

Open tyssen opened 11 years ago

tyssen commented 11 years ago

I've got Detector working fine on desktop but when I try to view my test page on iOS5.1.1 (using Safari or Chrome) I get

'failed to open stream: No such file or directory' for /lib/spyc-0.5/spyc.php in UAParser.php (line 27).

If I comment out that line, I get another error:

Please download the regexes.yaml file before using UAParser.php

tyssen commented 11 years ago

Actually, it looks like it's related to this issue that I commented on and realpath(dirname(FILE)) v (DIR ).