Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
86 views
in Technique[技术] by (71.8m points)

PHP Error socket_create(): Unable to create socket [10047]

I have a line in a PHP library as follows:

$this->icpSocket = socket_create(AF_UNIX, SOCK_DGRAM, 0);

When I run the script vide CLI, I am getting the following error:

socket_create(): Unable to create socket [10047]: An address incompatible with the requested protocol was used

Why is this error being thrown? And how to resolve it?

I am using PHP 7.4.14 on Windows 10.

question from:https://stackoverflow.com/questions/65833114/php-error-socket-create-unable-to-create-socket-10047

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...