summaryrefslogtreecommitdiff
path: root/Lib/php/phprun.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/php/phprun.swg')
-rw-r--r--Lib/php/phprun.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/php/phprun.swg b/Lib/php/phprun.swg
index 6d922bcad..00d8bc560 100644
--- a/Lib/php/phprun.swg
+++ b/Lib/php/phprun.swg
@@ -153,7 +153,7 @@ SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject
}
Z_SET_REFCOUNT_P(z, 1);
Z_SET_ISREF_P(z);
- zend_hash_update(HASH_OF(z), (char*)"_cPtr", sizeof("_cPtr"), (void*)&resource, sizeof(zval), NULL);
+ zend_hash_update(HASH_OF(z), (char*)"_cPtr", sizeof("_cPtr"), (void*)&resource, sizeof(zval*), NULL);
}
return;
}