/PHP-7.1/ext/standard/tests/streams/ |
H A D | stream_context_set_option_basic.phpt | 8 $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 D | bug71245.phpt | 2 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 D | stream_context_set_option_error_001.phpt | 8 $context = stream_context_create(); 11 var_dump(stream_context_set_option($context, 'http')); 14 var_dump(stream_context_set_option($context, array(), 'foo', 'bar'));
|
/PHP-7.1/ext/hash/ |
H A D | php_hash_joaat.h | 28 PHP_HASH_API void PHP_JOAATInit(PHP_JOAAT_CTX *context); 29 PHP_HASH_API void PHP_JOAATUpdate(PHP_JOAAT_CTX *context, const unsigned char *input, unsigned int … 30 PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[16], PHP_JOAAT_CTX * context);
|
H A D | php_hash_adler32.h | 30 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context); 31 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t le… 32 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context);
|
H A D | php_hash_md.h | 85 PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX *context, const unsigned char *, unsigned int); 96 PHP_HASH_API void PHP_MD2Init(PHP_MD2_CTX *context); 97 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *, unsigned int);
|
H A D | README | 14 $context = hash_init($algoname); 15 hash_update($context, $message); 16 $digest = hash_final($context);
|
/PHP-7.1/ext/standard/tests/file/ |
H A D | readfile_variation1.phpt | 5 /* 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 D | unlink_basic.phpt | 5 /* 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 D | readfile_variation3.phpt | 5 /* 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 D | unlink_variation6.phpt | 7 /* Prototype : bool unlink(string filename[, context context]) 21 $context = stream_context_create(); 22 var_dump(unlink($testfile, $context));
|
H A D | mkdir_rmdir_error.phpt | 5 /* 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
|
/PHP-7.1/ext/phar/ |
H A D | stream.h | 27 … const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); 28 …pper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context); 29 …per_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context); 30 …rapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context);
|
H A D | dirstream.h | 23 …stream_wrapper *wrapper, const char *url_from, int mode, int options, php_stream_context *context); 24 …pper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context); 36 … const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
|
/PHP-7.1/main/ |
H A D | php_streams.h | 82 …x_rel(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path), (mode), (options),… argument 137 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); 146 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); 348 …ne php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (ssb)… argument 350 PHPAPI int _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context); 351 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument 353 PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context); 354 #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) argument 357 #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context)… argument 368 …e php_stream_scandir(dirname, namelist, context, compare) _php_stream_scandir((dirname), (namelist… argument [all …]
|
/PHP-7.1/ext/standard/tests/network/ |
H A D | bug74764.phpt | 11 $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.1/ext/standard/ |
H A D | ftp_fopen_wrapper.c | 167 php_stream_context_set(stream, context); in php_ftp_fopen_connect() 168 php_stream_notify_info(context, PHP_STREAM_NOTIFY_CONNECT, NULL, 0); in php_ftp_fopen_connect() 173 php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, tmp_line, result); in php_ftp_fopen_connect() 457 if (context && in php_stream_url_wrap_ftp() 499 php_stream_notify_file_size(context, file_size, tmp_line, result); in php_stream_url_wrap_ftp() 503 if (context && (tmpzval = php_stream_context_get_option(context, "ftp", "overwrite")) != NULL) { in php_stream_url_wrap_ftp() 533 if (context && in php_stream_url_wrap_ftp() 578 php_stream_context_set(datastream, context); in php_stream_url_wrap_ftp() 579 php_stream_notify_progress_init(context, 0, file_size); in php_stream_url_wrap_ftp() 697 zend_string **opened_path, php_stream_context *context STREAMS_DC) in php_stream_ftp_opendir() [all …]
|
/PHP-7.1/ext/phar/tests/ |
H A D | readfile_edgecasesU.phpt | 22 $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);
|
H A D | readfile_edgecases.phpt | 23 $context = stream_context_create(); 27 readfile("./hi", 0, $context); 43 $context = stream_context_create(); 47 readfile("./hi", 0, $context); 54 $context = stream_context_create(); 58 readfile("./hi", 0, $context);
|
/PHP-7.1/ext/libxml/ |
H A D | libxml.c | 101 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() 419 ret->context = context; in php_libxml_input_buffer_create_filename() 435 void *context = NULL; in php_libxml_output_buffer_create_filename() local 454 if (context == NULL) { in php_libxml_output_buffer_create_filename() 458 if (context == NULL) { in php_libxml_output_buffer_create_filename() 465 ret->context = context; in php_libxml_output_buffer_create_filename() 609 (char *)context->memb); \ in _php_libxml_external_entity_loader() 658 pib->context = stream; in _php_libxml_external_entity_loader() [all …]
|
/PHP-7.1/ext/standard/tests/url/ |
H A D | get_headers_error_003.phpt | 2 Test get_headers() function : test with context 15 $context = stream_context_create($opts); 16 $headers = get_headers("http://".PHP_CLI_SERVER_ADDRESS, 1, $context);
|
/PHP-7.1/ext/standard/tests/class_object/ |
H A D | get_class_vars_variation2.phpt | 51 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.1/ext/libxml/tests/ |
H A D | bug54440.phpt | 2 Bug #54440: libxml extension ignores default context 12 if ($this->context) 13 print_r(stream_context_get_options($this->context));
|
/PHP-7.1/ext/openssl/tests/ |
H A D | bug72333.phpt | 11 $context = stream_context_create(['ssl' => ['local_cert' => __DIR__ . '/bug54992.pem']]); 14 $fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context); 36 …$context = stream_context_create(['ssl' => ['verify_peer' => false, 'peer_name' => 'bug54992.local… 39 …ocket_client("ssl://127.0.0.1:10011", $errornum, $errorstr, 3000, STREAM_CLIENT_CONNECT, $context);
|
/PHP-7.1/ext/standard/tests/http/ |
H A D | bug60570.phpt | 2 Bug #60570 (Stream context leaks when http request fails) 26 $context = stream_context_create(array('http'=>array('timeout'=>1))); 27 file_get_contents('http://127.0.0.1:12342/', 0, $context); 28 unset($context);
|