Home
last modified time | relevance | path

Searched refs:persistent_id (Results 1 – 12 of 12) sorted by relevance

/PHP-5.5/main/streams/
H A Dphp_stream_plain_wrapper.h39 PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id ST…
40 …define php_stream_fopen_from_fd(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), ( argument
H A Dphp_stream_transport.h31 const char *persistent_id, int options, int flags,
50 int flags, const char *persistent_id,
57 #define php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, est… argument
58 …_php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, eco…
H A Dplain_wrapper.c47 … php_stream_fopen_from_fd_int(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode),… argument
48 …stream_fopen_from_fd_int_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode),… argument
159 self = pemalloc_rel_orig(sizeof(*self), persistent_id); in _php_stream_fopen_from_fd_int()
931 char *persistent_id = NULL; in _php_stream_fopen() local
962 efree(persistent_id);; in _php_stream_fopen()
972 ret = php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id); in _php_stream_fopen()
974 ret = php_stream_fopen_from_fd_rel(fd, mode, persistent_id); in _php_stream_fopen()
985 if (persistent_id) { in _php_stream_fopen()
986 efree(persistent_id); in _php_stream_fopen()
1015 if (persistent_id) { in _php_stream_fopen()
[all …]
H A Dtransports.c53 int flags, const char *persistent_id, in _php_stream_xport_create() argument
74 if (persistent_id) { in _php_stream_xport_create()
75 switch(php_stream_from_persistent_id(persistent_id, &stream TSRMLS_CC)) { in _php_stream_xport_create()
133 (char*)name, namelen, persistent_id, options, flags, timeout, in _php_stream_xport_create()
184 if (persistent_id) { in _php_stream_xport_create()
H A Dstreams.c117 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream TSRMLS_DC) in php_stream_from_persistent_id() argument
121 …if (zend_hash_find(&EG(persistent_list), (char*)persistent_id, strlen(persistent_id)+1, (void*) &l… in php_stream_from_persistent_id()
288 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id in _php_stream_alloc() argument
292 ret = (php_stream*) pemalloc_rel_orig(sizeof(php_stream), persistent_id ? 1 : 0); in _php_stream_alloc()
300 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id); in _php_stream_alloc()
305 ret->is_persistent = persistent_id ? 1 : 0; in _php_stream_alloc()
317 if (persistent_id) { in _php_stream_alloc()
324 if (FAILURE == zend_hash_update(&EG(persistent_list), (char *)persistent_id, in _php_stream_alloc()
325 strlen(persistent_id) + 1, in _php_stream_alloc()
333 ret->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, ret, persistent_id ? le_pstream : le_stream); in _php_stream_alloc()
H A Dxp_socket.c780 const char *persistent_id, int options, int flags, in php_stream_generic_socket_factory() argument
806 sock = pemalloc(sizeof(php_netstream_data_t), persistent_id ? 1 : 0); in php_stream_generic_socket_factory()
817 stream = php_stream_alloc_rel(ops, sock, persistent_id, "r+"); in php_stream_generic_socket_factory()
820 pefree(sock, persistent_id ? 1 : 0); in php_stream_generic_socket_factory()
/PHP-5.5/main/
H A Dphp_streams.h70 …e php_stream_fopen_from_fd_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), ( argument
241 const char *persistent_id, const char *mode STREAMS_DC TSRMLS_DC);
243 #define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (pe… argument
266 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream TSRMLS_DC);
H A Dnetwork.c1038 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id
1043 sock = pemalloc(sizeof(php_netstream_data_t), persistent_id ? 1 : 0);
1051 stream = php_stream_alloc_rel(&php_stream_generic_socket_ops, sock, persistent_id, "r+");
1054 pefree(sock, persistent_id ? 1 : 0);
1063 int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC TSRMLS_DC)
1072 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, persistent_id, timeout, NULL, NULL, NULL);
H A Dphp_network.h288 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id
291 int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC TSRMLS_DC);
/PHP-5.5/ext/openssl/
H A Dxp_ssl.c1042 const char *persistent_id, int options, int flags, in php_openssl_ssl_socket_factory() argument
1049 sslsock = pemalloc(sizeof(php_openssl_netstream_data_t), persistent_id ? 1 : 0); in php_openssl_ssl_socket_factory()
1068 stream = php_stream_alloc_rel(&php_openssl_socket_ops, sslsock, persistent_id, "r+"); in php_openssl_ssl_socket_factory()
1071 pefree(sslsock, persistent_id ? 1 : 0); in php_openssl_ssl_socket_factory()
1075 sslsock->sni = get_sni(context, resourcename, resourcenamelen, !!persistent_id TSRMLS_CC); in php_openssl_ssl_socket_factory()
/PHP-5.5/ext/pdo/
H A Dpdo_dbh.c326 if (!(pdbh->persistent_id = pemalloc(plen + 1, 1))) { in PHP_METHOD()
329 memcpy((char *)pdbh->persistent_id, hashkey, plen+1); in PHP_METHOD()
397 (char*)dbh->persistent_id, dbh->persistent_id_len, (void*)&le, in PHP_METHOD()
1541 if (dbh->persistent_id) { in dbh_free()
1542 pefree((char *)dbh->persistent_id, dbh->is_persistent); in dbh_free()
H A Dphp_pdo_driver.h488 const char *persistent_id; member

Completed in 48 milliseconds