# IS_TYPE in zend_compile.c

- Thread: https://externals.io/message/1361
- Original archive: https://news-web.php.net/php.internals/1361
- Started by John Coggeshall on 2003-05-07T17:48:51+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

---

## #1361 — John Coggeshall — 2003-05-07T17:48:51+00:00

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

About 16 hours ago it looks like someone modified zend_compile.c to fix
a bug... the current head has around line 1161 (clean CVS checkout):

if (type_hint->op_type == IS_TYPE) {
	opline->opcode = ZEND_VERIFY_TYPE;
} else {
	opline->opcode = ZEND_VERIFY_INSTANCEOF;
}

But now i can't seem to compile it anymore... where is IS_TYPE defined?
I'm assuming if it exists at all, it has to have been in the engine for
awhile looking at the commit times (zend_compile.c is the only file
modified in the past 16 hours)... either way, neither myself or the
compiler can find it.

Perhaps there is just something broken about my system... but I thought
I'd make sure before I went on a goose chase.

John


-- 
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
John Coggeshall
john at coggeshall.org                      http://www.coggeshall.org/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~

---

## #1364 — Jan Schneider — 2003-05-07T21:35:49+00:00

URL: https://externals.io/message/1361#1364 · In reply to: #1361

John Coggeshall wrote:
> About 16 hours ago it looks like someone modified zend_compile.c to fix
> a bug... the current head has around line 1161 (clean CVS checkout):
> 
> if (type_hint->op_type == IS_TYPE) {
> 	opline->opcode = ZEND_VERIFY_TYPE;
> } else {
> 	opline->opcode = ZEND_VERIFY_INSTANCEOF;
> }
> 
> But now i can't seem to compile it anymore... where is IS_TYPE defined?
> I'm assuming if it exists at all, it has to have been in the engine for
> awhile looking at the commit times (zend_compile.c is the only file
> modified in the past 16 hours)... either way, neither myself or the
> compiler can find it.
> 
> Perhaps there is just something broken about my system... but I thought
> I'd make sure before I went on a goose chase.

No, I can confirm this. Updated a minute ago.

Jan.

---

## #1365 — Moriyoshi Koizumi — 2003-05-07T21:45:31+00:00

URL: https://externals.io/message/1361#1365 · In reply to: #1361

Marcus apparently left to the conference with the build broken.

My workaround:
$ cvs diff -r 1.414 Zend/zend_compile.c | patch -p0 -R

Moriyoshi

John Coggeshall <john@coggeshall.org> wrote:

> About 16 hours ago it looks like someone modified zend_compile.c to fix
> a bug... the current head has around line 1161 (clean CVS checkout):
> 
> if (type_hint->op_type == IS_TYPE) {
> 	opline->opcode = ZEND_VERIFY_TYPE;
> } else {
> 	opline->opcode = ZEND_VERIFY_INSTANCEOF;
> }
> 
> But now i can't seem to compile it anymore... where is IS_TYPE defined?
> I'm assuming if it exists at all, it has to have been in the engine for
> awhile looking at the commit times (zend_compile.c is the only file
> modified in the past 16 hours)... either way, neither myself or the
> compiler can find it.
> 
> Perhaps there is just something broken about my system... but I thought
> I'd make sure before I went on a goose chase.
> 
> John

---

## #1366 — Edin Kadribasic — 2003-05-07T22:27:26+00:00

URL: https://externals.io/message/1361#1366 · In reply to: #1365

> Marcus apparently left to the conference with the build broken.
>
> My workaround:
> $ cvs diff -r 1.414 Zend/zend_compile.c | patch -p0 -R

I reverted his patch so cvs head should be building again. Hopefully
Marcus can commit a complete patch once he gets back from Amsterdam :)

Edin
