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

12

/PHP_TRUNK/ext/hash/
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_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);
H A Dphp_hash.h42 typedef int (*php_hash_copy_func_t)(const void *ops, void *orig_context, void *dest_context);
56 const php_hash_ops *ops; member in struct:_php_hash_data
143 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops);
144 PHP_HASH_API int php_hash_copy(const void *ops, void *orig_context, void *dest_context);
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) {
150 context = emalloc(ops
215 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
229 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
243 const php_hash_ops *ops; local
341 const php_hash_ops *ops; local
617 const php_hash_ops *ops; local
914 const php_hash_ops *ops = php_hash_fetch_ops(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name)); local
957 const php_hash_ops *ops = php_hash_fetch_ops(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name)); local
[all...]
/PHP_TRUNK/main/streams/
H A Dxp_socket.c461 * by inspecting stream->ops.
599 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) {
602 sock->socket = socket(PF_UNIX, stream->ops == &php_stream_unix_socket_ops ? SOCK_STREAM : SOCK_DGRAM, 0);
607 stream->ops == &php_stream_unix_socket_ops ? "" : "datagram",
636 if (stream->ops == &php_stream_udp_socket_ops /* SO_BROADCAST is only applicable for UDP */
646 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM,
670 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) {
673 sock->socket = socket(PF_UNIX, stream->ops
841 php_stream_ops *ops; local
[all...]
H A Dfilter.c502 stream->ops->write(stream, bucket->buf, bucket->buflen);
H A Dstreams.c80 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);
267 /* allocate a new stream for a particular ops */
268 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id, const char *mode STREAMS_DC) /* {{{ */ argument
280 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id);
283 ret->ops = ops;
382 stream->ops->label, stream, stream->orig_path, stream->in_free, _php_stream_pretty_free_options(close_options, out));
433 stream->ops->label, stream, stream->orig_path, preserve_handle, release_cast,
464 ret = stream->ops->close(stream, preserve_handle ? 0 : 1);
509 spprintf(&leakinfo, 0, __FILE__ "(%d) : Stream of type '%s' %p (path:%s) was not closed\n", __LINE__, stream->ops
[all...]
H A Dcast.c199 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) {
202 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy);
220 stream->ops->cast &&
222 stream->ops->cast(stream, castas, ret) == SUCCESS
263 if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL) == SUCCESS) {
264 if (FAILURE == stream->ops->cast(stream, castas, ret)) {
300 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) {
313 php_error_docref(NULL, E_WARNING, "cannot represent a stream of type %s as a %s", stream->ops
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.h117 zend_op_array *ops; member in struct:_phpdbg_breakcond_t
H A Dphpdbg_opcode.h27 char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op, HashTable *vars);
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_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);
H A Dphpdbg.c90 pg->ops = NULL;
171 if (brake->ops) {
173 destroy_op_array(brake->ops);
174 efree(brake->ops);
253 if (PHPDBG_G(ops)) {
254 destroy_op_array(PHPDBG_G(ops));
255 efree(PHPDBG_G(ops));
256 PHPDBG_G(ops) = NULL;
1524 if (PHPDBG_G(ops)) {
H A Dphpdbg.h257 zend_op_array *ops; /* op_array */ variable
H A Dphpdbg_opcode.c30 static inline char *phpdbg_decode_op(zend_op_array *ops, znode_op *op, uint32_t type, HashTable *vars) /* {{{ */ argument
36 zend_string *var = ops->vars[EX_VAR_TO_NUM(op->var)];
44 if ((pid = zend_hash_index_find_ptr(vars, (zend_ulong) ops->vars - op->var))) {
48 zend_hash_index_update_mem(vars, (zend_ulong) ops->vars - op->var, &id, sizeof(zend_ulong));
55 zval *literal = RT_CONSTANT(ops, *op);
115 char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op, HashTable *vars) /*{{{ */ argument
123 asprintf(&decode[1], "J%ld", OP_JMP_ADDR(op, op->op1) - ops->opcodes);
127 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars);
136 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars);
137 asprintf(&decode[2], "J%ld", OP_JMP_ADDR(op, op->op2) - ops
[all...]
H A Dphpdbg_print.c66 phpdbg_writeln("printoplineinfo", "type=\"User\" startline=\"%d\" endline=\"%d\" method=\"%s::%s\" file=\"%s\" opline=\"%p\"", "L%d-%d %s::%s() %s - %p + %d ops",
75 phpdbg_writeln("printoplineinfo", "type=\"User\" startline=\"%d\" endline=\"%d\" function=\"%s\" file=\"%s\" opline=\"%p\"", "L%d-%d %s() %s - %p + %d ops",
116 if (!PHPDBG_G(ops) && !(PHPDBG_G(flags) & PHPDBG_IN_SIGNAL_HANDLER)) {
120 if (PHPDBG_G(ops)) {
121 phpdbg_notice("printinfo", "file=\"%s\" num=\"%d\"", "Context %s (%d ops)", PHPDBG_G(exec), PHPDBG_G(ops)->last);
123 phpdbg_print_function_helper((zend_function*) PHPDBG_G(ops));
135 zend_op_array *ops = &EG(current_execute_data)->func->op_array; local
136 if (ops->function_name) {
137 if (ops
[all...]
H A Dphpdbg_prompt.c406 if (PHPDBG_G(ops)) {
448 PHPDBG_G(ops) = zend_compile_file(&fh, ZEND_INCLUDE);
615 phpdbg_writeln("exception", "opline=\"%p\" file=\"%s\" line=\"%u\"", "Stack entered at %p in %s on line %u", PHPDBG_G(ops)->opcodes, filename, lineno); */
628 if (PHPDBG_G(ops) || PHPDBG_G(exec)) {
640 if (!PHPDBG_G(ops)) {
690 zend_execute(PHPDBG_G(ops), &PHPDBG_G(retval));
852 phpdbg_writeln("info", "compiled=\"%s\"", "Compiled %s", PHPDBG_G(ops) ? "yes" : "no");
857 if (PHPDBG_G(ops)) {
858 phpdbg_writeln("info", "ops=\"%d\"", "Opcodes %d", PHPDBG_G(ops)
[all...]
H A Dphpdbg_bp.c520 if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->class_len)) {
521 if (phpdbg_resolve_op_array_break(new_break, PHPDBG_G(ops)) == SUCCESS) {
793 new_break.ops = zend_compile_string(&pv, "Conditional Breakpoint Code");
797 if (new_break.ops) {
800 phpdbg_notice("breakpoint", "id=\"%d\" expression=\"%s\" ptr=\"%p\"", "Conditional breakpoint #%d added %s/%p", brake->id, brake->code, brake->ops);
878 zend_op_array *ops; local
884 ops = (zend_op_array *) fbc;
886 if (ops->scope) {
888 return phpdbg_find_breakpoint_method(ops);
902 phpdbg_find_breakpoint_method(zend_op_array *ops) argument
957 zend_op_array *ops = (zend_op_array*)function; local
986 zend_op_array *ops = (zend_op_array*) function; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dphp_fopen_wrapper.c389 stream->ops = &php_stream_socket_ops;
H A Dfilters.c2067 php_stream_filter_ops *ops; member in struct:__anon1
2086 for (i = 0; standard_filters[i].ops; i++) {
2088 standard_filters[i].ops->label,
2101 for (i = 0; standard_filters[i].ops; i++) {
2102 php_stream_filter_unregister_factory(standard_filters[i].ops->label);
/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)
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)
281 #define PHP_STREAM_FREE_CALL_DTOR 1 /* call ops->close */
283 #define PHP_STREAM_FREE_PRESERVE_HANDLE 4 /* tell ops
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_source_win32handle.c74 _zip_source_win32_handle_or_name(const void *fname, HANDLE h, zip_uint64_t start, zip_int64_t len, int closep, const zip_stat_t *st, _zip_source_win32_file_ops_t *ops, zip_error_t *error) argument
91 if ((ctx->fname = ops->op_strdup(fname)) == NULL) {
98 ctx->ops = ops;
121 th = ops->op_open(ctx);
168 if (ctx->ops->op_rename_temp(ctx) < 0) {
197 if ((ctx->h = ctx->ops->op_open(ctx)) == INVALID_HANDLE_VALUE) {
240 if (ctx->ops->op_remove(ctx->fname) < 0) {
251 ctx->ops->op_remove(ctx->tmpname);
347 h = ctx->ops
[all...]
H A Dzipwin32.h48 struct _zip_source_win32_file_ops *ops; member in struct:_zip_source_win32_read_file

Completed in 64 milliseconds

12