Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

Bitnami LAMP AMI update for Thread class?

$
0
0

Hello,

Love BitNami! We would like to run the following code on our existing Bitnami LAMP AMI. Looks like our current version not configured to run. Any way to install/upgrade?

<?php class My extends Thread { public function run() { / ... / } } $my = new My(); var_dump($my->start()); ?>

Error we get: PHP Fatal error: Class 'Thread' not found in /opt/bitnami/apache2/htdocs/ieweb/helthi/protocols/delete.php on line 2

Current PHP version: PHP 5.2.14 (cli) (built: Oct 7 2010 05:07:15) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

According to http://php.net/manual/en/pthreads.installation.php "To enable pthreads support, configure PHP with --enable-maintainer-zts and --enable-pthreads"


Viewing all articles
Browse latest Browse all 2052

Trending Articles