Home
last modified time | relevance | path

Searched refs:context (Results 26 – 50 of 453) sorted by relevance

12345678910>>...19

/PHP-7.4/ext/standard/tests/streams/
H A Dstream_context_set_option_basic.phpt8 $context = stream_context_create();
11 var_dump(stream_context_set_option($context, 'http', 'method', 'POST'));
20 var_dump(stream_context_set_option($context, $options));
22 var_dump(stream_context_get_options($context));
H A Dbug71245.phpt2 Bug #71245 (file_get_contents() ignores "header" context option if it's a reference)
17 $context = stream_context_create($httpContext);
19 print_r(stream_context_get_options($context));
H A Dbug61371.phpt16 $context = stream_context_create(array());
17 …= stream_socket_client('udp://127.0.0.1:80', $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $context);
19 unset($context);
/PHP-7.4/ext/hash/
H A Dphp_hash_joaat.h26 PHP_HASH_API void PHP_JOAATInit(PHP_JOAAT_CTX *context);
27 PHP_HASH_API void PHP_JOAATUpdate(PHP_JOAAT_CTX *context, const unsigned char *input, size_t inputL…
28 PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[16], PHP_JOAAT_CTX * context);
H A Dphp_hash_adler32.h28 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context);
29 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t le…
30 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context);
H A Dphp_hash_md.h83 PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX *context, const unsigned char *, size_t);
94 PHP_HASH_API void PHP_MD2Init(PHP_MD2_CTX *context);
95 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *, size_t);
/PHP-7.4/ext/standard/tests/file/
H A Dreadfile_variation1.phpt5 /* Prototype: int readfile ( string $filename [, bool $use_include_path [, resource $context]] );
9 /* test readfile() with third argument : context */
18 // creating a context
19 $context = stream_context_create();
27 $count = readfile($filename, true, $context);
H A Dunlink_basic.phpt5 /* Prototype : bool unlink ( string $filename [, resource $context] );
22 // creating a context
23 $context = stream_context_create();
30 var_dump( unlink($filename, $context) ); // using $context in second argument
H A Dreadfile_variation3.phpt5 /* Prototype: int readfile ( string $filename [, bool $use_include_path [, resource $context]] );
32 // use the context argument with include path
33 echo "*** Testing readfile(): checking second argument, include path with context specified ***\n";
34 $context = stream_context_create();
35 $count = readfile("readfile_variation3.tmp", true, $context);
55 *** Testing readfile(): checking second argument, include path with context specified ***
H A Dunlink_variation6.phpt7 /* Prototype : bool unlink(string filename[, context context])
21 $context = stream_context_create();
22 var_dump(unlink($testfile, $context));
H A Dmkdir_rmdir_error.phpt5 /* Prototype: bool mkdir ( string $pathname [, int $mode [, bool $recursive [, resource $context]]…
8 Prototype: bool rmdir ( string $dirname [, resource $context] );
15 var_dump( mkdir("testdir", 0777, false, $context, "test") ); // args > expected
20 var_dump( rmdir("testdir", $context, "test") ); // args > expected
36 Notice: Undefined variable: context in %s on line %d
49 Notice: Undefined variable: context in %s on line %d
H A Dmkdir_rmdir_variation2.phpt12 /* Prototype: bool mkdir ( string $pathname [, int $mode [, bool $recursive [, resource $context]]…
16 $context = stream_context_create();
20 echo "\n*** Testing mkdir() and rmdir() by giving stream context as fourth argument ***\n";
21 var_dump( mkdir("$file_path/mkdir_variation2/test/", 0777, true, $context) );
22 var_dump( rmdir("$file_path/mkdir_variation2/test/", $context) );
47 *** Testing mkdir() and rmdir() by giving stream context as fourth argument ***
/PHP-7.4/ext/phar/
H A Dstream.h25 … const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
26 …pper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context);
27 …per_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context);
28 …rapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context);
H A Ddirstream.h21 …stream_wrapper *wrapper, const char *url_from, int mode, int options, php_stream_context *context);
22 …pper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context);
34 … const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
/PHP-7.4/ext/standard/tests/network/
H A Dbug74764.phpt11 $context = stream_context_create(
14 … stream_socket_client('tcp://localhost:1443', $errno, $errstr, 5, STREAM_CLIENT_CONNECT, $context);
16 $context = stream_context_create(
19 … stream_socket_client('tcp://localhost:1443', $errno, $errstr, 5, STREAM_CLIENT_CONNECT, $context);
/PHP-7.4/ext/phar/tests/
H A Dreadfile_edgecases.phpt22 $context = stream_context_create();
26 readfile("./hi", 0, $context);
41 $context = stream_context_create();
45 readfile("./hi", 0, $context);
52 $context = stream_context_create();
56 readfile("./hi", 0, $context);
/PHP-7.4/main/
H A Dphp_streams.h80 …x_rel(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path), (mode), (options),… argument
135 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
144 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
352 …ne php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (ssb)… argument
354 PHPAPI int _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context);
355 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
357 PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context);
358 #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) argument
361 #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context)… argument
372 …e php_stream_scandir(dirname, namelist, context, compare) _php_stream_scandir((dirname), (namelist… argument
[all …]
/PHP-7.4/ext/standard/
H A Dftp_fopen_wrapper.c164 php_stream_context_set(stream, context); in php_ftp_fopen_connect()
165 php_stream_notify_info(context, PHP_STREAM_NOTIFY_CONNECT, NULL, 0); in php_ftp_fopen_connect()
170 php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, tmp_line, result); in php_ftp_fopen_connect()
454 if (context && in php_stream_url_wrap_ftp()
496 php_stream_notify_file_size(context, file_size, tmp_line, result); in php_stream_url_wrap_ftp()
500 if (context && (tmpzval = php_stream_context_get_option(context, "ftp", "overwrite")) != NULL) { in php_stream_url_wrap_ftp()
530 if (context && in php_stream_url_wrap_ftp()
575 php_stream_context_set(datastream, context); in php_stream_url_wrap_ftp()
576 php_stream_notify_progress_init(context, 0, file_size); in php_stream_url_wrap_ftp()
694 zend_string **opened_path, php_stream_context *context STREAMS_DC) in php_stream_ftp_opendir()
[all …]
/PHP-7.4/ext/standard/tests/url/
H A Dget_headers_error_003.phpt2 Test get_headers() function : test with context
17 $context = stream_context_create($opts);
18 $headers = get_headers("http://".PHP_CLI_SERVER_ADDRESS, 1, $context);
/PHP-7.4/ext/libxml/
H A Dlibxml.c96 ZEND_ARG_INFO(0, context)
401 void *context = NULL; in php_libxml_input_buffer_create_filename() local
412 if (context == NULL) { in php_libxml_input_buffer_create_filename()
467 ret->context = context; in php_libxml_input_buffer_create_filename()
483 void *context = NULL; in php_libxml_output_buffer_create_filename() local
507 if (context == NULL) { in php_libxml_output_buffer_create_filename()
511 if (context == NULL) { in php_libxml_output_buffer_create_filename()
518 ret->context = context; in php_libxml_output_buffer_create_filename()
662 (char *)context->memb); \ in _php_libxml_external_entity_loader()
711 pib->context = stream; in _php_libxml_external_entity_loader()
[all …]
/PHP-7.4/ext/standard/tests/class_object/
H A Dget_class_vars_variation2.phpt51 echo "\n-- From global context --\n";
58 echo "\n-- From a static context --\n";
66 echo "\n-- From a parents static context --\n";
74 echo "\n-- From a child's static context --\n";
81 -- From global context --
105 -- From a static context --
133 -- From a parents static context --
157 -- From a child's static context --
/PHP-7.4/Zend/tests/
H A Dbreak_error_003.phpt2 'break' error (not in the loop context)
10 Fatal error: 'break' not in the 'loop' or 'switch' context in %sbreak_error_003.php on line 3
H A Dbuiltin_in_write_context_error1.phpt2 Cannot use built-in functions in write context (assignment)
10 Fatal error: Cannot use result of built-in function in write context in %s on line %d
H A Dbuiltin_in_write_context_error2.phpt2 Cannot use built-in functions in write context (reference)
10 Fatal error: Cannot use result of built-in function in write context in %s on line %d
/PHP-7.4/ext/libxml/tests/
H A Dbug54440.phpt2 Bug #54440: libxml extension ignores default context
12 if ($this->context)
13 print_r(stream_context_get_options($this->context));

Completed in 57 milliseconds

12345678910>>...19