Issues

ZF-3989: Bug with Zend/Validate/Hostname/Com.php, Zend/Validate/Hostname/Fr.php....

Description

I used the fallowing code to test and exclude my boostrap :

<?php // Include zend libs set_include_path('../library/'.PATH_SEPARATOR.get_include_path()); require_once 'Zend/Loader.php'; // Display errors error_reporting(E_ALL|E_STRICT); ini_set('display_errors', 1); date_default_timezone_set('Europe/Paris'); function myErrorHandler($errno, $errstr, $errfile, $errline) { echo $errno.'::'.$errstr.'::'.$errfile.'::'.$errline; } set_error_handler('myErrorHandler'); Zend_Loader::loadClass('Zend_Http_Client'); // D'abord, instancier le client $client = new Zend_Http_Client('http://www.google.com', array( 'keepalive' => true )); ?>

This display :

2::fopen(Zend/Validate/Hostname/Com.php): failed to open stream: No such file or directory::/webdir/library/Zend/Loader.php::160

With www.google.fr :

2::fopen(Zend/Validate/Hostname/Fr.php): failed to open stream: No such file or directory::/webdir/library/Zend/Loader.php::160

And with many other extensions (every extension missed in the folder Zend/Validate/Hostname/). This bug is related to the ZF-3829 & ZF-3020 (and other api who use Zend_Validate_Hostname i think).

Edit : i have downgrad my svn external to the version 1.5.3 and there the same bug...

Regards.

Comments

As noted this is related to ZF-2900

If you use a custom error handler then all errors, even suppressed ones, are sent to your error handler.

You need to check the value of error_reporting(). If this is set to zero (0) then the error has come from a suppressed error and you need to ignore it..

I would close this issue but there seems to be a JIRA error stopping me (this has been reported to Ralph Shindler & Matthew

Hi ,Simon. I find I can edit this issue without any error, so I close it for You and Alexander .