zendframework/zf1 — pull request #426 by dmnc (2014-09-01 14:13:45+00:00)
Title: Use relative filenames for _validIdns for direct include in Zend_Validate_Hostname

Zend_Validate_Hostname::isValid runs a direct include to add to regex fragments on line 1220.

The first two occurrences of this mechanism in the protected variable $_validIdns on lines 824 and 831 have relative paths to the appropriate files (Hostname/Biz.php and Hostname/Cn.php). Subsequent references from line 832 onwards use a full path (Zend/Validate/Hostname/Com.php).

For those using their own autoloader this is problematic.

This pull request changes all the includes to be consistent and use the relative location. Given the nature of the include this should work for all setups.