sergejey / majordomo

Home automation platform
MIT License
387 stars 159 forks source link

common.class.php #1132

Open andy040670 opened 4 days ago

andy040670 commented 4 days ago

В common.class.php в строке 597 опечатка: $errorInfo = curl_strerror(curl_errno($ch)); Полагаю, что должно быть так: $errorInfo = curl_strerror(curl_error($ch));

whitevast commented 3 days ago

Нет, тут все правильно. curl_error($ch) может НЕ выдавать описание при том, что curl_errno($ch) будет показывать код ошибки. Сам лично с этим столкнулся. Согласно замечанию к curl_error() с php.net: "curl_error is not a textual representation of curl_errno. It's an actual error message. If you want textual representation of error code, look for curl_strerror." в данной строке мы получаем описание кода ошибки curl_errno($ch).

andy040670 commented 3 days ago

Понятно, отстал от жизни.