Re: ZEND_USER_OPCODE_CONTINUE
| From: | Stefan Esser | Date: | Tue, 17 Feb 2009 21:05:48 +0000 |
| Subject: | Re: ZEND_USER_OPCODE_CONTINUE | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43080@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Johannes,
> while implementing a small toy extension (see [1]) I found out that
> ZEND_USER_OPCODE_CONTINUE seems to misbehave as it doesn't go to the
> next opcode so I ended up in an endless loop executing the same opcode
> again and again.
I guess that is exactly the required behaviour. How else do you want to
implement an user opcode that transfers control to another opline, like
a special kind of jump opcode.
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmbJqwACgkQSuF5XhWr2njnzACgizi7a24c6GxNKTwMPU3SjvFF
KLQAnRz4w6i36ogEmT0LBofAjI5EiULP
=KDZK
-----END PGP SIGNATURE-----