What is the use of op_array_persist and op_array_persist_calc
| From: | Barel | Date: | Sun, 10 Jan 2021 20:26:01 +0000 |
| Subject: | What is the use of op_array_persist and op_array_persist_calc | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112836@lists.php.net to get a copy of this message | ||
Looking at the info for Zend Extensions I have noticed that there are two
members in the zend_extension struct called "op_array_persist" and
"op_array_persist_calc". Looking at the PHP source code I can see that
these hooks are used to add some data in memory to the opcode array but I
can't think of a use case for this. Could someone explain what these hooks
are for? Is there any example that I could check?
Cheers
Barel