/PHP-7.4/ext/standard/tests/http/ |
H A D | bug60570.phpt | 2 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 D | bug61371-unix.phpt | 21 $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 D | bug64433.phpt | 31 $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 D | bug67198.phpt | 36 $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 D | bug69953.phpt | 13 $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 D | bug80067.phpt | 9 $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 D | php_fopen_wrappers.h | 24 … 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 D | errmsg_004.phpt | 2 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 D | objects_026.phpt | 2 Using $this when out of context 13 Fatal error: Uncaught Error: Using $this when not in object context in %s:%d
|
H A D | errmsg_005.phpt | 2 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 D | bug77877.phpt | 22 Using $this when not in object context 23 Using $this when not in object context
|
H A D | incompat_ctx_user.phpt | 2 Incompatible context call (non-internal function) 21 Exception: Using $this when not in object context
|
/PHP-7.4/ext/pcre/tests/ |
H A D | bug40909.phpt | 8 $context = "<simpletag an_attribute=\"simpleValueInside\">"; 12 if ($result =preg_match_all($pattern, $context, $match))
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | readfile_error.phpt | 5 /* 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 D | unlink_error-win32.phpt | 11 /* 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 D | unlink_error.phpt | 11 /* 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 D | unlink_error-win32-mb.phpt | 11 /* 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 D | bug72333.phpt | 13 $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 D | zend_signal.c | 62 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 D | uchar.c | 199 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 D | phar_oo_compressed_002.phpt | 2 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 D | phar_oo_compressed_002b.phpt | 2 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 D | gdtest.c | 16 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 D | scandir_basic.phpt | 5 /* 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 D | bug38003.phpt | 2 … (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
|