}
}
- convert_to_long_ex(z_still_running);
- still_running = Z_LVAL_P(z_still_running);
+ still_running = zval_get_long(z_still_running);
result = curl_multi_perform(mh->multi, &still_running);
ZVAL_LONG(z_still_running, still_running);
#if LIBCURL_VERSION_NUM >= 0x071003 /* 7.16.3 */
case CURLMOPT_MAXCONNECTS:
#endif
- convert_to_long_ex(zvalue);
- error = curl_multi_setopt(mh->multi, option, Z_LVAL_P(zvalue));
+ error = curl_multi_setopt(mh->multi, option, zval_get_long(zvalue));
break;
default:
switch (option) {
case CURLSHOPT_SHARE:
case CURLSHOPT_UNSHARE:
- convert_to_long_ex(zvalue);
- error = curl_share_setopt(sh->share, option, Z_LVAL_P(zvalue));
+ error = curl_share_setopt(sh->share, option, zval_get_long(zvalue));
break;
default: