Lines Matching refs:sh
39 php_curlsh *sh; in PHP_FUNCTION() local
45 sh = ecalloc(1, sizeof(php_curlsh)); in PHP_FUNCTION()
47 sh->share = curl_share_init(); in PHP_FUNCTION()
49 RETURN_RES(zend_register_resource(sh, le_curl_share_handle)); in PHP_FUNCTION()
58 php_curlsh *sh; in PHP_FUNCTION() local
64 …if ((sh = (php_curlsh *)zend_fetch_resource(Z_RES_P(z_sh), le_curl_share_handle_name, le_curl_shar… in PHP_FUNCTION()
72 static int _php_curl_share_setopt(php_curlsh *sh, zend_long option, zval *zvalue, zval *return_valu… in _php_curl_share_setopt() argument
79 error = curl_share_setopt(sh->share, option, zval_get_long(zvalue)); in _php_curl_share_setopt()
102 php_curlsh *sh; in PHP_FUNCTION() local
108 …if ((sh = (php_curlsh *)zend_fetch_resource(Z_RES_P(zid), le_curl_share_handle_name, le_curl_share… in PHP_FUNCTION()
112 if (!_php_curl_share_setopt(sh, options, zvalue, return_value)) { in PHP_FUNCTION()
122 php_curlsh *sh = (php_curlsh *)rsrc->ptr; in _php_curl_share_close() local
123 if (sh) { in _php_curl_share_close()
124 curl_share_cleanup(sh->share); in _php_curl_share_close()
125 efree(sh); in _php_curl_share_close()