/php-src/ext/standard/ |
H A D | filters.c | 1902 const php_stream_filter_ops *ops; member 1920 for (i = 0; standard_filters[i].ops; i++) { in PHP_MINIT_FUNCTION() 1922 standard_filters[i].ops->label, in PHP_MINIT_FUNCTION() 1935 for (i = 0; standard_filters[i].ops; i++) { in PHP_MSHUTDOWN_FUNCTION() 1936 php_stream_filter_unregister_factory(standard_filters[i].ops->label); in PHP_MSHUTDOWN_FUNCTION()
|
H A D | php_fopen_wrapper.c | 400 stream->ops = &php_stream_socket_ops; in php_stream_url_wrap_php()
|
H A D | streamsfuncs.c | 558 add_assoc_string(return_value, "stream_type", (char *)stream->ops->label); in PHP_FUNCTION() 579 …add_assoc_bool(return_value, "seekable", (stream->ops->seek) && (stream->flags & PHP_STREAM_FLAG_N… in PHP_FUNCTION()
|
/php-src/main/ |
H A D | php_streams.h | 60 #define php_stream_alloc_rel(ops, thisptr, persistent, mode) _php_stream_alloc((ops), (thisptr), (p… argument 201 const php_stream_ops *ops; member 264 PHPAPI php_stream *_php_stream_alloc(const php_stream_ops *ops, void *abstract, 267 #define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (pe… argument 530 #define php_stream_is(stream, anops) ((stream)->ops == anops)
|
/php-src/main/streams/ |
H A D | cast.c | 195 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_cast() 198 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy); in _php_stream_cast() 216 stream->ops->cast && in _php_stream_cast() 218 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast() 259 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast() 260 if (FAILURE == stream->ops->cast(stream, castas, ret)) { in _php_stream_cast() 298 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { in _php_stream_cast() 311 …php_error_docref(NULL, E_WARNING, "Cannot represent a stream of type %s as a %s", stream->ops->lab… in _php_stream_cast() 373 if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) { in _php_stream_make_seekable()
|
H A D | filter.c | 471 ssize_t count = stream->ops->write(stream, bucket->buf, bucket->buflen); in _php_stream_filter_flush()
|
H A D | memory.c | 732 stream->ops = &php_stream_rfc2397_ops; in php_stream_url_wrap_rfc2397()
|
H A D | streams.c | 293 ret->ops = ops; in _php_stream_alloc() 478 ret = stream->ops->close(stream, preserve_handle ? 0 : 1); in _php_stream_free() 737 toread = stream->ops->read(stream, buf, size); in _php_stream_read() 776 (stream->ops != &php_stream_memory_ops) && in _php_stream_read() 777 (stream->ops != &php_stream_temp_ops)) { in _php_stream_read() 872 if (stream->ops->stat == NULL) { in _php_stream_stat() 876 return (stream->ops->stat)(stream, ssb); in _php_stream_stat() 1281 if (stream->ops->flush) { in _php_stream_flush() 1282 ret = stream->ops->flush(stream); in _php_stream_flush() 1297 if (stream->ops->write == NULL) { in _php_stream_write() [all …]
|
H A D | xp_socket.c | 666 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_bind() 674 stream->ops == &php_stream_unix_socket_ops ? "" : "datagram", in php_tcp_sockop_bind() 747 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_connect() 802 && stream->ops != &php_stream_unix_socket_ops in php_tcp_sockop_connect() 803 && stream->ops != &php_stream_unixdg_socket_ops in php_tcp_sockop_connect() 935 const php_stream_ops *ops; in php_stream_generic_socket_factory() local 939 ops = &php_stream_socket_ops; in php_stream_generic_socket_factory() 941 ops = &php_stream_udp_socket_ops; in php_stream_generic_socket_factory() 945 ops = &php_stream_unix_socket_ops; in php_stream_generic_socket_factory() 947 ops = &php_stream_unixdg_socket_ops; in php_stream_generic_socket_factory() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg.c | 84 if (brake->ops) { in php_phpdbg_destroy_bp_condition() 85 destroy_op_array(brake->ops); in php_phpdbg_destroy_bp_condition() 86 efree(brake->ops); in php_phpdbg_destroy_bp_condition() 121 pg->ops = NULL; in php_phpdbg_globals_ctor() 803 if (PHPDBG_G(ops)) { in php_sapi_phpdbg_deactivate() 804 destroy_op_array(PHPDBG_G(ops)); in php_sapi_phpdbg_deactivate() 805 efree(PHPDBG_G(ops)); in php_sapi_phpdbg_deactivate() 806 PHPDBG_G(ops) = NULL; in php_sapi_phpdbg_deactivate() 1572 if (PHPDBG_G(ops)) { in main()
|
H A D | phpdbg.h | 264 zend_op_array *ops; /* op_array */ variable
|
H A D | phpdbg_bp.c | 579 …if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->cl… in phpdbg_resolve_opline_break() 886 if (new_break.ops) { in phpdbg_create_conditional_break() 957 zend_op_array *ops; in phpdbg_find_breakpoint_symbol() local 963 ops = (zend_op_array *) fbc; in phpdbg_find_breakpoint_symbol() 965 if (ops->scope) { in phpdbg_find_breakpoint_symbol() 967 return phpdbg_find_breakpoint_method(ops); in phpdbg_find_breakpoint_symbol() 970 if (ops->function_name) { in phpdbg_find_breakpoint_symbol() 1040 str = ops->function_name ? ZSTR_VAL(ops->function_name) : "main"; in phpdbg_find_breakpoint_param() 1041 len = ops->function_name ? ZSTR_LEN(ops->function_name) : strlen(str); in phpdbg_find_breakpoint_param() 1070 if (ops->scope) { in phpdbg_find_breakpoint_param() [all …]
|
H A D | phpdbg_bp.h | 115 zend_op_array *ops; member
|
H A D | phpdbg_info.c | 213 if (ops->function_name) { in phpdbg_print_symbols() 214 if (ops->scope) { in phpdbg_print_symbols() 215 …phpdbg_notice("Variables in %s::%s() (%d)", ops->scope->name->val, ops->function_name->val, zend_h… in phpdbg_print_symbols() 220 if (ops->filename) { in phpdbg_print_symbols() 308 if (in_executor || PHPDBG_G(ops)) { in PHPDBG_INFO() 309 zend_op_array *ops = in_executor ? &EG(current_execute_data)->func->op_array : PHPDBG_G(ops); in PHPDBG_INFO() local 312 if (ops->function_name) { in PHPDBG_INFO() 313 if (ops->scope) { in PHPDBG_INFO() 314 …phpdbg_notice("Literal Constants in %s::%s() (%d)", ops->scope->name->val, ops->function_name->val… in PHPDBG_INFO() 319 if (ops->filename) { in PHPDBG_INFO() [all …]
|
H A D | phpdbg_list.c | 174 const zend_op_array *ops; in phpdbg_list_function() local 181 ops = (zend_op_array *) fbc; in phpdbg_list_function() 183 phpdbg_list_file(ops->filename, ops->line_end - ops->line_start + 1, ops->line_start, 0); in phpdbg_list_function()
|
H A D | phpdbg_print.c | 85 if (PHPDBG_G(ops)) { in PHPDBG_PRINT() 88 phpdbg_print_function_helper((zend_function*) PHPDBG_G(ops)); in PHPDBG_PRINT() 101 if (ops->function_name) { in PHPDBG_PRINT() 102 if (ops->scope) { in PHPDBG_PRINT() 103 …dbg_notice("Stack in %s::%s() (%d ops)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(ops->function_name),… in PHPDBG_PRINT() 105 phpdbg_notice("Stack in %s() (%d ops)", ZSTR_VAL(ops->function_name), ops->last); in PHPDBG_PRINT() 108 if (ops->filename) { in PHPDBG_PRINT() 109 phpdbg_notice("Stack in %s (%d ops)", ZSTR_VAL(ops->filename), ops->last); in PHPDBG_PRINT() 111 phpdbg_notice("Stack @ %p (%d ops)", ops, ops->last); in PHPDBG_PRINT() 114 phpdbg_print_function_helper((zend_function*) ops); in PHPDBG_PRINT() [all …]
|
H A D | phpdbg_prompt.c | 382 if (PHPDBG_G(ops)) { in phpdbg_clean() 383 destroy_op_array(PHPDBG_G(ops)); in phpdbg_clean() 384 efree(PHPDBG_G(ops)); in phpdbg_clean() 385 PHPDBG_G(ops) = NULL; in phpdbg_clean() 422 if (PHPDBG_G(ops)) { in PHPDBG_COMMAND() 568 PHPDBG_G(ops) = zend_compile_file(&fh, ZEND_INCLUDE); in phpdbg_compile() 749 if (PHPDBG_G(ops) || PHPDBG_G(exec)) { in PHPDBG_COMMAND() 761 if (!PHPDBG_G(ops)) { in PHPDBG_COMMAND() 884 zend_execute(PHPDBG_G(ops), &PHPDBG_G(retval)); in PHPDBG_COMMAND() 1111 if (PHPDBG_G(ops)) { in PHPDBG_COMMAND() [all …]
|
/php-src/sapi/phpdbg/tests/ |
H A D | print_001.phpt | 13 prompt> [User Function foo (8 ops)] 42 prompt> [Context %s (9 ops)]
|
H A D | print_002.phpt | 19 prompt> [Stack in foo() (8 ops)]
|