Magento 2.0.x and 2.1.x both depend on the «ctype» PHP extension, but they do not document it

An example of a ctype_* function uage in the Magento 2.0.x branch

But the official system requirements document for Magento 2.0.x does not methion it:
http://devdocs.magento.com/guides/v2.0/install-gde/system-requirements-tech.html#required-php-extensions

An example of a ctype_* function uage in the Magento 2.1.x branch

But the official system requirements document for Magento 2.1.x does not methion it:
http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html#required-php-extensions

Magento 2 does document its dependence on the ctype PHP extension

http://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html#required-php-extensions

The ctype PHP extension is not ebabled by default in some Unix-like systems (e.g., FreeBSD)

http://php.net/manual/en/ctype.installation.php#119977

On FreeBSD, this library is NOT included automatically.
It must be manually installed.
This can be done with the following command:
pkg install php70-ctype

See also: