# zend 2.1 function export request

- Thread: https://externals.io/message/15197
- Original archive: https://news-web.php.net/php.internals/15197
- Started by val khokhlov on 2005-02-25T21:27:09+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #15197 — val khokhlov — 2005-02-25T21:27:09+00:00

URL: https://externals.io/message/15197#15197

Hello,

      Zend developers: can you, please, consider exporting

void zend_vm_set_opcode_handler(zend_op* op)

      i can't help using it to restore opcode handler ptrs after loading a
pre-compiled opcodes array

-- 
Best regards,
 val                          mailto:val@vk.kiev.ua

---

## #15213 — Derick Rethans — 2005-02-27T12:24:42+00:00

URL: https://externals.io/message/15197#15213 · In reply to: #15197

>       Zend developers: can you, please, consider exporting
>
> void zend_vm_set_opcode_handler(zend_op* op)
>
>       i can't help using it to restore opcode handler ptrs after loading a
> pre-compiled opcodes array

Write a patch please?

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #15218 — val khokhlov — 2005-02-27T18:11:40+00:00

URL: https://externals.io/message/15197#15218 · In reply to: #15213

Hello Derick,

Sunday, February 27, 2005, 2:24:42 PM, you wrote:

DR> On Fri, 25 Feb 2005, val khokhlov wrote:

> > […]
DR> Write a patch please?

--- zend_vm.h.orig      Sun Feb 27 20:05:21 2005
+++ zend_vm.h   Sun Feb 27 20:05:45 2005
@@ -22,7 +22,7 @@
 #define ZEND_VM_H

 ZEND_API void zend_vm_use_old_executor();
-void zend_vm_set_opcode_handler(zend_op* opcode);
+ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode);

 #define ZEND_VM_SET_OPCODE_HANDLER(opline) zend_vm_set_opcode_handler(opline)




-- 
Best regards,
 val                            mailto:val@vk.kiev.ua

---

## #15220 — Antony Dovgal — 2005-02-27T21:06:40+00:00

URL: https://externals.io/message/15197#15220 · In reply to: #15218

On Sun, 27 Feb 2005 20:11:40 +0200
val khokhlov <val@vk.kiev.ua> wrote:

> Hello Derick,
> 
> Sunday, February 27, 2005, 2:24:42 PM, you wrote:
> 
> DR> On Fri, 25 Feb 2005, val khokhlov wrote:
> 
> > […]
> DR> Write a patch please?
> 
> --- zend_vm.h.orig      Sun Feb 27 20:05:21 2005
> +++ zend_vm.h   Sun Feb 27 20:05:45 2005
> @@ -22,7 +22,7 @@
>  #define ZEND_VM_H
> 
>  ZEND_API void zend_vm_use_old_executor();
> -void zend_vm_set_opcode_handler(zend_op* opcode);
> +ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode);
> 
>  #define ZEND_VM_SET_OPCODE_HANDLER(opline)
>  #zend_vm_set_opcode_handler(opline)

Val, see also zend_vm_gen.php, it generates zend_vm_execute.h,
which contains zend_vm_set_opcode_handler's body.

-- 
Wbr, 
Antony Dovgal aka tony2001
antony@zend.com
