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 ZEND_REGISTER_RESOURCE(return_value, sh, le_curl_share_handle); in PHP_FUNCTION()
58 php_curlsh *sh; in PHP_FUNCTION() local
64 ZEND_FETCH_RESOURCE(sh, php_curlsh *, &z_sh, -1, le_curl_share_handle_name, le_curl_share_handle); in PHP_FUNCTION()
69 static int _php_curl_share_setopt(php_curlsh *sh, long option, zval **zvalue, zval *return_value TS… in _php_curl_share_setopt() argument
77 error = curl_share_setopt(sh->share, option, Z_LVAL_PP(zvalue)); in _php_curl_share_setopt()
100 php_curlsh *sh; in PHP_FUNCTION() local
106 ZEND_FETCH_RESOURCE(sh, php_curlsh *, &zid, -1, le_curl_share_handle_name, le_curl_share_handle); in PHP_FUNCTION()
108 if (!_php_curl_share_setopt(sh, options, zvalue, return_value TSRMLS_CC)) { in PHP_FUNCTION()
118 php_curlsh *sh = (php_curlsh *) rsrc->ptr; in _php_curl_share_close() local
119 if (sh) { in _php_curl_share_close()
120 curl_share_cleanup(sh->share); in _php_curl_share_close()
121 efree(sh); in _php_curl_share_close()