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

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

Comments

Projects
None yet
4 participants

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)]);

@demonkoryu demonkoryu added a commit to demonkoryu/EdpSuperluminal that referenced this issue Nov 2, 2012

@demonkoryu demonkoryu Add class patching method to allow for dynamic file inclusion. See Ev…
…anDotPro/EdpSuperLuminal/#11.
fccf3f7

@demonkoryu demonkoryu added a commit to demonkoryu/EdpSuperluminal that referenced this issue Nov 2, 2012

@demonkoryu demonkoryu Add class patching method to allow for dynamic file inclusion. See Ev…
…anDotPro/EdpSuperLuminal/#11.
d234021

@demonkoryu demonkoryu added a commit to demonkoryu/EdpSuperluminal that referenced this issue Nov 2, 2012

@demonkoryu demonkoryu Add class patching method to allow for dynamic file inclusion. See Ev…
…anDotPro/EdpSuperLuminal/#11.
6ff0181

@demonkoryu demonkoryu added a commit to demonkoryu/EdpSuperluminal that referenced this issue Nov 2, 2012

@demonkoryu demonkoryu Add class patching method to allow for dynamic file inclusion. See Ev…
…anDotPro/EdpSuperLuminal/#11.
1a5f946

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

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

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

grizzm0 commented Jan 25, 2013

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

Owner

EvanDotPro commented Feb 4, 2013

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.

@EvanDotPro EvanDotPro closed this Feb 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment