Lines Matching refs:sh
41 php_curlsh *sh; in PHP_FUNCTION() local
47 sh = ecalloc(1, sizeof(php_curlsh)); in PHP_FUNCTION()
49 sh->share = curl_share_init(); in PHP_FUNCTION()
51 RETURN_RES(zend_register_resource(sh, le_curl_share_handle)); in PHP_FUNCTION()
60 php_curlsh *sh; in PHP_FUNCTION() local
66 …if ((sh = (php_curlsh *)zend_fetch_resource(Z_RES_P(z_sh), le_curl_share_handle_name, le_curl_shar… in PHP_FUNCTION()
74 static int _php_curl_share_setopt(php_curlsh *sh, zend_long option, zval *zvalue, zval *return_valu… in _php_curl_share_setopt() argument
81 error = curl_share_setopt(sh->share, option, zval_get_long(zvalue)); in _php_curl_share_setopt()
90 SAVE_CURLSH_ERROR(sh, error); in _php_curl_share_setopt()
105 php_curlsh *sh; in PHP_FUNCTION() local
111 …if ((sh = (php_curlsh *)zend_fetch_resource(Z_RES_P(zid), le_curl_share_handle_name, le_curl_share… in PHP_FUNCTION()
115 if (!_php_curl_share_setopt(sh, options, zvalue, return_value)) { in PHP_FUNCTION()
125 php_curlsh *sh = (php_curlsh *)rsrc->ptr; in _php_curl_share_close() local
126 if (sh) { in _php_curl_share_close()
127 curl_share_cleanup(sh->share); in _php_curl_share_close()
128 efree(sh); in _php_curl_share_close()
139 php_curlsh *sh; in PHP_FUNCTION() local
145 …if ((sh = (php_curlsh *)zend_fetch_resource(Z_RES_P(z_sh), le_curl_share_handle_name, le_curl_shar… in PHP_FUNCTION()
149 RETURN_LONG(sh->err.no); in PHP_FUNCTION()