I have googled for a long time but still cannot figure out why the installation does not work.
I have a machine installed with Ubuntu and php version 5.3.6-13ubuntu3.10 installed, as I want pthreads feature, I try to recompile the downloaded PHP (from the official site, 5.4.14) and recompile with the pthreads enabled, all the processes seem successful, I can recompile and install the php successfully, and type in php -v to check if the version has been upgrade, it shows as follows:
PHP 5.4.14 (cli) (built: May 9 2013 14:27:10)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
And the pthreads seems to be installed correctly
Build process completed successfully Installing
install ok: channel://pecl.php.net/pthreads-0.0.44 Extension pthreads
enabled in php.ini
but the when I restart the apache and run the phpinfo() function, the version is not the same as the above (still 5.3.6-13ubuntu3.10), and the pthreads extension still cannot function properly, encounter the following error)
Fatal error: Class 'Thread' not found
Is there anything I have missed/wrong during the whole process?
Thanks a lot for the help!