- Содержание статьи
Описание и решение трудности
При использовании интернет-приложения phpMyAdmin на свежеустановленной системе, при заходе на страничку экспорта, столкнулся со последующими ошибками:

Use of undefined constant CURLOPT_CONNECTTIMEOUT — assumed ‘CURLOPT_CONNECTTIMEOUT’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLOPT_MAXREDIRS — assumed ‘CURLOPT_MAXREDIRS’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLOPT_PROTOCOLS — assumed ‘CURLOPT_PROTOCOLS’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLPROTO_HTTPS — assumed ‘CURLPROTO_HTTPS’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLPROTO_HTTP — assumed ‘CURLPROTO_HTTP’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLPROTO_FTP — assumed ‘CURLPROTO_FTP’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLPROTO_FTPS — assumed ‘CURLPROTO_FTPS’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLOPT_SSL_VERIFYHOST — assumed ‘CURLOPT_SSL_VERIFYHOST’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLOPT_SSL_VERIFYPEER — assumed ‘CURLOPT_SSL_VERIFYPEER’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLOPT_TIMEOUT — assumed ‘CURLOPT_TIMEOUT’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLOPT_USERAGENT — assumed ‘CURLOPT_USERAGENT’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLOPT_FAILONERROR — assumed ‘CURLOPT_FAILONERROR’ (this will throw an Error in a future version of PHP)
Use of undefined constant CURLOPT_RETURNTRANSFER — assumed ‘CURLOPT_RETURNTRANSFER’ (this will throw an Error in a future version of PHP)
Как оказалось, в системе не был установлен модуль curl для php. Соответственно, для исправления ошибки достаточно лишь установить данный модуль. Например, в Debian/Ubuntu это делается следующей командой:
apt-get install php-curl

Добавить комментарий