| /PHP_5_3/ext/openssl/ |
| H A D | xp_ssl.c | 889 const char *persistent_id, int options, int flags, 896 sslsock = pemalloc(sizeof(php_openssl_netstream_data_t), persistent_id ? 1 : 0); 915 stream = php_stream_alloc_rel(&php_openssl_socket_ops, sslsock, persistent_id, "r+"); 918 pefree(sslsock, persistent_id ? 1 : 0); 922 sslsock->sni = get_sni(context, resourcename, resourcenamelen, !!persistent_id TSRMLS_CC); 887 php_openssl_ssl_socket_factory(const char *proto, long protolen, char *resourcename, long resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
|
| /PHP_5_3/ext/pdo/ |
| H A D | pdo_dbh.c | 325 if (!(pdbh->persistent_id = pemalloc(plen + 1, 1))) { 328 memcpy((char *)pdbh->persistent_id, hashkey, plen+1); 392 (char*)dbh->persistent_id, dbh->persistent_id_len, (void*)&le, 1524 if (dbh->persistent_id) { 1525 pefree((char *)dbh->persistent_id, dbh->is_persistent);
|
| H A D | php_pdo_driver.h | 490 const char *persistent_id; member in struct:_pdo_dbh_t
|
| /PHP_5_3/ext/sqlite/ |
| H A D | sqlite.c | 1469 static struct php_sqlite_db *php_sqlite_open(char *filename, int mode, char *persistent_id, zval *return_value, zval *errmsg, zval *object TSRMLS_DC) argument 1496 db = (struct php_sqlite_db *)pemalloc(sizeof(struct php_sqlite_db), persistent_id ? 1 : 0); 1497 db->is_persistent = persistent_id ? 1 : 0; 1517 db->rsrc_id = ZEND_REGISTER_RESOURCE(object ? NULL : return_value, db, persistent_id ? le_sqlite_pdb : le_sqlite_db); 1527 if (persistent_id) { 1533 if (FAILURE == zend_hash_update(&EG(persistent_list), persistent_id, 1534 strlen(persistent_id)+1,
|
| /PHP_5_3/main/ |
| H A D | network.c | 1028 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC) 1033 sock = pemalloc(sizeof(php_netstream_data_t), persistent_id ? 1 : 0); 1041 stream = php_stream_alloc_rel(&php_stream_generic_socket_ops, sock, persistent_id, "r+"); 1044 pefree(sock, persistent_id ? 1 : 0); 1053 int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC TSRMLS_DC) 1062 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, persistent_id, timeout, NULL, NULL, NULL);
|
| H A D | php_network.h | 281 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC ); 284 int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC TSRMLS_DC);
|
| H A D | php_streams.h | 70 #define php_stream_fopen_from_fd_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (persistent_id) STREAMS_REL_CC TSRMLS_CC) 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), (persistent_id), (mode) STREAMS_CC TSRMLS_CC) 262 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream TSRMLS_DC);
|
| /PHP_5_3/main/streams/ |
| H A D | php_stream_plain_wrapper.h | 39 PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id STREAMS_DC TSRMLS_DC); 40 #define php_stream_fopen_from_fd(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (persistent_id) STREAMS_CC TSRMLS_CC)
|
| H A D | php_stream_transport.h | 31 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, estr, ecode) \ 58 _php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode STREAMS_CC TSRMLS_CC)
|
| H A D | plain_wrapper.c | 46 #define php_stream_fopen_from_fd_int(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode), (persistent_id) STREAMS_CC TSRMLS_CC) 47 #define php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode), (persistent_id) STREAMS_REL_CC TSRMLS_CC) 147 static php_stream *_php_stream_fopen_from_fd_int(int fd, const char *mode, const char *persistent_id STREAMS_DC TSRMLS_DC) 151 self = pemalloc_rel_orig(sizeof(*self), persistent_id); 160 return php_stream_alloc_rel(&php_stream_stdio_ops, self, persistent_id, mode); 223 PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id STREAMS_DC TSRMLS_DC) 225 php_stream *stream = php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id); 902 char *persistent_id local [all...] |
| H A D | streams.c | 108 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream TSRMLS_DC) argument 112 if (zend_hash_find(&EG(persistent_list), (char*)persistent_id, strlen(persistent_id)+1, (void*) &le) == SUCCESS) { 279 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id, const char *mode STREAMS_DC TSRMLS_DC) /* {{{ */ argument 283 ret = (php_stream*) pemalloc_rel_orig(sizeof(php_stream), persistent_id ? 1 : 0); 291 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id); 296 ret->is_persistent = persistent_id ? 1 : 0; 308 if (persistent_id) { 315 if (FAILURE == zend_hash_update(&EG(persistent_list), (char *)persistent_id, 316 strlen(persistent_id) [all...] |
| H A D | transports.c | 53 int flags, const char *persistent_id, 74 if (persistent_id) { 75 switch(php_stream_from_persistent_id(persistent_id, &stream TSRMLS_CC)) { 133 (char*)name, namelen, persistent_id, options, flags, timeout, 184 if (persistent_id) { 52 _php_stream_xport_create(const char *name, long namelen, int options, int flags, const char *persistent_id, struct timeval *timeout, php_stream_context *context, char **error_string, int *error_code STREAMS_DC TSRMLS_DC) argument
|
| H A D | xp_socket.c | 783 const char *persistent_id, int options, int flags, 809 sock = pemalloc(sizeof(php_netstream_data_t), persistent_id ? 1 : 0); 820 stream = php_stream_alloc_rel(ops, sock, persistent_id, "r+"); 823 pefree(sock, persistent_id ? 1 : 0); 781 php_stream_generic_socket_factory(const char *proto, long protolen, char *resourcename, long resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
|