summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_saproxy.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2006-02-07 11:52:45 +0000
committerRob Richards <rrichards@php.net>2006-02-07 11:52:45 +0000
commit8e4671ba01eaed1c4115c18cde01159d3d739ec3 (patch)
tree7493e8bba137d2be6a301fc4971c63a0b08fba12 /ext/com_dotnet/com_saproxy.c
parente1e5c3f3b21adcba04193f571590309942f83085 (diff)
downloadphp-git-8e4671ba01eaed1c4115c18cde01159d3d739ec3.tar.gz
modify get_iterator calls for engine change
fix mem leak with iterators fix object casting for edge case
Diffstat (limited to 'ext/com_dotnet/com_saproxy.c')
-rw-r--r--ext/com_dotnet/com_saproxy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_saproxy.c b/ext/com_dotnet/com_saproxy.c
index f9ae38ca95..8cc0c5e64b 100644
--- a/ext/com_dotnet/com_saproxy.c
+++ b/ext/com_dotnet/com_saproxy.c
@@ -554,12 +554,16 @@ static zend_object_iterator_funcs saproxy_iter_funcs = {
};
-zend_object_iterator *php_com_saproxy_iter_get(zend_class_entry *ce, zval *object TSRMLS_DC)
+zend_object_iterator *php_com_saproxy_iter_get(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC)
{
php_com_saproxy *proxy = SA_FETCH(object);
php_com_saproxy_iter *I;
int i;
+ if (by_ref) {
+ zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
+ }
+
I = ecalloc(1, sizeof(*I));
I->iter.funcs = &saproxy_iter_funcs;
I->iter.data = I;