Searched refs:ops (Results 1 - 25 of 31) sorted by relevance

12

/PHP_TRUNK/ext/hash/
H A Dhash.c92 php_hash_ops *ops = zend_hash_str_find_ptr(&php_hash_hashtable, lower, algo_len); local
95 return ops;
99 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops) /* {{{ */ argument
103 zend_hash_str_add_ptr(&php_hash_hashtable, lower, algo_len, (void *) ops);
108 PHP_HASH_API int php_hash_copy(const void *ops, void *orig_context, void *dest_context) /* {{{ */ argument
110 php_hash_ops *hash_ops = (php_hash_ops *)ops;
125 const php_hash_ops *ops; local
133 ops = php_hash_fetch_ops(algo, algo_len);
134 if (!ops) {
149 context = emalloc(ops
214 php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const size_t key_len) argument
228 php_hash_hmac_round(unsigned char *final, const php_hash_ops *ops, void *context, const unsigned char *key, const unsigned char *data, const zend_long data_size) argument
242 const php_hash_ops *ops; local
336 const php_hash_ops *ops; local
609 const php_hash_ops *ops; local
906 const php_hash_ops *ops = php_hash_fetch_ops(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name)); local
949 const php_hash_ops *ops = php_hash_fetch_ops(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name)); local
[all...]
H A Dhash_adler32.c59 PHP_HASH_API int PHP_ADLER32Copy(const php_hash_ops *ops, PHP_ADLER32_CTX *orig_context, PHP_ADLER32_CTX *copy_context) argument
H A Dhash_crc32.c69 PHP_HASH_API int PHP_CRC32Copy(const php_hash_ops *ops, PHP_CRC32_CTX *orig_context, PHP_CRC32_CTX *copy_context) argument
H A Dphp_hash.h41 typedef int (*php_hash_copy_func_t)(const void *ops, void *orig_context, void *dest_context);
55 const php_hash_ops *ops; member in struct:_php_hash_data
142 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops);
143 PHP_HASH_API int php_hash_copy(const void *ops, void *orig_context, void *dest_context);
H A Dphp_hash_adler32.h33 PHP_HASH_API int PHP_ADLER32Copy(const php_hash_ops *ops, PHP_ADLER32_CTX *orig_context, PHP_ADLER32_CTX *copy_context);
H A Dphp_hash_crc32.h34 PHP_HASH_API int PHP_CRC32Copy(const php_hash_ops *ops, PHP_CRC32_CTX *orig_context, PHP_CRC32_CTX *copy_context);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_net.c829 int was_blocked = net_stream->ops->set_option(net_stream, opt, 0, NULL TSRMLS_CC);
842 net_stream->ops->set_option(net_stream, opt, 1, NULL TSRMLS_CC);
/PHP_TRUNK/main/streams/
H A Dcast.c208 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) {
211 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy TSRMLS_CC);
229 stream->ops->cast &&
231 stream->ops->cast(stream, castas, ret TSRMLS_CC) == SUCCESS
272 if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL TSRMLS_CC) == SUCCESS) {
273 if (FAILURE == stream->ops->cast(stream, castas, ret TSRMLS_CC)) {
309 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret TSRMLS_CC) == SUCCESS) {
322 php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot represent a stream of type %s as a %s", stream->ops
[all...]
H A Dfilter.c502 stream->ops->write(stream, bucket->buf, bucket->buflen TSRMLS_CC);
H A Dmemory.c738 stream->ops = &php_stream_rfc2397_ops;
H A Dstreams.c89 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);
286 /* allocate a new stream for a particular ops */
287 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id, const char *mode STREAMS_DC TSRMLS_DC) /* {{{ */ argument
299 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id);
302 ret->ops = ops;
401 stream->ops->label, stream, stream->orig_path, stream->in_free, _php_stream_pretty_free_options(close_options, out));
452 stream->ops->label, stream, stream->orig_path, preserve_handle, release_cast,
488 ret = stream->ops->close(stream, preserve_handle ? 0 : 1 TSRMLS_CC);
533 spprintf(&leakinfo, 0, __FILE__ "(%d) : Stream of type '%s' %p (path:%s) was not closed\n", __LINE__, stream->ops
[all...]
H A Dxp_socket.c460 * by inspecting stream->ops.
598 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) {
601 sock->socket = socket(PF_UNIX, stream->ops == &php_stream_unix_socket_ops ? SOCK_STREAM : SOCK_DGRAM, 0);
606 stream->ops == &php_stream_unix_socket_ops ? "" : "datagram",
635 if (stream->ops == &php_stream_udp_socket_ops /* SO_BROADCAST is only applicable for UDP */
645 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM,
669 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) {
672 sock->socket = socket(PF_UNIX, stream->ops
840 php_stream_ops *ops; local
[all...]
/PHP_TRUNK/main/
H A Dphp_streams.h64 #define php_stream_alloc_rel(ops, thisptr, persistent, mode) _php_stream_alloc((ops), (thisptr), (persistent), (mode) STREAMS_REL_CC TSRMLS_CC)
125 const char *label; /* label for this ops structure */
189 php_stream_ops *ops; member in struct:_php_stream
241 /* allocate a new stream for a particular ops */
243 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract,
246 #define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (persistent_id), (mode) STREAMS_CC TSRMLS_CC)
269 #define PHP_STREAM_FREE_CALL_DTOR 1 /* call ops->close */
271 #define PHP_STREAM_FREE_PRESERVE_HANDLE 4 /* tell ops
[all...]
/PHP_TRUNK/ext/standard/
H A Dfilters.c2124 php_stream_filter_ops *ops; member in struct:__anon1
2143 for (i = 0; standard_filters[i].ops; i++) {
2145 standard_filters[i].ops->label,
2158 for (i = 0; standard_filters[i].ops; i++) {
2159 php_stream_filter_unregister_factory(standard_filters[i].ops->label TSRMLS_CC);
H A Dphp_fopen_wrapper.c388 stream->ops = &php_stream_socket_ops;
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_info.c203 zend_op_array *ops = &EG(current_execute_data)->func->op_array; local
205 if (ops->function_name) {
206 if (ops->scope) {
207 phpdbg_notice("variableinfo", "method=\"%s::%s\" num=\"%d\"", "Variables in %s::%s() (%d)", ops->scope->name, ops->function_name, zend_hash_num_elements(&vars));
209 phpdbg_notice("variableinfo", "function=\"%s\" num=\"%d\"", "Variables in %s() (%d)", ops->function_name, zend_hash_num_elements(&vars));
212 if (ops->filename) {
213 phpdbg_notice("variableinfo", "file=\"%s\" num=\"%d\"", "Variables in %s (%d)", ops->filename->val, zend_hash_num_elements(&vars));
215 phpdbg_notice("variableinfo", "opline=\"%p\" num=\"%d\"", "Variables @ %p (%d)", ops, zend_hash_num_elements(&vars));
291 if (in_executor || PHPDBG_G(ops)) {
292 zend_op_array *ops = in_executor ? &EG(current_execute_data)->func->op_array : PHPDBG_G(ops); local
[all...]
H A Dphpdbg_opcode.c29 static inline uint32_t phpdbg_decode_literal(zend_op_array *ops, zval *literal TSRMLS_DC) /* {{{ */ argument
33 while (iter < ops->last_literal) {
34 if (literal == &ops->literals[iter]) {
43 static inline char *phpdbg_decode_op(zend_op_array *ops, znode_op *op, uint32_t type, HashTable *vars TSRMLS_DC) /* {{{ */ argument
49 asprintf(&decode, "$%s", ops->vars[EX_VAR_TO_NUM(op->var)]->val);
56 if ((pid = zend_hash_index_find_ptr(vars, (zend_ulong) ops->vars - op->var))) {
60 zend_hash_index_update_mem(vars, (zend_ulong) ops->vars - op->var, &id, sizeof(zend_ulong));
67 asprintf(&decode, "C%u", phpdbg_decode_literal(ops, op->zv TSRMLS_CC));
77 char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op, HashTable *vars TSRMLS_DC) /*{{{ */ argument
89 asprintf(&decode[1], "J%ld", op->op1.jmp_addr - ops
[all...]
H A Dphpdbg_opcode.h27 char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op, HashTable *vars TSRMLS_DC);
H A Dphpdbg_print.c112 if (!PHPDBG_G(ops) && !(PHPDBG_G(flags) & PHPDBG_IN_SIGNAL_HANDLER)) {
116 if (PHPDBG_G(ops)) {
117 phpdbg_notice("printinfo", "file=\"%s\" num=\"%d\"", "Context %s (%d ops)", PHPDBG_G(exec), PHPDBG_G(ops)->last);
119 phpdbg_print_function_helper((zend_function*) PHPDBG_G(ops) TSRMLS_CC);
131 zend_op_array *ops = &EG(current_execute_data)->func->op_array; local
132 if (ops->function_name) {
133 if (ops->scope) {
134 phpdbg_notice("printinfo", "method=\"%s::%s\" num=\"%d\"", "Stack in %s::%s() (%d ops)", ops
[all...]
H A Dphpdbg_list.c181 const zend_op_array *ops; local
188 ops = (zend_op_array *) fbc;
190 phpdbg_list_file(ops->filename, ops->line_end - ops->line_start + 1, ops->line_start, 0 TSRMLS_CC);
H A Dphpdbg_bp.c518 if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->class_len)) {
519 if (phpdbg_resolve_op_array_break(new_break, PHPDBG_G(ops) TSRMLS_CC) == SUCCESS) {
788 new_break.ops = zend_compile_string(&pv, "Conditional Breakpoint Code" TSRMLS_CC);
792 if (new_break.ops) {
795 phpdbg_notice("breakpoint", "id=\"%d\" expression=\"%s\" ptr=\"%p\"", "Conditional breakpoint #%d added %s/%p", brake->id, brake->code, brake->ops);
873 zend_op_array *ops; local
879 ops = (zend_op_array *) fbc;
881 if (ops->scope) {
883 return phpdbg_find_breakpoint_method(ops TSRMLS_C
952 zend_op_array *ops = (zend_op_array*)function; local
981 zend_op_array *ops = (zend_op_array*) function; local
[all...]
H A Dphpdbg_bp.h117 zend_op_array *ops; member in struct:_phpdbg_breakcond_t
H A Dphpdbg.h249 zend_op_array *ops; /* op_array */ variable
H A Dphpdbg.c85 pg->ops = NULL;
166 if (brake->ops) {
169 destroy_op_array(brake->ops TSRMLS_CC);
170 efree(brake->ops);
250 if (PHPDBG_G(ops)) {
251 destroy_op_array(PHPDBG_G(ops) TSRMLS_CC);
252 efree(PHPDBG_G(ops));
253 PHPDBG_G(ops) = NULL;
H A Dphpdbg_prompt.c398 if (PHPDBG_G(ops)) {
440 PHPDBG_G(ops) = zend_compile_file(&fh, ZEND_INCLUDE TSRMLS_CC);
581 if (PHPDBG_G(ops) || PHPDBG_G(exec)) {
593 if (!PHPDBG_G(ops)) {
642 zend_execute(PHPDBG_G(ops), &PHPDBG_G(retval) TSRMLS_CC);
787 phpdbg_writeln("print", "compiled=\"%s\"", "Compiled %s", PHPDBG_G(ops) ? "yes" : "no");
792 if (PHPDBG_G(ops)) {
793 phpdbg_writeln("print", "ops=\"%d\"", "Opcodes %d", PHPDBG_G(ops)->last);
794 phpdbg_writeln("print", "vars=\"%d\"", "Variables %d", PHPDBG_G(ops)
[all...]

Completed in 39 milliseconds

12