From 702c95cf779226550af6b33255a8e1b28ccca428 Mon Sep 17 00:00:00 2001
From: Emiel Bruijntjes
Good rules of thumb for writing native extensions with PHP-CPP therefore
are:
-
+
+
- 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