SKPHP1989 / phpws

Automatically exported from code.google.com/p/phpws
0 stars 0 forks source link

Fatal error: Cannot use object of type SplObjectStorage as array in ---t/websocket.server.php on line 301 #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

Not much of a server-guy here, but when I try to run the websocket TEST 
client.html I get a fatal error thrown as soon as I enter & send a message 
through a client. Have looked around but cannot seem to find solution. Is this 
a known problem ?

2012-12-01 17:02:35 | PHP WebSocket Server
2012-12-01 17:02:35 | ========================================
2012-12-01 17:02:35 | Server Started : 2012-12-01 17:02:35
2012-12-01 17:02:35 | Listening on   : tcp://0.0.0.0:12345
2012-12-01 17:02:35 | ========================================
2012-12-01 17:02:39 | Socket accepted
2012-12-01 17:02:39 | HYBI Response SENT!
[DEMO] 14 connected
2012-12-01 17:03:17 | Socket accepted
2012-12-01 17:03:17 | HYBI Response SENT!
[DEMO] 15 connected
2012-12-01 17:03:27 | Socket accepted
2012-12-01 17:03:27 | HYBI Response SENT!
[DEMO] 16 connected
2012-12-01 17:03:32 | dispatchMessage

Fatal error: Cannot use object of type SplObjectStorage as array in 
****/websocket.server.php on line 301
[]#

Original issue reported on code.google.com by via4...@gmail.com on 2 Dec 2012 at 12:07

GoogleCodeExporter commented 8 years ago
Which PHP version are you using? PHP 5.3 is required, SplObjectStorage 
implements ArrayAccess.

Original comment by ch...@devristo.com on 15 Dec 2012 at 11:35

GoogleCodeExporter commented 8 years ago
I too am receiving the same error. I am running php 5.3.13

Original comment by andr...@tehw00t.net on 20 Dec 2012 at 7:00