/PHP-7.4/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 | bug61371.phpt | 16 $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 D | php_hash_joaat.h | 26 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 D | php_hash_adler32.h | 28 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 D | php_hash_md.h | 83 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 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
|
H A D | mkdir_rmdir_variation2.phpt | 12 /* 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 D | stream.h | 25 … 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 D | dirstream.h | 21 …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 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.4/ext/phar/tests/ |
H A D | readfile_edgecases.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);
|
/PHP-7.4/main/ |
H A D | php_streams.h | 80 …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 D | ftp_fopen_wrapper.c | 164 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 D | get_headers_error_003.phpt | 2 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 D | libxml.c | 96 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 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.4/Zend/tests/ |
H A D | break_error_003.phpt | 2 '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 D | builtin_in_write_context_error1.phpt | 2 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 D | builtin_in_write_context_error2.phpt | 2 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 D | bug54440.phpt | 2 Bug #54440: libxml extension ignores default context 12 if ($this->context) 13 print_r(stream_context_get_options($this->context));
|