From 702c95cf779226550af6b33255a8e1b28ccca428 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Tue, 25 Mar 2014 11:21:39 +0100 Subject: update documentation about threads --- documentation/extension-callbacks.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'documentation') diff --git a/documentation/extension-callbacks.html b/documentation/extension-callbacks.html index defa550..ae266de 100644 --- a/documentation/extension-callbacks.html +++ b/documentation/extension-callbacks.html @@ -198,15 +198,15 @@ void updateCounters()

Good rules of thumb for writing native extensions with PHP-CPP therefore are: -

    +
+
  • Only call other native functions, and don't call back into PHP
  • +

    - In our opinion, these rules should not not be limiting for you. The use of global - variables is not considered a very good software design, so you were probably - not even using them, and the reason why you are writing a native extension is - because you want to get away from PHP. Calling back to (slow) PHP is the last - thing you want to do when your application has finally reached native code. + These rules are not as limiting as they appear. The use of global + variables is not considered excellent software design, so you were probably + not even using them, and the reason why you are writing a native extension + in the first place is because you wanted to get away from PHP. Calling (slow) + PHP functions from your extension should be prevented anyway.

    -- cgit v1.2.3