Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Not an Issue
-
Affects Version/s: 1.10.6
-
Fix Version/s: 1.10.7
-
Component/s: Zend_Loader, Zend_Validate
-
Labels:None
Description
When using the Zend_Loader for auto loading classes, it breaks if any of the classes in question try to include Zend_Validate_Hostname_Com.
This is an obvious issue because the Loader is looking for a class, whereas Zend_Validate_Hostname_Com just returns a resource (array). A class does not exist there.
<b>Fatal error</b>: Uncaught exception 'Zend_Exception' with message 'File "Zend/Validate/Hostname/Com.php" does not exist or class "Zend_Validate_Hostname_Com" was not found in the file' in /usr/local/lib/php/Zend/Loader.php:88
Is there any way around this (other than not using Zend_Loader - this is a must)?
Actually, this seems to be an issue even when not using the Loader...
Fatal error: Uncaught exception 'Zend_Exception' with message 'File "Zend/Validate/Hostname/Com.php" does not exist or class "Zend_Validate_Hostname_Com" was not found in the file' in /usr/local/lib/php/Zend/Loader.php:88 Stack trace: #0 /usr/local/lib/php/Zend/Validate/Hostname.php(331): Zend_Loader::loadClass('Zend_Validate_H...') #1 /usr/local/lib/php/Zend/Uri/Http.php(448): Zend_Validate_Hostname->isValid('www.google.com') #2 /usr/local/lib/php/Zend/Uri/Http.php(280): Zend_Uri_Http->validateHost() #3 /usr/local/lib/php/Zend/Uri/Http.php(154): Zend_Uri_Http->valid() #4 /usr/local/lib/php/Zend/Uri.php(132): Zend_Uri_Http->__construct('http', '//www.google.co...') #5 /home/xil355/public_html/eawp.com/oauther/oauth.php(13): Zend_Uri::factory('http://www.goog...') #6 {main} thrown in /usr/local/lib/php/Zend/Loader.php on line 88
Even though, it's calling the loader anyways, for some odd reason...
The only thing included is Zend/Uri.php.