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

Bug #21063 xmlschema.rng location does not work with composer
Submitted: 2016-05-12 13:22 UTC
From: alec Assigned: alec
Status: Closed Package: Console_CommandLine (version 1.2.1)
PHP Version: Irrelevant OS:
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 : 34 + 18 = ?

 
 [2016-05-12 13:22 UTC] alec (Aleksander Machniak)
Description: ------------ It comes from here: https://github.com/roundcube/roundcubemail/issues/5215#issuecomment-218747336 The XmlParser already supports two locations of the xmlschema.rng file. However, it does not handle additional locations that may exist when you installed the package with composer. For example if you installed deps with composer and then distributed /vendor folder with your package, the path on destination systems will not be the same and will not point to valid data directory. So, I propose to check additional location which would be: dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'Console_CommandLine' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'xmlschema.rng';

Comments

 [2016-05-16 11:31 UTC] alec (Aleksander Machniak)
 [2016-07-14 06:05 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alec
Fix merged. Will be in version 1.2.2