1

Well this is my first time on phalcon, I want to try it out, but I can't activate the extension. I am using WampServer 2.5 x64.

Here's my php version:

phpinfo()

According to this, I tried 2 versions from their download page:

phalcon download page

Restarted wamp several times, but I still get a warning sign on the extension:

enter image description here

AStopher
  • 4,207
  • 11
  • 50
  • 75
Skatch
  • 2,112
  • 2
  • 14
  • 32
  • 1
    I'm guessing 'NTS' means 'Not Thread Safe', you need to look at your PHP installation to see if your PHP installation is Thread-Safe (TS), and then use the right DLL. – AStopher Mar 12 '15 at 11:44
  • 1
    Yay, after I added the `extension=php_phalcon.dll` line and changed the .dll file to thread safe, it activated. Thanks! – Skatch Mar 12 '15 at 11:49
  • I've provided the answer as an answer below, I'd be grateful if you could accept + upvote it. – AStopher Mar 12 '15 at 12:06

1 Answers1

1

NTS means Not-Thread-Safe, information on PHP's Thread Safety feature can be found here.

From the question I linked:

A Thread Safe version should be used if you install PHP as an Apache module, as a Worker MPM (multi-processing model).

The Non Thread Safe version should be used if you install PHP as a CGI binary.

You need to find out whether your PHP installation is thread-safe, to do so:

  1. Navigate to your PHP Info page (if you do not have one, create a PHP file with <?php phpinfo(); ?>.
  2. Load the page, and look for the Thread Safety line; if enabled it will say Enabled (or True on some installations).

If Thread Safety is enabled, you must use the thread safe version of the extension, which in your case is Phalcon 1.3.4 - Windows x64 for PHP 5.5.0 (VC11).

Community
  • 1
  • 1
AStopher
  • 4,207
  • 11
  • 50
  • 75
  • Did you get the last line wrong? Cause Thread safety is enabled and it worked with `Phalcon 1.3.4 - Windows x64 for PHP 5.5.0 (VC11)`. :) – Skatch Mar 12 '15 at 12:30
  • @ДејанИгњатов I did, d'oh! Thanks for pointing that out, now corrected. – AStopher Mar 12 '15 at 12:32
  • @ʎǝʞuoɯɹǝqʎɔ Just for future reference. WAMPServer always required thread safe modules as PHP is configured to run as an Apache module and it is run on windows, therefore it is a threaded model and not a forked model. – RiggsFolly Mar 12 '15 at 19:24