summaryrefslogtreecommitdiff
path: root/ext/curl/share.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-19 08:07:31 +0200
committerAnatol Belski <ab@php.net>2014-08-19 08:07:31 +0200
commit63d3f0b844b3a5f1c94be3c97bca29235dc2b3fc (patch)
treee561a58d6e084c5e4cbdde1f84aed16cf4724383 /ext/curl/share.c
parent1e8273964fbd517a2eb9e560f9cdb4afffa0c034 (diff)
downloadphp-git-63d3f0b844b3a5f1c94be3c97bca29235dc2b3fc.tar.gz
basic macro replacements, all at once
Diffstat (limited to 'ext/curl/share.c')
-rw-r--r--ext/curl/share.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curl/share.c b/ext/curl/share.c
index 5983579f08..ed62b83076 100644
--- a/ext/curl/share.c
+++ b/ext/curl/share.c
@@ -73,8 +73,8 @@ static int _php_curl_share_setopt(php_curlsh *sh, long option, zval *zvalue, zva
switch (option) {
case CURLSHOPT_SHARE:
case CURLSHOPT_UNSHARE:
- convert_to_long_ex(zvalue);
- error = curl_share_setopt(sh->share, option, Z_LVAL_P(zvalue));
+ convert_to_int_ex(zvalue);
+ error = curl_share_setopt(sh->share, option, Z_IVAL_P(zvalue));
break;
default: