diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-25 11:21:39 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-25 11:21:39 +0100 |
commit | 702c95cf779226550af6b33255a8e1b28ccca428 (patch) | |
tree | 8c966b3410e36e30296da94701ee34d73d913325 /documentation | |
parent | 30c5021cf56bb6fc8f42f38c688ff3f7b223f7b0 (diff) |
update documentation about threads
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/extension-callbacks.html | 16 |
1 files changed, 8 insertions, 8 deletions
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() <p> Good rules of thumb for writing native extensions with PHP-CPP therefore are: - <ol type="1"> + <ul> <li>Do not use global variables</li> - <li>Only call other <i>native</i> functions, and don't call back to PHP</li> - </ol> + <li>Only call other <i>native</i> functions, and don't call back into PHP</li> + </ul> </p> <p> - 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. </p> |