ops 92 ext/hash/hash.c php_hash_ops *ops = zend_hash_str_find_ptr(&php_hash_hashtable, lower, algo_len); ops 95 ext/hash/hash.c return ops; ops 99 ext/hash/hash.c PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops) /* {{{ */ ops 103 ext/hash/hash.c zend_hash_str_add_ptr(&php_hash_hashtable, lower, algo_len, (void *) ops); ops 108 ext/hash/hash.c PHP_HASH_API int php_hash_copy(const void *ops, void *orig_context, void *dest_context) /* {{{ */ ops 110 ext/hash/hash.c php_hash_ops *hash_ops = (php_hash_ops *)ops; ops 125 ext/hash/hash.c const php_hash_ops *ops; ops 133 ext/hash/hash.c ops = php_hash_fetch_ops(algo, algo_len); ops 134 ext/hash/hash.c if (!ops) { ops 150 ext/hash/hash.c context = emalloc(ops->context_size); ops 151 ext/hash/hash.c ops->hash_init(context); ops 158 ext/hash/hash.c ops->hash_update(context, (unsigned char *) buf, n); ops 162 ext/hash/hash.c ops->hash_update(context, (unsigned char *) data, data_len); ops 165 ext/hash/hash.c digest = zend_string_alloc(ops->digest_size, 0); ops 166 ext/hash/hash.c ops->hash_final((unsigned char *) ZSTR_VAL(digest), context); ops 170 ext/hash/hash.c ZSTR_VAL(digest)[ops->digest_size] = 0; ops 173 ext/hash/hash.c zend_string *hex_digest = zend_string_safe_alloc(ops->digest_size, 2, 0, 0); ops 175 ext/hash/hash.c php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), ops->digest_size); ops 176 ext/hash/hash.c ZSTR_VAL(hex_digest)[2 * ops->digest_size] = 0; ops 215 ext/hash/hash.c static inline void php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const size_t key_len) { ops 216 ext/hash/hash.c memset(K, 0, ops->block_size); ops 217 ext/hash/hash.c if (key_len > ops->block_size) { ops 219 ext/hash/hash.c ops->hash_init(context); ops 220 ext/hash/hash.c ops->hash_update(context, key, key_len); ops 221 ext/hash/hash.c ops->hash_final(K, context); ops 226 ext/hash/hash.c php_hash_string_xor_char(K, K, 0x36, ops->block_size); ops 229 ext/hash/hash.c static inline void 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) { ops 230 ext/hash/hash.c ops->hash_init(context); ops 231 ext/hash/hash.c ops->hash_update(context, key, ops->block_size); ops 232 ext/hash/hash.c ops->hash_update(context, data, data_size); ops 233 ext/hash/hash.c ops->hash_final(final, context); ops 243 ext/hash/hash.c const php_hash_ops *ops; ops 252 ext/hash/hash.c ops = php_hash_fetch_ops(algo, algo_len); ops 253 ext/hash/hash.c if (!ops) { ops 269 ext/hash/hash.c context = emalloc(ops->context_size); ops 271 ext/hash/hash.c K = emalloc(ops->block_size); ops 272 ext/hash/hash.c digest = zend_string_alloc(ops->digest_size, 0); ops 274 ext/hash/hash.c php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); ops 279 ext/hash/hash.c ops->hash_init(context); ops 280 ext/hash/hash.c ops->hash_update(context, K, ops->block_size); ops 282 ext/hash/hash.c ops->hash_update(context, (unsigned char *) buf, n); ops 285 ext/hash/hash.c ops->hash_final((unsigned char *) ZSTR_VAL(digest), context); ops 287 ext/hash/hash.c php_hash_hmac_round((unsigned char *) ZSTR_VAL(digest), ops, context, K, (unsigned char *) data, data_len); ops 290 ext/hash/hash.c php_hash_string_xor_char(K, K, 0x6A, ops->block_size); ops 292 ext/hash/hash.c php_hash_hmac_round((unsigned char *) ZSTR_VAL(digest), ops, context, K, (unsigned char *) ZSTR_VAL(digest), ops->digest_size); ops 295 ext/hash/hash.c ZEND_SECURE_ZERO(K, ops->block_size); ops 300 ext/hash/hash.c ZSTR_VAL(digest)[ops->digest_size] = 0; ops 303 ext/hash/hash.c zend_string *hex_digest = zend_string_safe_alloc(ops->digest_size, 2, 0, 0); ops 305 ext/hash/hash.c php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), ops->digest_size); ops 306 ext/hash/hash.c ZSTR_VAL(hex_digest)[2 * ops->digest_size] = 0; ops 341 ext/hash/hash.c const php_hash_ops *ops; ops 348 ext/hash/hash.c ops = php_hash_fetch_ops(algo, algo_len); ops 349 ext/hash/hash.c if (!ops) { ops 361 ext/hash/hash.c context = emalloc(ops->context_size); ops 362 ext/hash/hash.c ops->hash_init(context); ops 365 ext/hash/hash.c hash->ops = ops; ops 371 ext/hash/hash.c char *K = emalloc(ops->block_size); ops 374 ext/hash/hash.c memset(K, 0, ops->block_size); ops 376 ext/hash/hash.c if (key_len > ops->block_size) { ops 378 ext/hash/hash.c ops->hash_update(context, (unsigned char *) key, key_len); ops 379 ext/hash/hash.c ops->hash_final((unsigned char *) K, context); ops 381 ext/hash/hash.c ops->hash_init(context); ops 387 ext/hash/hash.c for(i=0; i < ops->block_size; i++) { ops 390 ext/hash/hash.c ops->hash_update(context, (unsigned char *) K, ops->block_size); ops 415 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) data, data_len); ops 452 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) buf, n); ops 488 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) buf, n); ops 514 ext/hash/hash.c digest_len = hash->ops->digest_size; ops 516 ext/hash/hash.c hash->ops->hash_final((unsigned char *) ZSTR_VAL(digest), hash->context); ops 521 ext/hash/hash.c for(i=0; i < hash->ops->block_size; i++) { ops 526 ext/hash/hash.c hash->ops->hash_init(hash->context); ops 527 ext/hash/hash.c hash->ops->hash_update(hash->context, hash->key, hash->ops->block_size); ops 528 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) ZSTR_VAL(digest), hash->ops->digest_size); ops 529 ext/hash/hash.c hash->ops->hash_final((unsigned char *) ZSTR_VAL(digest), hash->context); ops 532 ext/hash/hash.c ZEND_SECURE_ZERO(hash->key, hash->ops->block_size); ops 572 ext/hash/hash.c context = emalloc(hash->ops->context_size); ops 573 ext/hash/hash.c hash->ops->hash_init(context); ops 575 ext/hash/hash.c res = hash->ops->hash_copy(hash->ops, hash->context, context); ops 582 ext/hash/hash.c copy_hash->ops = hash->ops; ops 585 ext/hash/hash.c copy_hash->key = ecalloc(1, hash->ops->block_size); ops 587 ext/hash/hash.c memcpy(copy_hash->key, hash->key, hash->ops->block_size); ops 617 ext/hash/hash.c const php_hash_ops *ops; ops 624 ext/hash/hash.c ops = php_hash_fetch_ops(algo, algo_len); ops 625 ext/hash/hash.c if (!ops) { ops 645 ext/hash/hash.c context = emalloc(ops->context_size); ops 646 ext/hash/hash.c ops->hash_init(context); ops 648 ext/hash/hash.c K1 = emalloc(ops->block_size); ops 649 ext/hash/hash.c K2 = emalloc(ops->block_size); ops 650 ext/hash/hash.c digest = emalloc(ops->digest_size); ops 651 ext/hash/hash.c temp = emalloc(ops->digest_size); ops 654 ext/hash/hash.c php_hash_hmac_prep_key(K1, ops, context, (unsigned char *) pass, pass_len); ops 656 ext/hash/hash.c php_hash_string_xor_char(K2, K1, 0x6A, ops->block_size); ops 660 ext/hash/hash.c length = ops->digest_size; ops 670 ext/hash/hash.c loops = (zend_long) ceil((float) digest_length / (float) ops->digest_size); ops 672 ext/hash/hash.c result = safe_emalloc(loops, ops->digest_size, 0); ops 686 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K1, computed_salt, (zend_long) salt_len + 4); ops 687 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); ops 691 ext/hash/hash.c memcpy(temp, digest, ops->digest_size); ops 699 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K1, digest, ops->digest_size); ops 700 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); ops 703 ext/hash/hash.c php_hash_string_xor(temp, temp, digest, ops->digest_size); ops 706 ext/hash/hash.c memcpy(result + ((i - 1) * ops->digest_size), temp, ops->digest_size); ops 709 ext/hash/hash.c ZEND_SECURE_ZERO(K1, ops->block_size); ops 710 ext/hash/hash.c ZEND_SECURE_ZERO(K2, ops->block_size); ops 779 ext/hash/hash.c unsigned char *dummy = emalloc(hash->ops->digest_size); ops 780 ext/hash/hash.c hash->ops->hash_final(dummy, hash->context); ops 786 ext/hash/hash.c memset(hash->key, 0, hash->ops->block_size); ops 917 ext/hash/hash.c const php_hash_ops *ops = php_hash_fetch_ops(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name)); ops 918 ext/hash/hash.c if (ops) { ops 919 ext/hash/hash.c RETVAL_LONG(ops->digest_size); ops 960 ext/hash/hash.c const php_hash_ops *ops = php_hash_fetch_ops(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name)); ops 961 ext/hash/hash.c if (ops) { ops 966 ext/hash/hash.c int block_size = ops->digest_size; ops 970 ext/hash/hash.c context = emalloc(ops->context_size); ops 971 ext/hash/hash.c ops->hash_init(context); ops 974 ext/hash/hash.c digest = emalloc(ops->digest_size + 1); ops 977 ext/hash/hash.c ops->hash_init(context); ops 980 ext/hash/hash.c ops->hash_update(context, &null, 1); ops 982 ext/hash/hash.c ops->hash_update(context, (unsigned char *)padded_salt, salt_len); ops 983 ext/hash/hash.c ops->hash_update(context, (unsigned char *)password, password_len); ops 984 ext/hash/hash.c ops->hash_final((unsigned char *)digest, context); ops 59 ext/hash/hash_adler32.c PHP_HASH_API int PHP_ADLER32Copy(const php_hash_ops *ops, PHP_ADLER32_CTX *orig_context, PHP_ADLER32_CTX *copy_context) ops 69 ext/hash/hash_crc32.c PHP_HASH_API int PHP_CRC32Copy(const php_hash_ops *ops, PHP_CRC32_CTX *orig_context, PHP_CRC32_CTX *copy_context) ops 42 ext/hash/php_hash.h typedef int (*php_hash_copy_func_t)(const void *ops, void *orig_context, void *dest_context); ops 56 ext/hash/php_hash.h const php_hash_ops *ops; ops 143 ext/hash/php_hash.h PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops); ops 144 ext/hash/php_hash.h PHP_HASH_API int php_hash_copy(const void *ops, void *orig_context, void *dest_context); ops 33 ext/hash/php_hash_adler32.h PHP_HASH_API int PHP_ADLER32Copy(const php_hash_ops *ops, PHP_ADLER32_CTX *orig_context, PHP_ADLER32_CTX *copy_context); ops 34 ext/hash/php_hash_crc32.h PHP_HASH_API int PHP_CRC32Copy(const php_hash_ops *ops, PHP_CRC32_CTX *orig_context, PHP_CRC32_CTX *copy_context); ops 873 ext/mysqlnd/mysqlnd_net.c int was_blocked = net_stream->ops->set_option(net_stream, opt, 0, NULL); ops 886 ext/mysqlnd/mysqlnd_net.c net_stream->ops->set_option(net_stream, opt, 1, NULL); ops 821 ext/opcache/ZendAccelerator.c !stream->ops || ops 822 ext/opcache/ZendAccelerator.c !stream->ops->stat) { ops 829 ext/opcache/ZendAccelerator.c ret = stream->ops->stat(stream, &sb); ops 1663 ext/openssl/xp_ssl.c if (cparam->inputs.session->ops != &php_openssl_socket_ops) { ops 2229 ext/openssl/xp_ssl.c xparam->outputs.client = php_stream_alloc_rel(stream->ops, clisockdata, NULL, "r+"); ops 773 ext/posix/posix.c stream->ops->label); ops 780 ext/session/session.c php_hash_ops *ops = (php_hash_ops*)php_hash_fetch_ops(ZSTR_VAL(new_value), ZSTR_LEN(new_value)); ops 782 ext/session/session.c if (ops) { ops 784 ext/session/session.c PS(hash_ops) = ops; ops 117489 ext/sqlite3/libsqlite/sqlite3.c static const u8 ops[] = {TK_GE, TK_LE}; ops 117495 ext/sqlite3/libsqlite/sqlite3.c pNewExpr = sqlite3PExpr(pParse, ops[i], ops 2067 ext/standard/filters.c php_stream_filter_ops *ops; ops 2086 ext/standard/filters.c for (i = 0; standard_filters[i].ops; i++) { ops 2088 ext/standard/filters.c standard_filters[i].ops->label, ops 2101 ext/standard/filters.c for (i = 0; standard_filters[i].ops; i++) { ops 2102 ext/standard/filters.c php_stream_filter_unregister_factory(standard_filters[i].ops->label); ops 401 ext/standard/php_fopen_wrapper.c stream->ops = &php_stream_socket_ops; ops 523 ext/standard/streamsfuncs.c add_assoc_string(return_value, "stream_type", (char *)stream->ops->label); ops 544 ext/standard/streamsfuncs.c add_assoc_bool(return_value, "seekable", (stream->ops->seek) && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0); ops 73 ext/zip/lib/zip_source_win32handle.c _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) ops 90 ext/zip/lib/zip_source_win32handle.c if ((ctx->fname = ops->op_strdup(fname)) == NULL) { ops 97 ext/zip/lib/zip_source_win32handle.c ctx->ops = ops; ops 120 ext/zip/lib/zip_source_win32handle.c th = ops->op_open(ctx); ops 167 ext/zip/lib/zip_source_win32handle.c if (ctx->ops->op_rename_temp(ctx) < 0) { ops 196 ext/zip/lib/zip_source_win32handle.c if ((ctx->h = ctx->ops->op_open(ctx)) == INVALID_HANDLE_VALUE) { ops 239 ext/zip/lib/zip_source_win32handle.c if (ctx->ops->op_remove(ctx->fname) < 0) { ops 250 ext/zip/lib/zip_source_win32handle.c ctx->ops->op_remove(ctx->tmpname); ops 346 ext/zip/lib/zip_source_win32handle.c h = ctx->ops->op_open(ctx); ops 453 ext/zip/lib/zip_source_win32handle.c th = ctx->ops->op_create_temp(ctx, &temp, value + i, psa); ops 48 ext/zip/lib/zipwin32.h struct _zip_source_win32_file_ops *ops; ops 64 main/php_streams.h #define php_stream_alloc_rel(ops, thisptr, persistent, mode) _php_stream_alloc((ops), (thisptr), (persistent), (mode) STREAMS_REL_CC) ops 191 main/php_streams.h php_stream_ops *ops; ops 245 main/php_streams.h PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, ops 248 main/php_streams.h #define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (persistent_id), (mode) STREAMS_CC) ops 497 main/php_streams.h #define php_stream_is(stream, anops) ((stream)->ops == anops) ops 199 main/streams/cast.c if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { ops 202 main/streams/cast.c stream->ops->seek(stream, stream->position, SEEK_SET, &dummy); ops 220 main/streams/cast.c stream->ops->cast && ops 222 main/streams/cast.c stream->ops->cast(stream, castas, ret) == SUCCESS ops 263 main/streams/cast.c if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL) == SUCCESS) { ops 264 main/streams/cast.c if (FAILURE == stream->ops->cast(stream, castas, ret)) { ops 300 main/streams/cast.c } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { ops 313 main/streams/cast.c php_error_docref(NULL, E_WARNING, "cannot represent a stream of type %s as a %s", stream->ops->label, cast_names[castas]); ops 375 main/streams/cast.c if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) { ops 502 main/streams/filter.c stream->ops->write(stream, bucket->buf, bucket->buflen); ops 748 main/streams/memory.c stream->ops = &php_stream_rfc2397_ops; ops 80 main/streams/streams.c fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream); ops 269 main/streams/streams.c PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id, const char *mode STREAMS_DC) /* {{{ */ ops 281 main/streams/streams.c fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id); ops 284 main/streams/streams.c ret->ops = ops; ops 383 main/streams/streams.c stream->ops->label, stream, stream->orig_path, stream->in_free, _php_stream_pretty_free_options(close_options, out)); ops 434 main/streams/streams.c stream->ops->label, stream, stream->orig_path, preserve_handle, release_cast, ops 467 main/streams/streams.c ret = stream->ops->close(stream, preserve_handle ? 0 : 1); ops 512 main/streams/streams.c spprintf(&leakinfo, 0, __FILE__ "(%d) : Stream of type '%s' %p (path:%s) was not closed\n", __LINE__, stream->ops->label, stream, stream->orig_path); ops 579 main/streams/streams.c justread = stream->ops->read(stream, chunk_buf, stream->chunk_size); ops 675 main/streams/streams.c justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos, ops 716 main/streams/streams.c toread = stream->ops->read(stream, buf, size); ops 818 main/streams/streams.c if (stream->ops->stat == NULL) { ops 822 main/streams/streams.c return (stream->ops->stat)(stream, ssb); ops 1104 main/streams/streams.c if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && stream->readpos != stream->writepos) { ops 1107 main/streams/streams.c stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position); ops 1116 main/streams/streams.c justwrote = stream->ops->write(stream, buf, towrite); ops 1126 main/streams/streams.c if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { ops 1213 main/streams/streams.c if (stream->ops->flush) { ops 1214 main/streams/streams.c ret = stream->ops->flush(stream); ops 1224 main/streams/streams.c if (buf == NULL || count == 0 || stream->ops->write == NULL) { ops 1297 main/streams/streams.c if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { ops 1310 main/streams/streams.c ret = stream->ops->seek(stream, offset, whence, &stream->position); ops 1349 main/streams/streams.c if (stream->ops->set_option) { ops 1350 main/streams/streams.c ret = stream->ops->set_option(stream, option, value, ptrparam); ops 2130 main/streams/streams.c if (stream && stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && strchr(mode, 'a') && stream->position == 0) { ops 2134 main/streams/streams.c if (0 == stream->ops->seek(stream, 0, SEEK_CUR, &newpos)) { ops 611 main/streams/xp_socket.c if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { ops 614 main/streams/xp_socket.c sock->socket = socket(PF_UNIX, stream->ops == &php_stream_unix_socket_ops ? SOCK_STREAM : SOCK_DGRAM, 0); ops 619 main/streams/xp_socket.c stream->ops == &php_stream_unix_socket_ops ? "" : "datagram", ops 658 main/streams/xp_socket.c if (stream->ops == &php_stream_udp_socket_ops /* SO_BROADCAST is only applicable for UDP */ ops 668 main/streams/xp_socket.c stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, ops 692 main/streams/xp_socket.c if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { ops 695 main/streams/xp_socket.c sock->socket = socket(PF_UNIX, stream->ops == &php_stream_unix_socket_ops ? SOCK_STREAM : SOCK_DGRAM, 0); ops 736 main/streams/xp_socket.c if (stream->ops == &php_stream_udp_socket_ops /* SO_BROADCAST is only applicable for UDP */ ops 750 main/streams/xp_socket.c stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, ops 810 main/streams/xp_socket.c xparam->outputs.client = php_stream_alloc_rel(stream->ops, clisockdata, NULL, "r+"); ops 863 main/streams/xp_socket.c php_stream_ops *ops; ops 867 main/streams/xp_socket.c ops = &php_stream_socket_ops; ops 869 main/streams/xp_socket.c ops = &php_stream_udp_socket_ops; ops 873 main/streams/xp_socket.c ops = &php_stream_unix_socket_ops; ops 875 main/streams/xp_socket.c ops = &php_stream_unixdg_socket_ops; ops 894 main/streams/xp_socket.c stream = php_stream_alloc_rel(ops, sock, persistent_id, "r+"); ops 93 sapi/phpdbg/phpdbg.c pg->ops = NULL; ops 178 sapi/phpdbg/phpdbg.c if (brake->ops) { ops 179 sapi/phpdbg/phpdbg.c destroy_op_array(brake->ops); ops 180 sapi/phpdbg/phpdbg.c efree(brake->ops); ops 247 sapi/phpdbg/phpdbg.c if (PHPDBG_G(ops)) { ops 248 sapi/phpdbg/phpdbg.c destroy_op_array(PHPDBG_G(ops)); ops 249 sapi/phpdbg/phpdbg.c efree(PHPDBG_G(ops)); ops 250 sapi/phpdbg/phpdbg.c PHPDBG_G(ops) = NULL; ops 1825 sapi/phpdbg/phpdbg.c if (PHPDBG_G(ops)) { ops 262 sapi/phpdbg/phpdbg.h zend_op_array *ops; /* op_array */ ops 555 sapi/phpdbg/phpdbg_bp.c if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->class_len)) { ops 556 sapi/phpdbg/phpdbg_bp.c if (phpdbg_resolve_op_array_break(new_break, PHPDBG_G(ops)) == SUCCESS) { ops 833 sapi/phpdbg/phpdbg_bp.c new_break.ops = zend_compile_string(&pv, "Conditional Breakpoint Code"); ops 837 sapi/phpdbg/phpdbg_bp.c if (new_break.ops) { ops 840 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "id=\"%d\" expression=\"%s\" ptr=\"%p\"", "Conditional breakpoint #%d added %s/%p", brake->id, brake->code, brake->ops); ops 916 sapi/phpdbg/phpdbg_bp.c zend_op_array *ops; ops 922 sapi/phpdbg/phpdbg_bp.c ops = (zend_op_array *) fbc; ops 924 sapi/phpdbg/phpdbg_bp.c if (ops->scope) { ops 926 sapi/phpdbg/phpdbg_bp.c return phpdbg_find_breakpoint_method(ops); ops 929 sapi/phpdbg/phpdbg_bp.c if (ops->function_name) { ops 931 sapi/phpdbg/phpdbg_bp.c zend_string *fname = zend_string_tolower(ops->function_name); ops 942 sapi/phpdbg/phpdbg_bp.c static inline phpdbg_breakbase_t *phpdbg_find_breakpoint_method(zend_op_array *ops) /* {{{ */ ops 946 sapi/phpdbg/phpdbg_bp.c zend_string *class_lcname = zend_string_tolower(ops->scope->name); ops 949 sapi/phpdbg/phpdbg_bp.c zend_string *lcname = zend_string_tolower(ops->function_name); ops 998 sapi/phpdbg/phpdbg_bp.c zend_op_array *ops = (zend_op_array*)function; ops 999 sapi/phpdbg/phpdbg_bp.c str = ops->function_name ? ZSTR_VAL(ops->function_name) : "main"; ops 1000 sapi/phpdbg/phpdbg_bp.c len = ops->function_name ? ZSTR_LEN(ops->function_name) : strlen(str); ops 1003 sapi/phpdbg/phpdbg_bp.c return param->type == STR_PARAM || execute_data->opline - ops->opcodes == param->num; ops 1027 sapi/phpdbg/phpdbg_bp.c zend_op_array *ops = (zend_op_array*) function; ops 1029 sapi/phpdbg/phpdbg_bp.c if (ops->scope) { ops 1030 sapi/phpdbg/phpdbg_bp.c size_t lengths[2] = { strlen(param->method.class), ZSTR_LEN(ops->scope->name) }; ops 1031 sapi/phpdbg/phpdbg_bp.c if (lengths[0] == lengths[1] && memcmp(param->method.class, ops->scope->name, lengths[0]) == SUCCESS) { ops 1033 sapi/phpdbg/phpdbg_bp.c lengths[1] = ZSTR_LEN(ops->function_name); ops 1035 sapi/phpdbg/phpdbg_bp.c if (lengths[0] == lengths[1] && memcmp(param->method.name, ops->function_name, lengths[0]) == SUCCESS) { ops 1036 sapi/phpdbg/phpdbg_bp.c return param->type == METHOD_PARAM || (execute_data->opline - ops->opcodes) == param->num; ops 1081 sapi/phpdbg/phpdbg_bp.c zend_execute(bp->ops, &retval); ops 117 sapi/phpdbg/phpdbg_bp.h zend_op_array *ops; ops 211 sapi/phpdbg/phpdbg_info.c zend_op_array *ops = &EG(current_execute_data)->func->op_array; ops 213 sapi/phpdbg/phpdbg_info.c if (ops->function_name) { ops 214 sapi/phpdbg/phpdbg_info.c if (ops->scope) { ops 215 sapi/phpdbg/phpdbg_info.c phpdbg_notice("variableinfo", "method=\"%s::%s\" num=\"%d\"", "Variables in %s::%s() (%d)", ops->scope->name->val, ops->function_name->val, zend_hash_num_elements(&vars)); ops 217 sapi/phpdbg/phpdbg_info.c phpdbg_notice("variableinfo", "function=\"%s\" num=\"%d\"", "Variables in %s() (%d)", ZSTR_VAL(ops->function_name), zend_hash_num_elements(&vars)); ops 220 sapi/phpdbg/phpdbg_info.c if (ops->filename) { ops 221 sapi/phpdbg/phpdbg_info.c phpdbg_notice("variableinfo", "file=\"%s\" num=\"%d\"", "Variables in %s (%d)", ZSTR_VAL(ops->filename), zend_hash_num_elements(&vars)); ops 223 sapi/phpdbg/phpdbg_info.c phpdbg_notice("variableinfo", "opline=\"%p\" num=\"%d\"", "Variables @ %p (%d)", ops, zend_hash_num_elements(&vars)); ops 310 sapi/phpdbg/phpdbg_info.c if (in_executor || PHPDBG_G(ops)) { ops 311 sapi/phpdbg/phpdbg_info.c zend_op_array *ops = in_executor ? &EG(current_execute_data)->func->op_array : PHPDBG_G(ops); ops 312 sapi/phpdbg/phpdbg_info.c int literal = 0, count = ops->last_literal - 1; ops 314 sapi/phpdbg/phpdbg_info.c if (ops->function_name) { ops 315 sapi/phpdbg/phpdbg_info.c if (ops->scope) { ops 316 sapi/phpdbg/phpdbg_info.c phpdbg_notice("literalinfo", "method=\"%s::%s\" num=\"%d\"", "Literal Constants in %s::%s() (%d)", ops->scope->name->val, ops->function_name->val, count); ops 318 sapi/phpdbg/phpdbg_info.c phpdbg_notice("literalinfo", "function=\"%s\" num=\"%d\"", "Literal Constants in %s() (%d)", ops->function_name->val, count); ops 321 sapi/phpdbg/phpdbg_info.c if (ops->filename) { ops 322 sapi/phpdbg/phpdbg_info.c phpdbg_notice("literalinfo", "file=\"%s\" num=\"%d\"", "Literal Constants in %s (%d)", ZSTR_VAL(ops->filename), count); ops 324 sapi/phpdbg/phpdbg_info.c phpdbg_notice("literalinfo", "opline=\"%p\" num=\"%d\"", "Literal Constants @ %p (%d)", ops, count); ops 328 sapi/phpdbg/phpdbg_info.c while (literal < ops->last_literal) { ops 329 sapi/phpdbg/phpdbg_info.c if (Z_TYPE(ops->literals[literal]) != IS_NULL) { ops 331 sapi/phpdbg/phpdbg_info.c zend_print_zval(&ops->literals[literal], 0); ops 182 sapi/phpdbg/phpdbg_list.c const zend_op_array *ops; ops 189 sapi/phpdbg/phpdbg_list.c ops = (zend_op_array *) fbc; ops 191 sapi/phpdbg/phpdbg_list.c phpdbg_list_file(ops->filename, ops->line_end - ops->line_start + 1, ops->line_start, 0); ops 39 sapi/phpdbg/phpdbg_opcode.c static inline char *phpdbg_decode_op(zend_op_array *ops, znode_op *op, uint32_t type) /* {{{ */ ops 45 sapi/phpdbg/phpdbg_opcode.c zend_string *var = ops->vars[EX_VAR_TO_NUM(op->var)]; ops 52 sapi/phpdbg/phpdbg_opcode.c spprintf(&decode, 0, "@%u", EX_VAR_TO_NUM(op->var) - ops->last_var); ops 55 sapi/phpdbg/phpdbg_opcode.c spprintf(&decode, 0, "~%u", EX_VAR_TO_NUM(op->var) - ops->last_var); ops 58 sapi/phpdbg/phpdbg_opcode.c zval *literal = RT_CONSTANT(ops, *op); ops 65 sapi/phpdbg/phpdbg_opcode.c char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op) /*{{{ */ ops 89 sapi/phpdbg/phpdbg_opcode.c spprintf(&decode[1], 0, "J%td", OP_JMP_ADDR(op, op->op1) - ops->opcodes); ops 100 sapi/phpdbg/phpdbg_opcode.c decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type); ops 108 sapi/phpdbg/phpdbg_opcode.c OP_JMP_ADDR(op, op->op2) - ops->opcodes, ops 109 sapi/phpdbg/phpdbg_opcode.c ZEND_OFFSET_TO_OPLINE(op, op->extended_value) - ops->opcodes); ops 118 sapi/phpdbg/phpdbg_opcode.c spprintf(&decode[2], 0, "J%td", OP_JMP_ADDR(op, op->op2) - ops->opcodes); ops 139 sapi/phpdbg/phpdbg_opcode.c decode[2] = phpdbg_decode_op(ops, &op->op2, op->op2_type); ops 149 sapi/phpdbg/phpdbg_opcode.c decode[3] = phpdbg_decode_op(ops, &op->result, op->result_type); ops 26 sapi/phpdbg/phpdbg_opcode.h char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op); ops 108 sapi/phpdbg/phpdbg_print.c if (!PHPDBG_G(ops) && !(PHPDBG_G(flags) & PHPDBG_IN_SIGNAL_HANDLER)) { ops 112 sapi/phpdbg/phpdbg_print.c if (PHPDBG_G(ops)) { ops 113 sapi/phpdbg/phpdbg_print.c phpdbg_notice("printinfo", "file=\"%s\" num=\"%d\"", "Context %s (%d ops)", PHPDBG_G(exec), PHPDBG_G(ops)->last); ops 115 sapi/phpdbg/phpdbg_print.c phpdbg_print_function_helper((zend_function*) PHPDBG_G(ops)); ops 127 sapi/phpdbg/phpdbg_print.c zend_op_array *ops = &phpdbg_user_execute_data(EG(current_execute_data))->func->op_array; ops 128 sapi/phpdbg/phpdbg_print.c if (ops->function_name) { ops 129 sapi/phpdbg/phpdbg_print.c if (ops->scope) { ops 130 sapi/phpdbg/phpdbg_print.c phpdbg_notice("printinfo", "method=\"%s::%s\" num=\"%d\"", "Stack in %s::%s() (%d ops)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(ops->function_name), ops->last); ops 132 sapi/phpdbg/phpdbg_print.c phpdbg_notice("printinfo", "function=\"%s\" num=\"%d\"", "Stack in %s() (%d ops)", ZSTR_VAL(ops->function_name), ops->last); ops 135 sapi/phpdbg/phpdbg_print.c if (ops->filename) { ops 136 sapi/phpdbg/phpdbg_print.c phpdbg_notice("printinfo", "file=\"%s\" num=\"%d\"", "Stack in %s (%d ops)", ZSTR_VAL(ops->filename), ops->last); ops 138 sapi/phpdbg/phpdbg_print.c phpdbg_notice("printinfo", "opline=\"%p\" num=\"%d\"", "Stack @ %p (%d ops)", ops, ops->last); ops 141 sapi/phpdbg/phpdbg_print.c phpdbg_print_function_helper((zend_function*) ops); ops 262 sapi/phpdbg/phpdbg_print.c phpdbg_print_function_helper((zend_function *) PHPDBG_G(ops)); ops 391 sapi/phpdbg/phpdbg_prompt.c if (PHPDBG_G(ops)) { ops 392 sapi/phpdbg/phpdbg_prompt.c destroy_op_array(PHPDBG_G(ops)); ops 393 sapi/phpdbg/phpdbg_prompt.c efree(PHPDBG_G(ops)); ops 394 sapi/phpdbg/phpdbg_prompt.c PHPDBG_G(ops) = NULL; ops 425 sapi/phpdbg/phpdbg_prompt.c if (PHPDBG_G(ops)) { ops 487 sapi/phpdbg/phpdbg_prompt.c PHPDBG_G(ops) = zend_compile_file(&fh, ZEND_INCLUDE); ops 672 sapi/phpdbg/phpdbg_prompt.c if (PHPDBG_G(ops) || PHPDBG_G(exec)) { ops 684 sapi/phpdbg/phpdbg_prompt.c if (!PHPDBG_G(ops)) { ops 735 sapi/phpdbg/phpdbg_prompt.c zend_execute(PHPDBG_G(ops), &PHPDBG_G(retval)); ops 918 sapi/phpdbg/phpdbg_prompt.c phpdbg_writeln("info", "compiled=\"%s\"", "Compiled %s", PHPDBG_G(ops) ? "yes" : "no"); ops 923 sapi/phpdbg/phpdbg_prompt.c if (PHPDBG_G(ops)) { ops 924 sapi/phpdbg/phpdbg_prompt.c phpdbg_writeln("info", "ops=\"%d\"", "Opcodes %d", PHPDBG_G(ops)->last); ops 925 sapi/phpdbg/phpdbg_prompt.c phpdbg_writeln("info", "vars=\"%d\"", "Variables %d", PHPDBG_G(ops)->last_var ? PHPDBG_G(ops)->last_var - 1 : 0);