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
113 …if ((sh = (php_curlsh *)zend_fetch_resource(Z_RES_P(zid), le_curl_share_handle_name, le_curl_share… in PHP_FUNCTION()
117 if (!_php_curl_share_setopt(sh, options, zvalue, return_value)) { in PHP_FUNCTION()
127 php_curlsh *sh = (php_curlsh *)rsrc->ptr; in _php_curl_share_close() local
128 if (sh) { in _php_curl_share_close()
129 curl_share_cleanup(sh->share); in _php_curl_share_close()
130 efree(sh); in _php_curl_share_close()
141 php_curlsh *sh; in PHP_FUNCTION() local
147 …if ((sh = (php_curlsh *)zend_fetch_resource(Z_RES_P(z_sh), le_curl_share_handle_name, le_curl_shar… in PHP_FUNCTION()
151 RETURN_LONG(sh->err.no); in PHP_FUNCTION()