Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
demonkoryu opened this Issue · 5 comments

4 participants

@demonkoryu

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 referenced this issue from a commit in demonkoryu/EdpSuperluminal
@demonkoryu demonkoryu Add class patching method to allow for dynamic file inclusion. See Ev…
…anDotPro/EdpSuperLuminal/#11.
fccf3f7
@demonkoryu demonkoryu referenced this issue from a commit in demonkoryu/EdpSuperluminal
@demonkoryu demonkoryu Add class patching method to allow for dynamic file inclusion. See Ev…
…anDotPro/EdpSuperLuminal/#11.
d234021
@demonkoryu demonkoryu referenced this issue from a commit in demonkoryu/EdpSuperluminal
@demonkoryu demonkoryu Add class patching method to allow for dynamic file inclusion. See Ev…
…anDotPro/EdpSuperLuminal/#11.
6ff0181
@demonkoryu demonkoryu referenced this issue from a commit in demonkoryu/EdpSuperluminal
@demonkoryu demonkoryu Add class patching method to allow for dynamic file inclusion. See Ev…
…anDotPro/EdpSuperLuminal/#11.
1a5f946
@psychowico

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

@demonkoryu

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

@demonkoryu

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

@grizzm0

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

@EvanDotPro
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.

@EvanDotPro EvanDotPro closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.