Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

error "not a valid Socket resource"

オープン
#37 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
php
領域
networking

調査の方向性

server.php の 15 行目を開き、invalid resource を報告している socket_select 呼び出しを調べます。サーバーを起動して Chrome で client.html を読み込み、問題を再現してから、警告なしでサーバーの接続が維持されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

auto-migrated Priority-Medium Type-Defect
What steps will reproduce the problem?
1. start the server
2. load the file client.html in Google Chrome
3.

What is the expected output? What do you see instead?
The server is expected to work, but it's showing the following error instead:
Warning: socket_select(): 5 is not a valid Socket resource in 
/home/mink500/public_html/test/server.php on line 15

What version of the product are you using? On what operating system?
r8

Please provide any additional information below.
I tried to make the server work locally using XAMPP (Apache and PHP) but I got 
the same error. I also tried to change ports and follow the instructions in 
this issue:
http://code.google.com/p/phpwebsocket/issues/detail?id=33
But I still get the error "5 is not a valid Socket resource" and the 
application is disconnected. 
I remember that refreshing the page several times I got it running a few months 
ago, but now it's impossible. Besides, it has to work all the time, not just 
after refreshing the page like 20 times.

Original issue reported on code.google.com by [email protected] on 31 Aug 2011 at 3:50

主要言語
PHP
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

et-nik/phpwebsocket のほかの issue

et-nik/phpwebsocket の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。