summaryrefslogtreecommitdiff
path: root/Zend/zend_execute.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-05-25 18:32:35 +0800
committerXinchen Hui <laruence@php.net>2014-05-25 18:32:35 +0800
commitc2082ece52bcb5343ae0feb460807596cd79d691 (patch)
tree3f85e08b0389513932a60f8164dfe27a30884876 /Zend/zend_execute.c
parent5d7f82745f46025af4fd89f7e3f3883e92d55509 (diff)
downloadphp-git-c2082ece52bcb5343ae0feb460807596cd79d691.tar.gz
Fixed apply_func_t (they should be broken before)
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r--Zend/zend_execute.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 1979f59b09..fa0e4634f3 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -1452,26 +1452,28 @@ static inline zend_brk_cont_element* zend_brk_cont(int nest_levels, int array_of
#if ZEND_INTENSIVE_DEBUGGING
-#define CHECK_SYMBOL_TABLES() \
- zend_hash_apply(&EG(symbol_table), (apply_func_t) zend_check_symbol TSRMLS_CC); \
- if (&EG(symbol_table)!=EG(active_symbol_table)) { \
- zend_hash_apply(EG(active_symbol_table), (apply_func_t) zend_check_symbol TSRMLS_CC); \
+#define CHECK_SYMBOL_TABLES() \
+ zend_hash_apply(&EG(symbol_table), zend_check_symbol TSRMLS_CC); \
+ if (&EG(symbol_table)!=EG(active_symbol_table)) { \
+ zend_hash_apply(EG(active_symbol_table), zend_check_symbol TSRMLS_CC); \
}
-static int zend_check_symbol(zval **pz TSRMLS_DC)
+static int zend_check_symbol(zval *pz TSRMLS_DC)
{
- if (Z_TYPE_PP(pz) > 9) {
+ if (Z_TYPE_P(pz) == IS_INDIRECT) {
+ pz = Z_INDIRECT_P(pz);
+ }
+ if (Z_TYPE_P(pz) > 10) {
fprintf(stderr, "Warning! %x has invalid type!\n", *pz);
/* See http://support.microsoft.com/kb/190351 */
#ifdef PHP_WIN32
fflush(stderr);
#endif
- } else if (Z_TYPE_PP(pz) == IS_ARRAY) {
- zend_hash_apply(Z_ARRVAL_PP(pz), (apply_func_t) zend_check_symbol TSRMLS_CC);
- } else if (Z_TYPE_PP(pz) == IS_OBJECT) {
-
+ } else if (Z_TYPE_P(pz) == IS_ARRAY) {
+ zend_hash_apply(Z_ARRVAL_P(pz), zend_check_symbol TSRMLS_CC);
+ } else if (Z_TYPE_P(pz) == IS_OBJECT) {
/* OBJ-TBI - doesn't support new object model! */
- zend_hash_apply(Z_OBJPROP_PP(pz), (apply_func_t) zend_check_symbol TSRMLS_CC);
+ zend_hash_apply(Z_OBJPROP_P(pz), zend_check_symbol TSRMLS_CC);
}
return 0;