zendframework / zend-validator

Validator component from Zend Framework
BSD 3-Clause "New" or "Revised" License
181 stars 136 forks source link

update_hostname_validator.php error #216

Closed inarli closed 6 years ago

inarli commented 6 years ago

Hello, Zend framework 2.4.6 Php : 5.6.32

I use Zend framework 2.4.6 and when running update_hostname_validator.php I get following errors;

Called Command:

php vendor/zendframework/zendframework/bin/update_hostname_validator.php

Errors:

PHP Warning: require(/vendor/zendframework/zendframework/bin/../vendor/autoload.php): failed to open stream: No such file or directory in /vendor/zendframework/zendframework/bin/update_hostname_validator.php on line 13

inarli commented 6 years ago

When I added to bin list the command is running successfully:

vendor/zendframework/zendframework/composer.json

"bin": [
    ...
    ...
    "bin/update_hostname_validator.php"
],

I do not know exactly how to proceed.

froschdesign commented 6 years ago

I do not know that the script in this version was already there?!

froschdesign commented 6 years ago

@inarli

When I added to bin list the command is running successfull:

Change never the scripts / files in directory vendor.

Btw. You must update your version 2.4. You missed some security fixes! See: https://github.com/zendframework/zendframework/releases

froschdesign commented 6 years ago

@inarli Have you copied the script from a newer version?

inarli commented 6 years ago

No I copied script from version 2.4.6.

froschdesign commented 6 years ago

The script is only for internal usage of this repository. It changes files of this component. If you do this on your local machine, then all updates will overwritten after a Composer update. Therefore it is not present as command in composer.json.

See: https://github.com/zendframework/zend-validator/blob/master/.travis.yml#L79

I hope this answer helps or brought some light into the dark. 😉

inarli commented 6 years ago

@froschdesign Thank you for replies. But how to update the list of hostnames? Email validator says that the .group extension is invalid.

froschdesign commented 6 years ago

Update the zend-validator component.

inarli commented 6 years ago

Thanks, We will update our ZF version.

froschdesign commented 6 years ago

Good choice. 👍

For further questions please use the forum or the chat. Thanks!