Home
last modified time | relevance | path

Searched refs:wrapper (Results 1 – 25 of 137) sorted by relevance

123456

/php-src/main/streams/
H A Duserspace.c39 php_stream_wrapper wrapper; member
316 if(uwrap->wrapper.is_url == 0 && in user_wrapper_opener()
323 us->wrapper = uwrap; in user_wrapper_opener()
325 GC_ADDREF(us->wrapper->resource); in user_wrapper_opener()
363 ZSTR_VAL(us->wrapper->ce->name)); in user_wrapper_opener()
412 us->wrapper = uwrap; in user_wrapper_opendir()
414 GC_ADDREF(us->wrapper->resource); in user_wrapper_opendir()
439 ZSTR_VAL(us->wrapper->ce->name)); in user_wrapper_opendir()
478 uwrap->wrapper.abstract = uwrap; in PHP_FUNCTION()
517 ZEND_ASSERT(wrapper != NULL); in PHP_FUNCTION()
[all …]
H A Dstreams.c165 if (wrapper) { in php_stream_display_wrapper_errors()
503 if (stream->wrapper && stream->wrapper->wops && stream->wrapper->wops->stream_closer) { in _php_stream_free()
2069 if (wrapper && wrapper->is_url &&
2095 if (!wrapper || !wrapper->wops || !wrapper->wops->stream_mkdir) {
2109 if (!wrapper || !wrapper->wops || !wrapper->wops->stream_rmdir) {
2126 if (wrapper && wrapper->wops->url_stat) {
2149 if (wrapper && wrapper->wops->dir_opener) {
2150 stream = wrapper->wops->dir_opener(wrapper,
2155 stream->wrapper = wrapper;
2242 stream = wrapper->wops->stream_opener(wrapper,
[all …]
/php-src/ext/phar/
H A Ddirstream.c258 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir()
259 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
277 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir()
285 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_dir()
374 if ((resource = phar_parse_url(wrapper, url_from, "w", options)) == NULL) { in phar_wrapper_mkdir()
381 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url_from); in phar_wrapper_mkdir()
503 if ((resource = phar_parse_url(wrapper, url, "w", options)) == NULL) { in phar_wrapper_rmdir()
510 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url); in phar_wrapper_rmdir()
516 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar stream url \"%s\"", url); in phar_wrapper_rmdir()
548 php_stream_wrapper_log_error(wrapper, options, "phar error: Directory not empty"); in phar_wrapper_rmdir()
[all …]
H A Dstream.h23 php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int op…
26 static php_stream* phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char …
27 static int phar_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_t…
28 static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_strea…
29 static int phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_st…
H A Ddirstream.h21 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url_from, int mode, int options, ph…
22 int phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_contex…
27 php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int op…
36 php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, …
H A Dstream.c123 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
134 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
146 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
172 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_url()
196 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
297 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
320 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
477 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS, "%s", error); in phar_stream_flush()
673 if ((resource = phar_parse_url(wrapper, url, "rb", options)) == NULL) { in phar_wrapper_unlink()
674 php_stream_wrapper_log_error(wrapper, options, "phar error: unlink failed"); in phar_wrapper_unlink()
[all …]
/php-src/Zend/tests/
H A Dbug41421.phpt2 Bug #41421 (Uncaught exception from a stream wrapper segfaults)
6 class wrapper {
16 stream_wrapper_register("wrap", "wrapper");
23 Warning: feof(): wrapper::stream_eof is not implemented! Assuming EOF in %s on line %d
27 #0 [internal function]: wrapper->stream_eof()
H A Dgh8548_2.phpt23 throw new \Exception('Could not register stream wrapper');
29 throw new \Exception('Could not unregister stream wrapper');
32 $wrapper = stream_get_meta_data($dir)['wrapper_data'];
33 if (!$wrapper instanceof Wrapper) {
H A Dgh8548.phpt23 throw new \Exception('Could not register stream wrapper');
29 throw new \Exception('Could not unregister stream wrapper');
32 $wrapper = stream_get_meta_data($file)['wrapper_data'];
33 if (!$wrapper instanceof Wrapper) {
H A Dgh10072.phpt87 private $wrapper;
90 if (!$this->wrapper) {
91 $this->wrapper = new DummyStreamWrapper();
94 return $this->wrapper->$name(...$arguments);
H A Dgh11735_1.phpt2 GH-11735: Use-after-free when unregistering user stream wrapper from user stream wrapper
/php-src/ext/pcre/tests/
H A Dgh15205_2.phpt10 class wrapper
28 stream_wrapper_register('wrapper', 'wrapper');
29 $handle = fopen('wrapper://', 'rb');
/php-src/ext/standard/
H A Dfilestat.c328 php_stream_wrapper *wrapper; in php_do_chgrp() local
337 if(wrapper && wrapper->wops->stream_metadata) { in php_do_chgrp()
348 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chgrp()
466 php_stream_wrapper *wrapper; in php_do_chown() local
475 if(wrapper && wrapper->wops->stream_metadata) { in php_do_chown()
486 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chown()
561 php_stream_wrapper *wrapper; in PHP_FUNCTION() local
570 if(wrapper && wrapper->wops->stream_metadata) { in PHP_FUNCTION()
637 if(wrapper && wrapper->wops->stream_metadata) { in PHP_FUNCTION()
811 if (!wrapper) { in php_stat()
[all …]
H A Dftp_fopen_wrapper.c97 static int php_stream_ftp_stream_close(php_stream_wrapper *wrapper, php_stream *stream) in php_stream_ftp_stream_close() argument
182 php_stream_wrapper_log_error(wrapper, options, "Server doesn't support FTPS."); in php_ftp_fopen_connect()
201 php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode"); in php_ftp_fopen_connect()
232 php_stream_wrapper_log_error(wrapper, options, err_msg, val); \ in php_ftp_fopen_connect()
440 php_stream_wrapper_log_error(wrapper, options, "Unknown file open mode"); in php_stream_url_wrap_ftp()
448 return php_stream_url_wrap_http(wrapper, path, mode, options, opened_path, context STREAMS_CC); in php_stream_url_wrap_ftp()
451 php_stream_wrapper_log_error(wrapper, options, "FTP proxy may only be used in read mode"); in php_stream_url_wrap_ftp()
572 php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode"); in php_stream_url_wrap_ftp()
594 php_stream_wrapper_log_error(wrapper, options, "FTP server reports %s", tmp_line); in php_stream_url_wrap_ftp()
742 php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode"); in php_stream_ftp_opendir()
[all …]
H A Dphp_fopen_wrappers.h22 php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mod…
23 php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode…
/php-src/Zend/tests/function_arguments/
H A Dsensitive_parameter_nested_calls.phpt17 function wrapper(
26 wrapper('foo', 'bar', 'baz');
31 #1 %ssensitive_parameter_nested_calls.php(23): wrapper('foo', Object(SensitiveParameterValue), Obje…
60 string(7) "wrapper"
102 string(7) "wrapper"
H A Dsensitive_parameter_value_keeps_object_alive.phpt31 function wrapper(int $id, bool $throw)
41 wrapper(1, false);
44 wrapper(2, true);
/php-src/ext/zlib/tests/
H A Dzlib_wrapper_meta_data_basic.phpt7 echo "no wrapper\n";
12 echo "\nwith wrapper\n";
21 no wrapper
39 with wrapper
/php-src/ext/random/tests/03_randomizer/methods/
H A DgetBytesFromString_fast_path.phpt27 $wrapper = new TestWrapperEngine($xoshiro);
28 $r = new Randomizer($wrapper);
34 var_dump($wrapper->getCount());
58 $wrapper = new TestWrapperEngine($xoshiro);
59 $r = new Randomizer($wrapper);
78 $wrapper = new TestWrapperEngine($xoshiro);
79 $r = new Randomizer($wrapper);
83 var_dump($wrapper->getCount());
/php-src/ext/dom/tests/modern/html/parser/
H A DHTMLDocument_fromFile_with_working_stream_wrapper.phpt2 Dom\HTMLDocument::createFromFile() with working stream wrapper
35 echo "--- Stream wrapper case ---\n";
40 echo "--- Stream wrapper in two chunks case ---\n";
53 --- Stream wrapper case ---
57 --- Stream wrapper in two chunks case ---
/php-src/ext/bz2/
H A Dphp_bz2.h49 PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const ch…
53 #define php_stream_bz2open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper)… argument
/php-src/ext/standard/tests/file/
H A Dstream_001.phpt16 Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configur…
18 Warning: fopen(): file:// wrapper is disabled in the server configuration in %s on line %d
20 Warning: fopen(file://%s): Failed to open stream: no suitable wrapper could be found in %s on line …
H A Dinclude_userstream_003.phpt101 Warning: file_get_contents(): test1:// wrapper is disabled in the server configuration by allow_url…
103 Warning: file_get_contents(test1://hello): Failed to open stream: no suitable wrapper could be foun…
106 Warning: include(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 i…
108 Warning: include(test1://hello): Failed to open stream: no suitable wrapper could be found in %s on…
112 Warning: fopen(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 in …
114 Warning: fopen(test1://hello): Failed to open stream: no suitable wrapper could be found in %s on l…
119 Warning: fopen(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 in …
121 Warning: fopen(test1://hello): Failed to open stream: no suitable wrapper could be found in %s on l…
/php-src/ext/standard/tests/streams/
H A Dglob-wrapper.phpt2 Glob wrapper bypasses open_basedir
28 …ct. File(%s) is not within the allowed path(s): (/does_not_exist) in %s%eglob-wrapper.php on line 5
30 Warning: opendir(%s): Failed to open directory: Operation not permitted in %s%eglob-wrapper.php on …
/php-src/Zend/tests/generators/
H A Dbug78434.phpt10 $wrapper = function () use ($function) {
20 foreach ($wrapper() as $value) {

Completed in 94 milliseconds

123456