When use JPATH_ROOT we get "Fatal error: Class 'idna_convert' not found in /var/www/test/.protect/.libraries/joomla/string/punycode.php on line 52" if move and rename libraries directory in own custom defines.php
Bug in files:
/libraries/joomla/string/wrapper/punycode.php
/libraries/joomla/string/punycode.php
Merged on review