summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-11-22 14:41:21 +0000
committerFelipe Pena <felipe@php.net>2008-11-22 14:41:21 +0000
commit5af16d68f5dcd8f690cc3715ce98dd7cc249a393 (patch)
treec73035cf7a276d5c726255a042da1af353c1ec26 /ext
parent010c3eb63737fb15e376fe1b169ea0e20139f2a3 (diff)
downloadphp-git-5af16d68f5dcd8f690cc3715ce98dd7cc249a393.tar.gz
- Fixed segfault [only in this branch, because add_next_* are macro]
Diffstat (limited to 'ext')
-rw-r--r--ext/curl/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index d904b36d92..66d58a795d 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -1161,7 +1161,8 @@ PHP_FUNCTION(curl_version)
array_init(protocol_list);
while (*p != NULL) {
- add_next_index_ascii_string(protocol_list, *p++, 1);
+ add_next_index_ascii_string(protocol_list, *p, 1);
+ *p++;
}
CAAZ("protocols", protocol_list);
}