Issue Type: Bug Created: 2011-06-02T10:45:41.000+0000 Last Updated: 2011-06-06T10:31:30.000+0000 Status: Closed Fix version(s): Reporter: ivan klun (vanzlmalc) Assignee: Kazusuke Sasezaki (sasezaki) Tags: - Zend\Mail
Related issues: Attachments:
Creating a new smtp transport with
<pre class="highlight"> new \Zend\Mail\Transport\Smtp('hostname', $config)
results in an error: Warning: include_once(Zend\Validator\Hostname\Hostname.php) [function.include-once]: failed to open stream...
The reason is that Hostname.php is located in Zend\Validator and not in Zend\Validator\Hostname. I solved the issue by hacking Zend\Mail\AbstractProtocol.php constructor:
<pre class="highlight"> //before: $this->_validHost->addValidator(new HostnameValidator\Hostname(HostnameValidator\Hostname::ALLOW_ALL)); //new: $this->_validHost->addValidator(new Validator\Hostname(Validator\Hostname::ALLOW_ALL));
Posted by Kazusuke Sasezaki (sasezaki) on 2011-06-05T15:23:38.000+0000
Hi, ivan. Thank you for report. Which version(commit) were you try? HEAD (git's latest) 's code is written as bellow. https://github.com/zendframework/zf2/…
Posted by ivan klun (vanzlmalc) on 2011-06-06T07:20:16.000+0000
I was using 2.0.0dev1, the bug is solved in 2.0.0dev2. Sorry for wasting your time by reporting a bug in old version.
Posted by Kazusuke Sasezaki (sasezaki) on 2011-06-06T10:31:30.000+0000
closed by above reason
Have you found an issue?
See the Overview section for more details.