/PHP-7.1/ext/hash/ |
H A D | hash.c | 89 return ops; in php_hash_fetch_ops() 128 if (!ops) { in php_hash_do_hash() 225 ops->hash_update(context, key, ops->block_size); in php_hash_hmac_round() 247 if (!ops) { in php_hash_do_hash_hmac() 274 ops->hash_update(context, K, ops->block_size); in php_hash_do_hash_hmac() 343 if (!ops) { in PHP_FUNCTION() 359 hash->ops = ops; in PHP_FUNCTION() 576 copy_hash->ops = hash->ops; in PHP_FUNCTION() 635 if (!ops) { in PHP_FUNCTION() 684 ops->hash_update(context, K, ops->block_size); in PHP_FUNCTION() [all …]
|
H A D | php_hash.h | 38 typedef int (*php_hash_copy_func_t)(const void *ops, void *orig_context, void *dest_context); 52 const php_hash_ops *ops; member 146 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops); 147 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…
|
/PHP-7.1/ext/opcache/Optimizer/ |
H A D | dfa_pass.c | 156 ssa->ops[target] = ssa->ops[i]; in zend_ssa_remove_nops() 225 ssa->ops[i].op1_use_chain -= shiftlist[ssa->ops[i].op1_use_chain]; in zend_ssa_remove_nops() 228 ssa->ops[i].op2_use_chain -= shiftlist[ssa->ops[i].op2_use_chain]; in zend_ssa_remove_nops() 231 ssa->ops[i].res_use_chain -= shiftlist[ssa->ops[i].res_use_chain]; in zend_ssa_remove_nops() 473 && ssa->ops[op_1].op1_def == v in zend_dfa_optimize_op_array() 535 ssa->ops[op_1].op1_use = ssa->ops[op_1].op2_use; in zend_dfa_optimize_op_array() 536 ssa->ops[op_1].op1_use_chain = ssa->ops[op_1].op2_use_chain; in zend_dfa_optimize_op_array() 601 ssa->ops[op_1].op1_def = -1; in zend_dfa_optimize_op_array() 602 ssa->ops[op_1].op1_use = -1; in zend_dfa_optimize_op_array() 627 ssa->ops[op_1].result_def = ssa->ops[op_1].op1_def; in zend_dfa_optimize_op_array() [all …]
|
H A D | zend_inference.h | 44 ssa->ops && \ 67 ssa->ops && \ 69 ssa->ops[opline - op_array->opcodes].opN##_use >= 0 && \ 91 ssa->ops && \ 93 ssa->ops[opline - op_array->opcodes].opN##_use >= 0 && \ 109 ssa->ops && \ 111 ssa->ops[opline - op_array->opcodes].opN##_use >= 0 && \ 127 ssa->ops && \ 129 ssa->ops[opline - op_array->opcodes].opN##_use >= 0 && \ 210 return get_ssa_var_info(ssa, ssa->ops ? ssa->ops[opline - op_array->opcodes].opN##_use : -1); \ [all …]
|
H A D | zend_inference.c | 112 MACRO(ssa->ops[line].op1_def); \ 270 zend_ssa_op *ssa_ops = ssa->ops; in zend_ssa_find_false_dependencies() 1184 if (ssa->ops[line].op1_def == var || ssa->ops[line].result_def == var) { in zend_inference_calc_range() 1203 if (ssa->ops[line].op1_def == var || ssa->ops[line].result_def == var) { in zend_inference_calc_range() 1222 if (ssa->ops[line].op1_def == var || ssa->ops[line].result_def == var) { in zend_inference_calc_range() 1244 if (ssa->ops[line].op1_def == var || ssa->ops[line].result_def == var) { in zend_inference_calc_range() 1280 …if (ssa->ops[line].op1_def == var || ssa->ops[line].op2_def == var || ssa->ops[line].result_def ==… in zend_inference_calc_range() 1314 if (ssa->ops[line].op1_def == var || ssa->ops[line].result_def == var) { in zend_inference_calc_range() 1834 op = ssa->ops + use; in add_usages() 3698 info->ssa.ops && in zend_func_return_info() [all …]
|
H A D | zend_dump.c | 400 if (!ssa || !ssa->ops || ssa->ops[opline - op_array->opcodes].result_use < 0) { in zend_dump_op() 402 if (ssa && ssa->ops && ssa->ops[opline - op_array->opcodes].result_def >= 0) { in zend_dump_op() 550 if (ssa && ssa->ops) { in zend_dump_op() 555 } else if (ssa->ops[opline - op_array->opcodes].op1_def < 0) { in zend_dump_op() 563 if (ssa && ssa->ops) { in zend_dump_op() 586 if (ssa && ssa->ops) { in zend_dump_op() 591 } else if (ssa->ops[opline - op_array->opcodes].op2_def < 0) { in zend_dump_op() 599 if (ssa && ssa->ops) { in zend_dump_op() 630 } else if (ssa && ssa->ops && ssa->ops[opline - op_array->opcodes].result_use >= 0) { in zend_dump_op() 632 if (ssa && ssa->ops) { in zend_dump_op() [all …]
|
/PHP-7.1/sapi/phpdbg/ |
H A D | phpdbg_opcode.c | 40 zend_op_array *ops, const znode_op *op, uint32_t type) /* {{{ */ in phpdbg_decode_op() argument 46 zend_string *var = ops->vars[EX_VAR_TO_NUM(op->var)]; in phpdbg_decode_op() 53 spprintf(&decode, 0, "@%u", EX_VAR_TO_NUM(op->var) - ops->last_var); in phpdbg_decode_op() 56 spprintf(&decode, 0, "~%u", EX_VAR_TO_NUM(op->var) - ops->last_var); in phpdbg_decode_op() 59 zval *literal = RT_CONSTANT(ops, *op); in phpdbg_decode_op() 71 result = phpdbg_decode_op(ops, &op, op_type); in phpdbg_decode_input_op() 73 spprintf(&result, 0, "J%td", OP_JMP_ADDR(opline, op) - ops->opcodes); in phpdbg_decode_input_op() 96 char *phpdbg_decode_opline(zend_op_array *ops, zend_op *opline) /*{{{ */ in phpdbg_decode_opline() argument 104 ops, opline, opline->op1, opline->op1_type, ZEND_VM_OP1_FLAGS(flags)); in phpdbg_decode_opline() 108 ops, opline, opline->op2, opline->op2_type, ZEND_VM_OP2_FLAGS(flags)); in phpdbg_decode_opline() [all …]
|
H A D | phpdbg_info.c | 213 if (ops->function_name) { in phpdbg_print_symbols() 214 if (ops->scope) { in phpdbg_print_symbols() 220 if (ops->filename) { in phpdbg_print_symbols() 310 if (in_executor || PHPDBG_G(ops)) { in PHPDBG_INFO() 311 zend_op_array *ops = in_executor ? &EG(current_execute_data)->func->op_array : PHPDBG_G(ops); in PHPDBG_INFO() local 312 int literal = 0, count = ops->last_literal - 1; in PHPDBG_INFO() 314 if (ops->function_name) { in PHPDBG_INFO() 315 if (ops->scope) { in PHPDBG_INFO() 321 if (ops->filename) { in PHPDBG_INFO() 328 while (literal < ops->last_literal) { in PHPDBG_INFO() [all …]
|
H A D | phpdbg_print.c | 112 if (PHPDBG_G(ops)) { in PHPDBG_PRINT() 115 phpdbg_print_function_helper((zend_function*) PHPDBG_G(ops)); in PHPDBG_PRINT() 128 if (ops->function_name) { in PHPDBG_PRINT() 129 if (ops->scope) { in PHPDBG_PRINT() 130 …m=\"%d\"", "Stack in %s::%s() (%d ops)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(ops->function_name),… in PHPDBG_PRINT() 132 …, "function=\"%s\" num=\"%d\"", "Stack in %s() (%d ops)", ZSTR_VAL(ops->function_name), ops->last); in PHPDBG_PRINT() 135 if (ops->filename) { in PHPDBG_PRINT() 136 …"printinfo", "file=\"%s\" num=\"%d\"", "Stack in %s (%d ops)", ZSTR_VAL(ops->filename), ops->last); in PHPDBG_PRINT() 138 phpdbg_notice("printinfo", "opline=\"%p\" num=\"%d\"", "Stack @ %p (%d ops)", ops, ops->last); in PHPDBG_PRINT() 141 phpdbg_print_function_helper((zend_function*) ops); in PHPDBG_PRINT() [all …]
|
H A D | phpdbg_bp.c | 568 …if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->cl… in phpdbg_resolve_opline_break() 850 if (new_break.ops) { in phpdbg_create_conditional_break() 921 zend_op_array *ops; in phpdbg_find_breakpoint_symbol() local 927 ops = (zend_op_array *) fbc; in phpdbg_find_breakpoint_symbol() 929 if (ops->scope) { in phpdbg_find_breakpoint_symbol() 931 return phpdbg_find_breakpoint_method(ops); in phpdbg_find_breakpoint_symbol() 934 if (ops->function_name) { in phpdbg_find_breakpoint_symbol() 1004 str = ops->function_name ? ZSTR_VAL(ops->function_name) : "main"; in phpdbg_find_breakpoint_param() 1005 len = ops->function_name ? ZSTR_LEN(ops->function_name) : strlen(str); in phpdbg_find_breakpoint_param() 1034 if (ops->scope) { in phpdbg_find_breakpoint_param() [all …]
|
H A D | phpdbg_list.c | 180 const zend_op_array *ops; in phpdbg_list_function() local 187 ops = (zend_op_array *) fbc; in phpdbg_list_function() 189 phpdbg_list_file(ops->filename, ops->line_end - ops->line_start + 1, ops->line_start, 0); in phpdbg_list_function()
|
/PHP-7.1/sapi/phpdbg/tests/ |
H A D | print_001.phpt | 13 prompt> [User Function foo (8 ops)] 14 L14-16 foo() %s - %s + 8 ops 24 L5-7 Foo\Bar::Foo() %s - %s + 5 ops 30 L9-9 Foo\Bar::baz() %s - %s + 1 ops 33 prompt> [Context %s (11 ops)] 34 L1-21 {main}() %s - %s + 11 ops
|
H A D | print_002.phpt | 19 prompt> [Stack in foo() (8 ops)] 20 L14-16 foo() %s - %s + 8 ops
|
/PHP-7.1/Zend/tests/ |
H A D | bug53511.phpt | 7 throw new Exception("ops 1"); 14 throw new Exception("ops 2"); 23 Fatal error: Uncaught Exception: ops 2 in %sbug53511.php:11 28 Next Exception: ops 1 in %sbug53511.php:4
|
H A D | temporary_cleaning_004.phpt | 6 function ops() { 19 $r = [$x] + ($y ? ((array) $x) + [2] : ops()); 34 $r = [$x] + ($y ? ((array) $x) + [2] : ops());
|
H A D | temporary_cleaning_005.phpt | 6 function ops() { 20 $r = [$x] + ($y ? ((array) $x) + [2] : ops()); 37 $r = [$x] + ($y ? ((array) $x) + [2] : ops());
|
H A D | globals_005.phpt | 9 return "ops"; 12 $GLOBALS[foo()] = "ops";
|
H A D | temporary_cleaning_003.phpt | 6 function ops() { 12 $r = [$x] + ops();
|
H A D | temporary_cleaning_001.phpt | 6 function ops() { 14 $r = [$x] + ($y ? ((array) $x) + [2] : ops());
|
/PHP-7.1/main/streams/ |
H A D | cast.c | 199 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_cast() 202 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy); in _php_stream_cast() 220 stream->ops->cast && in _php_stream_cast() 222 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast() 263 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast() 264 if (FAILURE == stream->ops->cast(stream, castas, ret)) { in _php_stream_cast() 300 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { in _php_stream_cast() 313 …php_error_docref(NULL, E_WARNING, "cannot represent a stream of type %s as a %s", stream->ops->lab… in _php_stream_cast() 375 if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) { in _php_stream_make_seekable()
|
H A D | xp_socket.c | 621 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_bind() 629 stream->ops == &php_stream_unix_socket_ops ? "" : "datagram", in php_tcp_sockop_bind() 702 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_connect() 757 && stream->ops != &php_stream_unix_socket_ops in php_tcp_sockop_connect() 758 && stream->ops != &php_stream_unixdg_socket_ops in php_tcp_sockop_connect() 886 php_stream_ops *ops; in php_stream_generic_socket_factory() local 890 ops = &php_stream_socket_ops; in php_stream_generic_socket_factory() 892 ops = &php_stream_udp_socket_ops; in php_stream_generic_socket_factory() 896 ops = &php_stream_unix_socket_ops; in php_stream_generic_socket_factory() 898 ops = &php_stream_unixdg_socket_ops; in php_stream_generic_socket_factory() [all …]
|
H A D | streams.c | 284 ret->ops = ops; in _php_stream_alloc() 467 ret = stream->ops->close(stream, preserve_handle ? 0 : 1); in _php_stream_free() 716 toread = stream->ops->read(stream, buf, size); in _php_stream_read() 818 if (stream->ops->stat == NULL) { in _php_stream_stat() 822 return (stream->ops->stat)(stream, ssb); in _php_stream_stat() 1116 justwrote = stream->ops->write(stream, buf, towrite); in _php_stream_write_buffer() 1213 if (stream->ops->flush) { in _php_stream_flush() 1214 ret = stream->ops->flush(stream); in _php_stream_flush() 1224 if (buf == NULL || count == 0 || stream->ops->write == NULL) { in _php_stream_write() 1349 if (stream->ops->set_option) { in _php_stream_set_option() [all …]
|
/PHP-7.1/Zend/tests/try/ |
H A D | bug70228_5.phpt | 9 throw new Exception("ops"); 20 ops
|
/PHP-7.1/ext/zip/lib/ |
H A D | zip_source_win32handle.c | 73 …t64_t len, int closep, const zip_stat_t *st, _zip_source_win32_file_ops_t *ops, zip_error_t *error) in _zip_source_win32_handle_or_name() argument 90 if ((ctx->fname = ops->op_strdup(fname)) == NULL) { in _zip_source_win32_handle_or_name() 97 ctx->ops = ops; in _zip_source_win32_handle_or_name() 120 th = ops->op_open(ctx); in _zip_source_win32_handle_or_name() 167 if (ctx->ops->op_rename_temp(ctx) < 0) { in _win32_read_file() 196 if ((ctx->h = ctx->ops->op_open(ctx)) == INVALID_HANDLE_VALUE) { in _win32_read_file() 239 if (ctx->ops->op_remove(ctx->fname) < 0) { in _win32_read_file() 250 ctx->ops->op_remove(ctx->tmpname); in _win32_read_file() 346 h = ctx->ops->op_open(ctx); in _win32_read_file() 453 th = ctx->ops->op_create_temp(ctx, &temp, value + i, psa); in _win32_create_temp_file()
|