Home
last modified time | relevance | path

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

/PHP-7.1/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.c49 … php_stream_fopen_from_fd_int(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode),… argument
50 …stream_fopen_from_fd_int_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode),… argument
174 self = pemalloc_rel_orig(sizeof(*self), persistent_id); in _php_stream_fopen_from_fd_int()
982 char *persistent_id = NULL; in _php_stream_fopen() local
1001 switch (php_stream_from_persistent_id(persistent_id, &ret)) { in _php_stream_fopen()
1010 efree(persistent_id);; in _php_stream_fopen()
1024 ret = php_stream_fopen_from_fd_rel(fd, mode, persistent_id); in _php_stream_fopen()
1031 if (persistent_id) { in _php_stream_fopen()
1032 efree(persistent_id); in _php_stream_fopen()
1065 if (persistent_id) { in _php_stream_fopen()
[all …]
H A Dtransports.c53 int flags, const char *persistent_id, in _php_stream_xport_create() argument
75 if (persistent_id) { in _php_stream_xport_create()
76 switch(php_stream_from_persistent_id(persistent_id, &stream)) { in _php_stream_xport_create()
134 (char*)name, namelen, persistent_id, options, flags, timeout, in _php_stream_xport_create()
185 if (persistent_id) { in _php_stream_xport_create()
H A Dstreams.c108 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream) in php_stream_from_persistent_id() argument
112 …if ((le = zend_hash_str_find_ptr(&EG(persistent_list), persistent_id, strlen(persistent_id))) != N… in php_stream_from_persistent_id()
269 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id in _php_stream_alloc() argument
273 ret = (php_stream*) pemalloc_rel_orig(sizeof(php_stream), persistent_id ? 1 : 0); in _php_stream_alloc()
281 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id); in _php_stream_alloc()
286 ret->is_persistent = persistent_id ? 1 : 0; in _php_stream_alloc()
298 if (persistent_id) { in _php_stream_alloc()
303 if (NULL == zend_hash_str_update(&EG(persistent_list), persistent_id, in _php_stream_alloc()
304 strlen(persistent_id), &tmp)) { in _php_stream_alloc()
310 ret->res = zend_register_resource(ret, persistent_id ? le_pstream : le_stream); in _php_stream_alloc()
H A Dxp_socket.c880 const char *persistent_id, int options, int flags, in php_stream_generic_socket_factory() argument
906 sock = pemalloc(sizeof(php_netstream_data_t), persistent_id ? 1 : 0); in php_stream_generic_socket_factory()
917 stream = php_stream_alloc_rel(ops, sock, persistent_id, "r+"); in php_stream_generic_socket_factory()
920 pefree(sock, persistent_id ? 1 : 0); in php_stream_generic_socket_factory()
/PHP-7.1/main/
H A Dphp_streams.h72 …e php_stream_fopen_from_fd_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), ( argument
246 const char *persistent_id, const char *mode STREAMS_DC);
248 #define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (pe… argument
278 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream);
H A Dphp_network.h307 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id
310 int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC);
H A Dnetwork.c1119 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id
1124 sock = pemalloc(sizeof(php_netstream_data_t), persistent_id ? 1 : 0);
1132 stream = php_stream_alloc_rel(&php_stream_generic_socket_ops, sock, persistent_id, "r+");
1135 pefree(sock, persistent_id ? 1 : 0);
1144 int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC)
1153 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, persistent_id, timeout, NULL, NULL, NULL);
/PHP-7.1/ext/pdo/
H A Dpdo_dbh.c315 pdbh->persistent_id = pemalloc(plen + 1, 1); in PHP_METHOD()
316 memcpy((char *)pdbh->persistent_id, hashkey, plen+1); in PHP_METHOD()
371 (char*)dbh->persistent_id, dbh->persistent_id_len, &le, sizeof(le))) == NULL) { in PHP_METHOD()
1532 if (dbh->persistent_id) { in dbh_free()
1533 pefree((char *)dbh->persistent_id, dbh->is_persistent); in dbh_free()
H A Dphp_pdo_driver.h480 const char *persistent_id; member
/PHP-7.1/ext/openssl/
H A Dxp_ssl.c2535 const char *persistent_id, int options, int flags, in php_openssl_ssl_socket_factory() argument
2542 sslsock = pemalloc(sizeof(php_openssl_netstream_data_t), persistent_id ? 1 : 0); in php_openssl_ssl_socket_factory()
2565 stream = php_stream_alloc_rel(&php_openssl_socket_ops, sslsock, persistent_id, "r+"); in php_openssl_ssl_socket_factory()
2568 pefree(sslsock, persistent_id ? 1 : 0); in php_openssl_ssl_socket_factory()
2614 sslsock->url_name = get_url_name(resourcename, resourcenamelen, !!persistent_id); in php_openssl_ssl_socket_factory()

Completed in 55 milliseconds