@@ -103,7 +103,7 @@ Why need a Zend extension ?
103
103
Let us warn you : until you have **very advanced ** knowledge on PHP internal's Vritual Machine, and until you need to
104
104
hook deep into it, you shouldn't need a Zend extension, but a PHP extension will be enough.
105
105
106
- Today's most commonly known Zend extensions into PHP's world are OPCache, XDebug , phpdbg and Blackfire. But you know
106
+ Today's most commonly known Zend extensions into PHP's world are opcache, Xdebug , phpdbg and Blackfire. But you know
107
107
dozens of PHP extensions next to that don't you ?! That's a clear sign that :
108
108
109
109
* You should not need a Zend extension for a very big part of your problematics
@@ -215,7 +215,7 @@ In *practice*, what we can say about it is that :
215
215
Until some distributions (FreeBSD hear us) change that ...
216
216
217
217
* Zend extensions are triggered **before ** PHP extensions when a request shows in. That means they got a chance to modify
218
- the engine about the current request to come, so that PHP extensions use that modified context. OPCache uses such a
218
+ the engine about the current request to come, so that PHP extensions use that modified context. Opcache uses such a
219
219
trick so that it can perform its complex tasks before any extension had a chance to prevent it to.
220
220
221
221
* Same for request shutdown : Zend extensions can assume every PHP extension has shut down the request.
@@ -301,7 +301,7 @@ That's all for now. Let's fill-in those empty-body functions now::
301
301
302
302
Like said before, ``message_handler() `` is a special hook that Zend extensions may declare to be noticed when another
303
303
Zend extension get loaded. But be careful of the order. You must register our "pib" Zend extension first, then
304
- another Zend extension (like OPCache ) after that, as the ``message_handler() `` is only called when a Zend extension is
304
+ another Zend extension (like opcache ) after that, as the ``message_handler() `` is only called when a Zend extension is
305
305
loaded you obviously need to be loaded before to declare it. Chicken and egg.
306
306
307
307
Then we'll start to dive into the engine, with our ``op_array_handler `` hook::
@@ -479,10 +479,10 @@ How is that possible ? And what for ?.
479
479
Well there are several answers to such a question :
480
480
481
481
* To :doc: `register new PHP functions <php_functions >`, a PHP extension is better than a Zend extension, as it already
482
- knows how to do and has been designed for that specific purpose first. That would be pity not to use it. OPCache
482
+ knows how to do and has been designed for that specific purpose first. That would be pity not to use it. Opcache
483
483
does that.
484
484
* If you need to register about all the hooks in the full lifecycle, you'll obviously need both sides
485
- * If you need to master the order Zend extensions are loaded, f.e to get loaded after OPCache , you will need to be
485
+ * If you need to master the order Zend extensions are loaded, f.e to get loaded after opcache , you will need to be
486
486
hybrid
487
487
488
488
The trick is simple, choose between :
@@ -656,7 +656,7 @@ Our PHP extension is effectively called "pib" and shows up, and our Zend extensi
656
656
"pib-zend-extension" and shows up as well. We chose two different names for both parts, we could have chosen the same
657
657
name.
658
658
659
- .. note :: OPCache and Xdebug use such an hybrid model, they are Zend extensions, but they need to publish PHP
659
+ .. note :: Opcache and Xdebug use such an hybrid model, they are Zend extensions, but they need to publish PHP
660
660
functions and thus they are also PHP extensions to do so.
661
661
662
662
Hybrid PHP extension master, Zend extension slave
0 commit comments