-
April 5th, 2015, 06:25 AM
#1
php lighstreamer : PHP Fatal error : Class 'Thread' not found
hi,
I'm trying to run php helloworld.php (in command mode) and I got this error message :
PHP Fatal error : Class 'Thread' not found
I don't see any class Thread in files in..\Lightstreamer\adapters\remote\ directory ..?
Any idea to fix this error ?
thank you for your help
Last edited by kimi; April 5th, 2015 at 07:56 AM.
-
April 5th, 2015, 11:48 PM
#2
Following
hi,
Forgot to install pthreads.dll module.
Unfortunately I got this error message:
PHP Startup ptrhreads: unable to initialize module.
Module compile with module API=20131226
PHP compiled with module API=20121212
These options need to match.
and I can't find online any pthreads.dll module (compiled API=20121212)
Do you know any website that can help me to find the right compiled module ?
thanks for your help

Originally Posted by
kimi
hi,
I'm trying to run php helloworld.php (in command mode) and I got this error message :
PHP Fatal error : Class 'Thread' not found
I don't see any class Thread in files in..\Lightstreamer\adapters\remote\ directory ..?
Any idea to fix this error ?
thank you for your help
-
April 6th, 2015, 05:23 PM
#3
Hi kimi,
could you please provide us with detailed information about your php environment? Simply run the command from a prompt:
php -i
and report here the following lines:
PHP Version
Architecture
PHP API
PHP Extension
PHP Extension Build
Thread Safety
As already explained in the GitHub pages, both PHP demos have been successfully tested on the following environments:
- Windows 7 and 8, with PHP version VC 11 Thread Safe for X86 and pthreed module version 2.0.10-5.6-ts-vc11
- Ubuntu Linux version 14.10, with PHP version 5.6.5 (compiled with the --enable-maintainer-zts flag) and pthread module version 2.0.10, installed as a pecl extension.
Furthermore, here you can find a complete list of all downloadable pthread modules, but it is important to download and install the right module according to the PHP installation.
Please get back to us for any further clarification.
Regards,
Gianluca
-
April 8th, 2015, 01:33 PM
#4
hi,
Here's the informations :
PHP Version 5.2.16
Architecture=x86
PHP API=20041225
PHP Extension=20060613
Thread Safety=enabled
It's a tomcat installation with php:
I've followed the installation procedure below:
https://joseluisbz.wordpress.com/201...h-tomcat-only/
-
April 8th, 2015, 03:55 PM
#5
Hi Kimi,
in a Windows environments, both demos have been tested with PHP version 5.6.5.
Is there any chance you can upgrade your PHP platform?
Regards,
Gianluca
Similar Threads
-
By mbenson in forum Client SDKs
Replies: 2
Last Post: March 17th, 2014, 12:59 PM
-
By msgiribabu in forum Adapter SDKs
Replies: 1
Last Post: January 31st, 2011, 08:47 AM
-
By oxid in forum Adapter SDKs
Replies: 4
Last Post: February 5th, 2010, 04:12 PM
-
By tuongkha in forum Adapter SDKs
Replies: 2
Last Post: November 6th, 2007, 05:13 AM
-
Replies: 7
Last Post: September 21st, 2007, 11:47 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 12:15 AM.
Bookmarks