Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include('Hostname/Com.php'), no such file or directory #11

Closed
demonkoryu opened this issue Nov 2, 2012 · 5 comments
Closed

include('Hostname/Com.php'), no such file or directory #11

demonkoryu opened this issue Nov 2, 2012 · 5 comments

Comments

@demonkoryu
Copy link

I'm having a problem with PHP classes like Zend\Validator\Hostname, which dynamically include resource-type PHP files relative to their own path. The error occurs here:

$regexChars += include ($this->validIdns[strtoupper($this->tld)]);
@wiktor-obrebski
Copy link

yeah, this make this module unusable when you make simple email validation somewhere.

@demonkoryu
Copy link
Author

I'll have to rework the commit above; because it contains a private constant APPLICATION_ZF2_LIB_ROOT.

@demonkoryu
Copy link
Author

Well, I found no other way than to have the ZF2 library root to be defined somewhere. Or is there...?

@grizzm0
Copy link

grizzm0 commented Jan 25, 2013

This has now been fixed in the ZF2 code by adding DIR to the validator path.
zendframework/zendframework@526de7d

@EvanDotPro
Copy link
Owner

Per @grizzm0's comment, I'm going to close this issue if it's no long a problem. Feel free to re-open it if you're still seeing an issue after updating ZF2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants