zendframework/zend-validator

update_hostname_validator.php error

Closed this issue ยท 10 comments

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

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.

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

@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

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

No I copied script from version 2.4.6.

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. ๐Ÿ˜‰

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

Update the zend-validator component.

Thanks, We will update our ZF version.

Good choice. ๐Ÿ‘

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