Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0

Bug #21244 Installing through PEAR yields "data file can't be found" error
Submitted: 2017-10-02 18:27 UTC
From: mrpetovan Assigned:
Status: Open Package: Text_LanguageDetect (version 1.0.0)
PHP Version: Irrelevant OS: Debian
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 23 - 4 = ?

 
 [2017-10-02 18:27 UTC] mrpetovan (Hypolite Petovan)
Description: ------------ After a regular install with PEAR via Composer, the data file will be located in /vendor/pear-pear.php.net/Text_LanguageDetect/data/lang.dat but LanguageDetect will try /vendor/pear- pear.php.net/Text_LanguageDetect/data/Text_LanguageDetect/lang.dat and fail. There is no need to append "Text_LanguageDetect/" to the "data_dir" correctly set by PEAR. I submitted the according Pull Request on GitHub: https://github.com/pear/Text_LanguageDetect/pull/4 Expected result: ---------------- The library finds the data file after install through PEAR Actual result: -------------- The LanguageDetect class appends an unnecessary "Text_LanguageDetect/" to the "data_dir" path constant. Removing the string append fixes the problem.

Comments