Martovitskiy
@Martovitskiy

Как победить ошибку Call to undefined function curl_init()?

Скачал php, в phpstorm вроде все ок.
5dcad671e8a3e283961220.png
phpinfo
PHP version: 7.3.11
PHP CLI: D:\Users\ha261287mev1\ProgramFiles\php\php.exe PHP CGI: D:\Users\ha261287mev1\ProgramFiles\php\php-cgi.exe 
Loaded Configuration File: D:\Users\ha261287mev1\ProgramFiles\php\php.ini
Debugger extension: Not Found
Loaded extensions:  bcmath, calendar, Core, ctype, curl, date, dom, filter, hash, iconv, json, libxml, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, readline, Reflection, session, SimpleXML, SPL, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib
Configuration options:  
allow_url_fopen
1
allow_url_include

arg_separator.input
&
arg_separator.output
&
assert.active
1
assert.bail
0
assert.callback

assert.exception
0
assert.quiet_eval
0
assert.warning
1
auto_append_file

auto_detect_line_endings
0
auto_globals_jit
1
auto_prepend_file

bcmath.scale
0
browscap

cli.pager

cli.prompt
\b \>
curl.cainfo

date.default_latitude
31.7667
date.default_longitude
35.2333
date.sunrise_zenith
90.583333
date.sunset_zenith
90.583333
date.timezone

default_charset
UTF-8
default_mimetype
text/html
default_socket_timeout
60
disable_classes

disable_functions

display_errors
1
display_startup_errors
1
doc_root

docref_ext

docref_root

enable_dl

enable_post_data_reading
1
error_append_string

error_log

error_prepend_string

error_reporting
32767
expose_php
1
extension_dir
C:\php\ext
file_uploads
1
filter.default
unsafe_raw
filter.default_flags

from

hard_timeout
2
highlight.comment
#FF8000
highlight.default
#0000BB
highlight.html
#000000
highlight.keyword
#007700
highlight.string
#DD0000
html_errors
0
iconv.input_encoding

iconv.internal_encoding

iconv.output_encoding

ignore_repeated_errors

ignore_repeated_source

ignore_user_abort
0
implicit_flush
1
include_path
.;C:\php\pear
input_encoding

internal_encoding

log_errors
1
log_errors_max_len
1024
mail.add_x_header

mail.force_extra_parameters

mail.log

max_execution_time
0
max_file_uploads
20
max_input_nesting_level
64
max_input_time
-1
max_input_vars
1000
memory_limit
128M
mysqlnd.collect_memory_statistics
1
mysqlnd.collect_statistics
1
mysqlnd.debug

mysqlnd.fetch_data_copy
0
mysqlnd.log_mask
0
mysqlnd.mempool_default_size
16000
mysqlnd.net_cmd_buffer_size
4096
mysqlnd.net_read_buffer_size
32768
mysqlnd.net_read_timeout
86400
mysqlnd.sha256_server_public_key

mysqlnd.trace_alloc

open_basedir

openssl.cafile

openssl.capath

output_buffering
0
output_encoding

output_handler

pcre.backtrack_limit
1000000
pcre.jit
1
pcre.recursion_limit
100000
phar.cache_list

phar.readonly
1
phar.require_hash
1
post_max_size
8M
precision
14
realpath_cache_size
4096K
realpath_cache_ttl
120
register_argc_argv
1
report_memleaks
1
report_zend_debug
0
request_order
GP
sendmail_from

sendmail_path

serialize_precision
-1
session.auto_start
0
session.cache_expire
180
session.cache_limiter
nocache
session.cookie_domain

session.cookie_httponly

session.cookie_lifetime
0
session.cookie_path
/
session.cookie_samesite

session.cookie_secure
0
session.gc_divisor
1000
session.gc_maxlifetime
1440
session.gc_probability
1
session.lazy_write
1
session.name
PHPSESSID
session.referer_check

session.save_handler
files
session.save_path

session.serialize_handler
php
session.sid_bits_per_character
5
session.sid_length
26
session.trans_sid_hosts

session.trans_sid_tags
a=href,area=href,frame=src,form=
session.upload_progress.cleanup
1
session.upload_progress.enabled
1
session.upload_progress.freq
1%
session.upload_progress.min_freq
1
session.upload_progress.name
PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix
upload_progress_
session.use_cookies
1
session.use_only_cookies
1
session.use_strict_mode
0
session.use_trans_sid
0
short_open_tag
1
SMTP
localhost
smtp_port
25
sys_temp_dir

syslog.facility
LOG_USER
syslog.filter
no-ctrl
syslog.ident
php
track_errors
0
unserialize_callback_func

upload_max_filesize
2M
upload_tmp_dir

url_rewriter.hosts

url_rewriter.tags
form=
user_agent

user_dir

user_ini.cache_ttl
300
user_ini.filename
.user.ini
variables_order
GPCS
windows.show_crt_warning
0
xmlrpc_error_number
0
xmlrpc_errors
0
zend.assertions
1
zend.detect_unicode
1
zend.enable_gc
1
zend.multibyte
0
zend.script_encoding

zlib.output_compression

zlib.output_compression_level
-1
zlib.output_handler


в файле phpini
extension=ext/php_curl.dll

Ловлю ошибку:
An uncaught Exception was encountered
Type: Error

Message: Call to undefined function curl_init()

Что не так?
  • Вопрос задан
  • 5776 просмотров
Решения вопроса 1
profesor08
@profesor08 Куратор тега PHP
php.ini -> extension=curl
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы