From a1e5bc535331af6c4e2cbb6197e4b6024de5d472 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Sun, 29 Aug 2004 05:09:06 +0000 Subject: [PATCH] ZE1 stores zce's as *, not ** --- parsekit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parsekit.c b/parsekit.c index d4e20f5..aac39db 100644 --- a/parsekit.c +++ b/parsekit.c @@ -754,7 +754,11 @@ static int php_parsekit_pop_classes(zval *return_value, HashTable *class_table, php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unable to remove pollution from class table: Illegal class entry found."); return FAILURE; } +#ifdef ZEND_ENGINE_2 class_entry = *pce; +#else + class_entry = (zend_class_entry*)pce; +#endif if (class_entry->type != ZEND_USER_CLASS) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unable to remove pollution from class table: " "Found %s where ZEND_USER_CLASS was expected.",