/PHP-5.6/ext/hash/ |
H A D | hash.c | 96 ops = NULL; in php_hash_fetch_ops() 100 return ops; in php_hash_fetch_ops() 140 if (!ops) { in php_hash_do_hash() 237 ops->hash_update(context, key, ops->block_size); in php_hash_hmac_round() 257 if (!ops) { in php_hash_do_hash_hmac() 352 if (!ops) { in PHP_FUNCTION() 368 hash->ops = ops; in PHP_FUNCTION() 582 copy_hash->ops = hash->ops; in PHP_FUNCTION() 630 if (!ops) { in PHP_FUNCTION() 920 if (ops) { in PHP_FUNCTION() [all …]
|
H A D | php_hash.h | 41 typedef int (*php_hash_copy_func_t)(const void *ops, void *orig_context, void *dest_context); 55 const php_hash_ops *ops; member 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 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 | 59 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.6/sapi/phpdbg/ |
H A D | phpdbg_info.c | 124 zend_op_array *ops = EG(active_op_array); in PHPDBG_INFO() local 126 if (ops->function_name) { in PHPDBG_INFO() 127 if (ops->scope) { in PHPDBG_INFO() 129 …"Variables in %s::%s() (%d)", ops->scope->name, ops->function_name, zend_hash_num_elements(&vars)); in PHPDBG_INFO() 135 if (ops->filename) { in PHPDBG_INFO() 210 zend_op_array *ops = EG(active_op_array) ? EG(active_op_array) : PHPDBG_G(ops); in PHPDBG_INFO() local 213 if (ops->function_name) { in PHPDBG_INFO() 214 if (ops->scope) { in PHPDBG_INFO() 216 "Literal Constants in %s::%s() (%d)", ops->scope->name, ops->function_name, count); in PHPDBG_INFO() 222 if (ops->filename) { in PHPDBG_INFO() [all …]
|
H A D | phpdbg_print.c | 111 if (!PHPDBG_G(ops)) { in PHPDBG_PRINT() 115 if (PHPDBG_G(ops)) { in PHPDBG_PRINT() 129 zend_op_array *ops = EG(active_op_array); in PHPDBG_PRINT() local 131 if (EG(in_execution) && ops) { in PHPDBG_PRINT() 132 if (ops->function_name) { in PHPDBG_PRINT() 133 if (ops->scope) { in PHPDBG_PRINT() 134 phpdbg_notice("Stack in %s::%s()", ops->scope->name, ops->function_name); in PHPDBG_PRINT() 136 phpdbg_notice("Stack in %s()", ops->function_name); in PHPDBG_PRINT() 139 if (ops->filename) { in PHPDBG_PRINT() 140 phpdbg_notice("Stack in %s", ops->filename); in PHPDBG_PRINT() [all …]
|
H A D | phpdbg_opcode.c | 33 while (iter < ops->last_literal) { in phpdbg_decode_literal() 34 if (literal == &ops->literals[iter]) { in phpdbg_decode_literal() 49 asprintf(&decode, "$%s", ops->vars[op->var].name); in phpdbg_decode_op() 59 vars, (zend_ulong) ops->vars - op->var, in phpdbg_decode_op() 68 asprintf(&decode, "C%u", phpdbg_decode_literal(ops, op->literal TSRMLS_CC)); in phpdbg_decode_op() 90 asprintf(&decode[1], "J%ld", op->op1.jmp_addr - ops->opcodes); in phpdbg_decode_opline() 94 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars TSRMLS_CC); in phpdbg_decode_opline() 110 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars TSRMLS_CC); in phpdbg_decode_opline() 112 &decode[2], "J%ld", op->op2.jmp_addr - ops->opcodes); in phpdbg_decode_opline() 119 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars TSRMLS_CC); in phpdbg_decode_opline() [all …]
|
H A D | phpdbg_list.c | 184 const zend_op_array *ops; in phpdbg_list_function() local 191 ops = (zend_op_array*)fbc; in phpdbg_list_function() 193 phpdbg_list_file(ops->filename, in phpdbg_list_function() 194 ops->line_end - ops->line_start + 1, ops->line_start, 0 TSRMLS_CC); in phpdbg_list_function()
|
H A D | phpdbg_bp.c | 733 new_break.ops = zend_compile_string( in phpdbg_create_conditional_break() 738 if (new_break.ops) { in phpdbg_create_conditional_break() 744 brake->id, brake->code, brake->ops); in phpdbg_create_conditional_break() 813 zend_op_array *ops; in phpdbg_find_breakpoint_symbol() local 820 ops = (zend_op_array*)fbc; in phpdbg_find_breakpoint_symbol() 822 if (ops->scope) { in phpdbg_find_breakpoint_symbol() 827 fname = ops->function_name; in phpdbg_find_breakpoint_symbol() 847 char *lcname = zend_str_tolower_dup(ops->function_name, strlen(ops->function_name)); in phpdbg_find_breakpoint_method() 909 str = ops->function_name ? ops->function_name : "main"; in phpdbg_find_breakpoint_param() 939 if (ops->scope) { in phpdbg_find_breakpoint_param() [all …]
|
H A D | phpdbg_opcode.h | 27 char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op, HashTable *vars TSRMLS_DC);
|
H A D | phpdbg_prompt.c | 351 if (PHPDBG_G(ops)) { in PHPDBG_COMMAND() 584 if (PHPDBG_G(ops) || PHPDBG_G(exec)) { in PHPDBG_COMMAND() 591 if (!PHPDBG_G(ops)) { in PHPDBG_COMMAND() 598 EG(active_op_array) = PHPDBG_G(ops); in PHPDBG_COMMAND() 747 if (PHPDBG_G(ops)) { in PHPDBG_COMMAND() 748 phpdbg_writeln("Opcodes\t\t%d", PHPDBG_G(ops)->last); in PHPDBG_COMMAND() 750 if (PHPDBG_G(ops)->last_var) { in PHPDBG_COMMAND() 1073 if (PHPDBG_G(ops)) { in phpdbg_clean() 1074 destroy_op_array(PHPDBG_G(ops) TSRMLS_CC); in phpdbg_clean() 1075 efree(PHPDBG_G(ops)); in phpdbg_clean() [all …]
|
H A D | phpdbg.c | 70 pg->ops = NULL; in php_phpdbg_globals_ctor() 132 if (brake->ops) { in php_phpdbg_destroy_bp_condition() 136 brake->ops TSRMLS_CC); in php_phpdbg_destroy_bp_condition() 137 efree(brake->ops); in php_phpdbg_destroy_bp_condition() 215 if (PHPDBG_G(ops)) { in PHP_RSHUTDOWN_FUNCTION() 216 destroy_op_array(PHPDBG_G(ops) TSRMLS_CC); in PHP_RSHUTDOWN_FUNCTION() 217 efree(PHPDBG_G(ops)); in PHP_RSHUTDOWN_FUNCTION() 218 PHPDBG_G(ops) = NULL; in PHP_RSHUTDOWN_FUNCTION()
|
H A D | phpdbg.h | 200 zend_op_array *ops; /* op_array */ variable
|
H A D | phpdbg_bp.h | 103 zend_op_array *ops; member
|
/PHP-5.6/Zend/tests/ |
H A D | bug53511.phpt | 7 throw new Exception("ops 1"); 14 throw new Exception("ops 2"); 23 Fatal error: Uncaught exception 'Exception' with message 'ops 2' in %sbug53511.php:11 28 Next exception 'Exception' with message 'ops 1' in %sbug53511.php:4
|
/PHP-5.6/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 | 596 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_bind() 604 stream->ops == &php_stream_unix_socket_ops ? "" : "datagram", in php_tcp_sockop_bind() 624 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, in php_tcp_sockop_bind() 646 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_connect() 694 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, in php_tcp_sockop_connect() 807 php_stream_ops *ops; in php_stream_generic_socket_factory() local 811 ops = &php_stream_socket_ops; in php_stream_generic_socket_factory() 813 ops = &php_stream_udp_socket_ops; in php_stream_generic_socket_factory() 817 ops = &php_stream_unix_socket_ops; in php_stream_generic_socket_factory() 819 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() 303 ret->ops = ops; in _php_stream_alloc() 486 ret = stream->ops->close(stream, preserve_handle ? 0 : 1 TSRMLS_CC); in _php_stream_free() 733 toread = stream->ops->read(stream, buf, size TSRMLS_CC); in _php_stream_read() 835 if (stream->ops->stat == NULL) { in _php_stream_stat() 839 return (stream->ops->stat)(stream, ssb TSRMLS_CC); in _php_stream_stat() 1133 justwrote = stream->ops->write(stream, buf, towrite TSRMLS_CC); in _php_stream_write_buffer() 1228 if (stream->ops->flush) { in _php_stream_flush() 1229 ret = stream->ops->flush(stream TSRMLS_CC); in _php_stream_flush() 1237 if (buf == NULL || count == 0 || stream->ops->write == NULL) { in _php_stream_write() [all …]
|
/PHP-5.6/Zend/tests/traits/ |
H A D | bug60809.phpt | 24 public $prop = "ops";
|
/PHP-5.6/main/ |
H A D | php_streams.h | 62 #define php_stream_alloc_rel(ops, thisptr, persistent, mode) _php_stream_alloc((ops), (thisptr), (p… argument 187 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 486 #define php_stream_is(stream, anops) ((stream)->ops == anops)
|
/PHP-5.6/ |
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.6/ext/standard/ |
H A D | filters.c | 2143 php_stream_filter_ops *ops; member 2162 for (i = 0; standard_filters[i].ops; i++) { in PHP_MINIT_FUNCTION() 2164 standard_filters[i].ops->label, in PHP_MINIT_FUNCTION() 2177 for (i = 0; standard_filters[i].ops; i++) { in PHP_MSHUTDOWN_FUNCTION() 2178 php_stream_filter_unregister_factory(standard_filters[i].ops->label TSRMLS_CC); in PHP_MSHUTDOWN_FUNCTION()
|
H A D | php_fopen_wrapper.c | 392 stream->ops = &php_stream_socket_ops; in php_stream_url_wrap_php()
|