Home
last modified time | relevance | path

Searched refs:context (Results 51 – 75 of 453) sorted by relevance

12345678910>>...19

/PHP-7.4/ext/standard/tests/http/
H A Dbug60570.phpt2 Bug #60570 (Stream context leaks when http request fails)
25 $context = stream_context_create(array('http'=>array('timeout'=>1)));
26 file_get_contents('http://127.0.0.1:12342/', 0, $context);
27 unset($context);
/PHP-7.4/ext/standard/tests/streams/
H A Dbug61371-unix.phpt21 $context = stream_context_create(array());
22 …m = stream_socket_client('udp://0.0.0.0:80', $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $context);
24 unset($context);
H A Dbug64433.phpt31 $context = stream_context_create($arr);
33 …le_get_contents("http://".PHP_CLI_SERVER_ADDRESS."/index.php?status=$code&loc=1", false, $context);
41 $context = stream_context_create($arr);
43 …le_get_contents("http://".PHP_CLI_SERVER_ADDRESS."/index.php?status=$code&loc=1", false, $context);
/PHP-7.4/tests/basic/
H A Dbug67198.phpt36 $context = stream_context_create($opts);
42 var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS, false, $context));
43 var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS, false, $context));
/PHP-7.4/sapi/cli/tests/
H A Dbug69953.phpt13 $context = stream_context_create(['http' => ['method' => 'MKCALENDAR']]);
14 var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS, false, $context));
/PHP-7.4/ext/standard/tests/network/
H A Dbug80067.phpt9 $context = stream_context_create(['socket' => ['bindto' => '0']]);
10 var_dump(file_get_contents('https://httpbin.org/get', false, $context) !== false);
/PHP-7.4/ext/standard/
H A Dphp_fopen_wrappers.h24 … const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
25 … const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
/PHP-7.4/Zend/tests/
H A Derrmsg_004.phpt2 errmsg: can't use function return value in write context
15 Fatal error: Can't use function return value in write context in %s on line %d
H A Dobjects_026.phpt2 Using $this when out of context
13 Fatal error: Uncaught Error: Using $this when not in object context in %s:%d
H A Derrmsg_005.phpt2 errmsg: can't use method return value in write context
18 Fatal error: Can't use method return value in write context in %s on line %d
H A Dbug77877.phpt22 Using $this when not in object context
23 Using $this when not in object context
H A Dincompat_ctx_user.phpt2 Incompatible context call (non-internal function)
21 Exception: Using $this when not in object context
/PHP-7.4/ext/pcre/tests/
H A Dbug40909.phpt8 $context = "<simpletag an_attribute=\"simpleValueInside\">";
12 if ($result =preg_match_all($pattern, $context, $match))
/PHP-7.4/ext/standard/tests/file/
H A Dreadfile_error.phpt5 /* Prototype: int readfile ( string $filename [, bool $use_include_path [, resource $context]] );
9 $context = stream_context_create();
14 var_dump( readfile(__FILE__, true, $context, 4) ); // args > expected
21 var_dump( readfile(__FILE__, false, '') ); // empty string as $context
22 var_dump( readfile(__FILE__, true, false) ); // boolean false as $context
H A Dunlink_error-win32.phpt11 /* Prototype : bool unlink ( string $filename [, resource $context] );
21 // creating a context
22 $context = stream_context_create();
30 var_dump( unlink($filename, $context, true) );
44 var_dump( unlink($filename, '') ); // $context as empty string
45 var_dump( unlink($filename, false) ); // $context as boolean false
H A Dunlink_error.phpt11 /* Prototype : bool unlink ( string $filename [, resource $context] );
21 // creating a context
22 $context = stream_context_create();
30 var_dump( unlink($filename, $context, true) );
44 var_dump( unlink($filename, '') ); // $context as empty string
45 var_dump( unlink($filename, false) ); // $context as boolean false
H A Dunlink_error-win32-mb.phpt11 /* Prototype : bool unlink ( string $filename [, resource $context] );
23 // creating a context
24 $context = stream_context_create();
32 var_dump( unlink($filename, $context, true) );
46 var_dump( unlink($filename, '') ); // $context as empty string
47 var_dump( unlink($filename, false) ); // $context as boolean false
/PHP-7.4/ext/openssl/tests/
H A Dbug72333.phpt13 $context = stream_context_create(['ssl' => ['local_cert' => '%s']]);
16 $fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
40 $context = stream_context_create(['ssl' => ['verify_peer' => false, 'peer_name' => '%s']]);
43 …ocket_client("ssl://127.0.0.1:10011", $errornum, $errorstr, 3000, STREAM_CLIENT_CONNECT, $context);
/PHP-7.4/Zend/
H A Dzend_signal.c62 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context);
82 void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context) in zend_signal_handler_defer() argument
91 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer()
103 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer()
109 …d_signal_handler(queue->zend_signal.signo, queue->zend_signal.siginfo, queue->zend_signal.context); in zend_signal_handler_defer()
125 queue->zend_signal.context = context; in zend_signal_handler_defer()
143 zend_signal_handler(signo, siginfo, context); in zend_signal_handler_defer()
165 zend_signal_handler_defer(zend_signal.signo, zend_signal.siginfo, zend_signal.context); in zend_signal_handler_unblock()
174 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context) in zend_signal_handler() argument
216 (*(void (*)(int, siginfo_t*, void*))p_sig.handler)(signo, siginfo, context); in zend_signal_handler()
/PHP-7.4/ext/intl/uchar/
H A Duchar.c199 context->fci.retval = &retval; in enumCharType_callback()
200 context->fci.param_count = 3; in enumCharType_callback()
201 context->fci.params = args; in enumCharType_callback()
203 if (zend_call_function(&context->fci, &context->fci_cache) == FAILURE) { in enumCharType_callback()
213 enumCharType_data context; in IC_METHOD() local
215 if (zend_parse_parameters(ZEND_NUM_ARGS(), "f", &context.fci, &context.fci_cache) == FAILURE) { in IC_METHOD()
313 context->fci.retval = &retval; in enumCharNames_callback()
314 context->fci.param_count = 3; in enumCharNames_callback()
315 context->fci.params = args; in enumCharNames_callback()
317 if (zend_call_function(&context->fci, &context->fci_cache) == FAILURE) { in enumCharNames_callback()
[all …]
/PHP-7.4/ext/phar/tests/
H A Dphar_oo_compressed_002.phpt2 Phar: context/compress=GZ
31 $context = stream_context_create(array('phar'=>array('compress'=>Phar::GZ)));
34 file_put_contents($pname . '/c', 'new c', 0, $context);
36 file_put_contents($pname . '/e', 'new e', 0, $context);
H A Dphar_oo_compressed_002b.phpt2 Phar: context/compress=BZip2
31 $context = stream_context_create(array('phar'=>array('compress'=>Phar::BZ2)));
34 file_put_contents($pname . '/c', 'new c', 0, $context);
36 file_put_contents($pname . '/e', 'new e', 0, $context);
/PHP-7.4/ext/gd/libgd/
H A Dgdtest.c16 static int freadWrapper (void *context, char *buf, int len);
17 static int fwriteWrapper (void *context, const char *buffer, int len);
164 imgsrc.context = in; in main()
186 imgsnk.context = out; in main()
399 freadWrapper (void *context, char *buf, int len) in freadWrapper() argument
401 int got = fread (buf, 1, len, (FILE *) context); in freadWrapper()
406 fwriteWrapper (void *context, const char *buffer, int len) in fwriteWrapper() argument
408 return fwrite (buffer, 1, len, (FILE *) context); in fwriteWrapper()
/PHP-7.4/ext/standard/tests/dir/
H A Dscandir_basic.phpt5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
29 $context = stream_context_create();
30 var_dump(scandir($directory, $sorting_order, $context));
/PHP-7.4/ext/mysqli/tests/
H A Dbug38003.phpt2 … (in classes inherited from MySQLi it's possible to call private constructors from invalid context)
20 Fatal error: Uncaught Error: Call to private DB::__construct() from invalid context in %s

Completed in 51 milliseconds

12345678910>>...19