/PHP-5.3/ext/hash/ |
H A D | hash.c | 85 php_hash_ops *ops; in php_hash_fetch_ops() local 90 ops = NULL; in php_hash_fetch_ops() 94 return ops; in php_hash_fetch_ops() 134 if (!ops) { in php_hash_do_hash() 212 if (!ops) { in php_hash_do_hash_hmac() 244 ops->hash_update(context, (unsigned char *) K, ops->block_size); in php_hash_do_hash_hmac() 326 if (!ops) { in PHP_FUNCTION() 342 hash->ops = ops; in PHP_FUNCTION() 556 copy_hash->ops = hash->ops; in PHP_FUNCTION() 730 if (ops) { in PHP_FUNCTION() [all …]
|
H A D | php_hash.h | 36 typedef int (*php_hash_copy_func_t)(const void *ops, void *orig_context, void *dest_context); 50 const php_hash_ops *ops; member 131 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops); 132 PHP_HASH_API int php_hash_copy(const void *ops, void *orig_context, void *dest_context);
|
H A D | php_hash_adler32.h | 33 PHP_HASH_API int PHP_ADLER32Copy(const php_hash_ops *ops, PHP_ADLER32_CTX *orig_context, PHP_ADLER3…
|
H A D | php_hash_crc32.h | 34 PHP_HASH_API int PHP_CRC32Copy(const php_hash_ops *ops, PHP_CRC32_CTX *orig_context, PHP_CRC32_CTX …
|
H A D | hash_adler32.c | 52 PHP_HASH_API int PHP_ADLER32Copy(const php_hash_ops *ops, PHP_ADLER32_CTX *orig_context, PHP_ADLER3… in PHP_ADLER32Copy() argument
|
H A D | hash_crc32.c | 69 PHP_HASH_API int PHP_CRC32Copy(const php_hash_ops *ops, PHP_CRC32_CTX *orig_context, PHP_CRC32_CTX … in PHP_CRC32Copy() argument
|
/PHP-5.3/main/streams/ |
H A D | cast.c | 208 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_cast() 211 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy TSRMLS_CC); in _php_stream_cast() 229 stream->ops->cast && in _php_stream_cast() 231 stream->ops->cast(stream, castas, ret TSRMLS_CC) == SUCCESS in _php_stream_cast() 272 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast() 273 if (FAILURE == stream->ops->cast(stream, castas, ret TSRMLS_CC)) { in _php_stream_cast() 309 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret TSRMLS_CC) == SUCCESS) { in _php_stream_cast() 322 …MLS_CC, E_WARNING, "cannot represent a stream of type %s as a %s", stream->ops->label, cast_names[… in _php_stream_cast() 384 if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) { in _php_stream_make_seekable()
|
H A D | xp_socket.c | 579 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_bind() 587 stream->ops == &php_stream_unix_socket_ops ? "" : "datagram", in php_tcp_sockop_bind() 606 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, in php_tcp_sockop_bind() 628 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_connect() 676 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, in php_tcp_sockop_connect() 789 php_stream_ops *ops; in php_stream_generic_socket_factory() local 793 ops = &php_stream_socket_ops; in php_stream_generic_socket_factory() 795 ops = &php_stream_udp_socket_ops; in php_stream_generic_socket_factory() 799 ops = &php_stream_unix_socket_ops; in php_stream_generic_socket_factory() 801 ops = &php_stream_unixdg_socket_ops; in php_stream_generic_socket_factory() [all …]
|
H A D | streams.c | 87 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream); in forget_persistent_resource_id_numbers() 294 ret->ops = ops; in _php_stream_alloc() 420 ret = stream->ops->close(stream, preserve_handle ? 0 : 1 TSRMLS_CC); in _php_stream_free() 667 toread = stream->ops->read(stream, buf, size TSRMLS_CC); in _php_stream_read() 765 if (stream->ops->stat == NULL) { in _php_stream_stat() 769 return (stream->ops->stat)(stream, ssb TSRMLS_CC); in _php_stream_stat() 1063 justwrote = stream->ops->write(stream, buf, towrite TSRMLS_CC); in _php_stream_write_buffer() 1158 if (stream->ops->flush) { in _php_stream_flush() 1159 ret = stream->ops->flush(stream TSRMLS_CC); in _php_stream_flush() 1167 if (buf == NULL || count == 0 || stream->ops->write == NULL) { in _php_stream_write() [all …]
|
H A D | filter.c | 504 stream->ops->write(stream, bucket->buf, bucket->buflen TSRMLS_CC); in _php_stream_filter_flush()
|
H A D | memory.c | 725 stream->ops = &php_stream_rfc2397_ops; in php_stream_url_wrap_rfc2397()
|
/PHP-5.3/main/ |
H A D | php_streams.h | 62 #define php_stream_alloc_rel(ops, thisptr, persistent, mode) _php_stream_alloc((ops), (thisptr), (p… argument 189 php_stream_ops *ops; member 240 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, 243 #define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (pe… argument 477 #define php_stream_is(stream, anops) ((stream)->ops == anops)
|
/PHP-5.3/ |
H A D | README.STREAMS | 232 The php_streams ops struct consists of pointers to methods that implement 236 that can efficiently behave as fgets. The ops struct also contains a label 268 PHPAPI php_stream * php_stream_alloc(php_stream_ops * ops, void * abstract, 271 ops is a pointer to the implementation, 360 are all mandatory. The rest are optional. Declare your stream ops struct:
|
/PHP-5.3/ext/standard/ |
H A D | php_fopen_wrapper.c | 362 stream->ops = &php_stream_socket_ops; in php_stream_url_wrap_php()
|
H A D | filters.c | 2104 php_stream_filter_ops *ops; member 2123 for (i = 0; standard_filters[i].ops; i++) { in PHP_MINIT_FUNCTION() 2125 standard_filters[i].ops->label, in PHP_MINIT_FUNCTION() 2138 for (i = 0; standard_filters[i].ops; i++) { in PHP_MSHUTDOWN_FUNCTION() 2139 php_stream_filter_unregister_factory(standard_filters[i].ops->label TSRMLS_CC); in PHP_MSHUTDOWN_FUNCTION()
|
H A D | streamsfuncs.c | 515 add_assoc_string(return_value, "stream_type", (char *)stream->ops->label, 1); in PHP_FUNCTION() 536 …add_assoc_bool(return_value, "seekable", (stream->ops->seek) && (stream->flags & PHP_STREAM_FLAG_N… in PHP_FUNCTION()
|
/PHP-5.3/ext/openssl/ |
H A D | xp_ssl.c | 407 if (cparam->inputs.session->ops != &php_openssl_socket_ops) { in php_openssl_setup_crypto() 630 xparam->outputs.client = php_stream_alloc_rel(stream->ops, clisockdata, NULL, "r+"); in php_openssl_tcp_sockop_accept()
|
/PHP-5.3/ext/mysqlnd/ |
H A D | mysqlnd_net.c | 706 int was_blocked = net->stream->ops->set_option(net->stream, opt, 0, NULL TSRMLS_CC); in MYSQLND_METHOD() 719 net->stream->ops->set_option(net->stream, opt, 1, NULL TSRMLS_CC); in MYSQLND_METHOD()
|
/PHP-5.3/ext/session/ |
H A D | session.c | 772 php_hash_ops *ops = (php_hash_ops*)php_hash_fetch_ops(new_value, new_value_length); in PHP_INI_MH() local 774 if (ops) { in PHP_INI_MH() 776 PS(hash_ops) = ops; in PHP_INI_MH()
|
/PHP-5.3/ext/posix/ |
H A D | posix.c | 712 stream->ops->label); in php_posix_stream_get_fd()
|
/PHP-5.3/ext/sqlite3/libsqlite/ |
H A D | sqlite3.c | 99535 static const u8 ops[] = {TK_GE, TK_LE}; 99541 pNewExpr = sqlite3PExpr(pParse, ops[i],
|