Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First steps #1

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 6 comments
Closed

First steps #1

GoogleCodeExporter opened this issue Mar 13, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. When trying to run first time I get: 
Parse error: parse error, unexpected T_CLASS in
/var/www/pokerlingo.org/htdocs/chat/webchat2-1.0/libs/socket.php on line 14 


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

* Linux kahuna 2.6.11-gentoo-r11 #3 SMP Wed Jun 29 23:08:58 CEST 2005 i686
Intel(R) Pentium(R) 4 CPU 2.66GHz GenuineIntel GNU/Linux

* PHP version 5.1.x

Original issue reported on code.google.com by [email protected] on 12 Apr 2007 at 7:05

@GoogleCodeExporter
Copy link
Author

Guess I might actually be using php 4.x

Original comment by [email protected] on 12 Apr 2007 at 7:10

Attachments:

@GoogleCodeExporter
Copy link
Author

What I do get now is two errors: 

[ERROR] /var/www/pokerlingo.org/htdocs/webchat2-1.0/libs/socketServer.php:5 Use 
of
undefined constant AF_INET - assumed 'AF_INET'

Strict Standards: date(): It is not safe to rely on the system's timezone 
settings.
Please use the date.timezone setting, the TZ environment variable or the
date_default_timezone_set() function. In case you used any of those methods and 
you
are still getting this warning, you most likely misspelled the timezone 
identifier.
We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in
/var/www/pokerlingo.org/htdocs/webchat2-1.0/chatLog.php on line 26

[ERROR] /var/www/pokerlingo.org/htdocs/webchat2-1.0/libs/socketServer.php:5 Use 
of
undefined constant SOCK_STREAM - assumed 'SOCK_STREAM'

Strict Standards: date(): It is not safe to rely on the system's timezone 
settings.
Please use the date.timezone setting, the TZ environment variable or the
date_default_timezone_set() function. In case you used any of those methods and 
you
are still getting this warning, you most likely misspelled the timezone 
identifier.
We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in
/var/www/pokerlingo.org/htdocs/webchat2-1.0/chatLog.php on line 26

Original comment by [email protected] on 12 Apr 2007 at 7:26

@GoogleCodeExporter
Copy link
Author

Hey Kukost,

the AF_INET error i've seen before too, think it was on a BSD box, somehow that 
define wasn't included in php, though it should've been... easy fix is to do:

if (!defined('AF_INET')) {
   define('AF_INET', 2);
}

And place that somewhere before socketServer.php line 5 :-)

Second error however has me worried, are you sure you have socket extentions 
included in your php version? PHP 5.2.1 (+/-) is required, with socket extention

You can check by making an info.php with "<? phpinfo(); ?>" and seeing if 
sockets 
are mentioned in there.

Anyhow, this can be defined too:
if (!defined('SOCK_STREAM')) {
   define('SOCK_STREAM', 1);
}


g'luck!

Original comment by chabotc on 13 Apr 2007 at 9:54

@GoogleCodeExporter
Copy link
Author

Thanks for the help.. my phpinfo is telling me --disable-sockets so I guess Ill
recompile it.. :)

Original comment by [email protected] on 13 Apr 2007 at 3:30

@GoogleCodeExporter
Copy link
Author

PHP Parse error:  parse error, unexpected T_CLASS in
/var/www/html/webchat2-1.0/libs/socket.php on line 14


Why?????

My sockets is enabled!!!!!

Original comment by [email protected] on 16 Apr 2007 at 2:09

@GoogleCodeExporter
Copy link
Author

Original comment by chabotc on 18 Apr 2007 at 2:33

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant