Home
last modified time | relevance | path

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

12345

/PHP-7.1/ext/xsl/
H A Dphp_xsl.c187 ((xsltStylesheetPtr) obj)->_private = wrapper; in xsl_object_set_data()
196 object = Z_XSL_P(wrapper); in php_xsl_set_object()
198 xsl_object_set_data(obj, wrapper); in php_xsl_set_object()
205 zval *wrapper; in php_xsl_create_object() local
209 wrapper = wrapper_in; in php_xsl_create_object()
210 ZVAL_NULL(wrapper); in php_xsl_create_object()
215 ZVAL_COPY(wrapper, wrapper_in); in php_xsl_create_object()
220 wrapper = return_value; in php_xsl_create_object()
222 wrapper = wrapper_in; in php_xsl_create_object()
229 object_init_ex(wrapper, ce); in php_xsl_create_object()
[all …]
/PHP-7.1/Zend/tests/
H A Dbug41421.phpt2 Bug #41421 (Uncaught exception from a stream wrapper segfaults)
6 class wrapper {
15 stream_wrapper_register("wrap", "wrapper");
22 Warning: feof(): wrapper::stream_eof is not implemented! Assuming EOF in %s on line %d
26 #0 [internal function]: wrapper->stream_eof()
/PHP-7.1/ext/phar/
H A Ddirstream.c314 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir()
315 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
333 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir()
343 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_dir()
346 php_stream_wrapper_log_error(wrapper, options, "phar file \"%s\" is unknown", resource->host); in phar_wrapper_open_dir()
438 if ((resource = phar_parse_url(wrapper, url_from, "w", options)) == NULL) { in phar_wrapper_mkdir()
445 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url_from); in phar_wrapper_mkdir()
573 if ((resource = phar_parse_url(wrapper, url, "w", options)) == NULL) { in phar_wrapper_rmdir()
580 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url); in phar_wrapper_rmdir()
620 php_stream_wrapper_log_error(wrapper, options, "phar error: Directory not empty"); in phar_wrapper_rmdir()
[all …]
H A Dstream.h24 php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int op…
27 static php_stream* phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char …
28 static int phar_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_t…
29 static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_strea…
30 static int phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_st…
H A Ddirstream.h23 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url_from, int mode, int options, ph…
24 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.c121 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
132 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
144 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
171 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()
290 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
313 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
471 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS, "%s", error); in phar_stream_flush()
688 if ((resource = phar_parse_url(wrapper, url, "rb", options)) == NULL) { in phar_wrapper_unlink()
689 php_stream_wrapper_log_error(wrapper, options, "phar error: unlink failed"); in phar_wrapper_unlink()
[all …]
/PHP-7.1/main/streams/
H A Dstreams.c156 if (wrapper) { in php_stream_display_wrapper_errors()
486 if (stream->wrapper && stream->wrapper->wops && stream->wrapper->wops->stream_closer) { in _php_stream_free()
1859 if (wrapper && wrapper->is_url &&
1888 if (!wrapper || !wrapper->wops || !wrapper->wops->stream_mkdir) {
1903 if (!wrapper || !wrapper->wops || !wrapper->wops->stream_rmdir) {
1934 if (wrapper && wrapper->wops->url_stat) {
1976 if (wrapper && wrapper->wops->dir_opener) {
1977 stream = wrapper->wops->dir_opener(wrapper,
1982 stream->wrapper = wrapper;
2055 stream = wrapper->wops->stream_opener(wrapper,
[all …]
H A Duserspace.c45 php_stream_wrapper wrapper; member
360 us->wrapper = uwrap; in user_wrapper_opener()
403 us->wrapper->classname); in user_wrapper_opener()
443 us->wrapper = uwrap; in user_wrapper_opendir()
473 us->wrapper->classname); in user_wrapper_opendir()
563 php_stream_wrapper *wrapper; in PHP_FUNCTION() local
628 us->wrapper->classname); in php_userstreamop_write()
634 us->wrapper->classname, in php_userstreamop_write()
685 us->wrapper->classname); in php_userstreamop_read()
706 us->wrapper->classname); in php_userstreamop_read()
[all …]
H A Dphp_streams_int.h69 void php_stream_tidy_wrapper_error_log(php_stream_wrapper *wrapper);
70 void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *c…
/PHP-7.1/ext/standard/tests/streams/
H A Dglob-wrapper.phpt2 Glob wrapper bypasses open_basedir
26 …ct. File(%s) is not within the allowed path(s): (/does_not_exist) in %s%eglob-wrapper.php on line 5
28 Warning: opendir(%s): failed to open dir: Operation not permitted in %s%eglob-wrapper.php on line 5
32 …ct. File(%s) is not within the allowed path(s): (/does_not_exist) in %s%eglob-wrapper.php on line 5
34 Warning: opendir(glob://%s): failed to open dir: operation failed in %s%eglob-wrapper.php on line 5
/PHP-7.1/ext/standard/
H A Dfilestat.c342 php_stream_wrapper *wrapper; in php_do_chgrp() local
350 if(wrapper && wrapper->wops->stream_metadata) { in php_do_chgrp()
363 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chgrp()
479 php_stream_wrapper *wrapper; in php_do_chown() local
487 if(wrapper && wrapper->wops->stream_metadata) { in php_do_chown()
500 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chown()
587 php_stream_wrapper *wrapper; in PHP_FUNCTION() local
595 if(wrapper && wrapper->wops->stream_metadata) { in PHP_FUNCTION()
635 php_stream_wrapper *wrapper; in PHP_FUNCTION() local
667 if(wrapper && wrapper->wops->stream_metadata) { in PHP_FUNCTION()
[all …]
H A Dftp_fopen_wrapper.c105 static int php_stream_ftp_stream_close(php_stream_wrapper *wrapper, php_stream *stream) in php_stream_ftp_stream_close() argument
191 php_stream_wrapper_log_error(wrapper, options, "Server doesn't support FTPS."); in php_ftp_fopen_connect()
210 php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode"); in php_ftp_fopen_connect()
241 php_stream_wrapper_log_error(wrapper, options, err_msg, val); \ in php_ftp_fopen_connect()
453 php_stream_wrapper_log_error(wrapper, options, "Unknown file open mode"); in php_stream_url_wrap_ftp()
461 return php_stream_url_wrap_http(wrapper, path, mode, options, opened_path, context STREAMS_CC); in php_stream_url_wrap_ftp()
464 php_stream_wrapper_log_error(wrapper, options, "FTP proxy may only be used in read mode"); in php_stream_url_wrap_ftp()
585 php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode"); in php_stream_url_wrap_ftp()
607 php_stream_wrapper_log_error(wrapper, options, "FTP server reports %s", tmp_line); in php_stream_url_wrap_ftp()
757 php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode"); in php_stream_ftp_opendir()
[all …]
H A Dphp_fopen_wrappers.h26 php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mod…
27 php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode…
H A Dhttp_fopen_wrapper.c112 php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, in php_stream_url_wrap_http_ex() argument
150 php_stream_wrapper_log_error(wrapper, options, "Redirection limit reached, aborting"); in php_stream_url_wrap_http_ex()
161 (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "proxy")) == NULL || in php_stream_url_wrap_http_ex()
191 (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "proxy")) != NULL && in php_stream_url_wrap_http_ex()
229 php_stream_wrapper_log_error(wrapper, options, "%s", ZSTR_VAL(errstr)); in php_stream_url_wrap_http_ex()
312 php_stream_wrapper_log_error(wrapper, options, "Cannot connect to HTTPS server through proxy"); in php_stream_url_wrap_http_ex()
335 php_stream_wrapper_log_error(wrapper, options, "Cannot connect to HTTPS server through proxy"); in php_stream_url_wrap_http_ex()
766 php_stream_wrapper_log_error(wrapper, options, "Failed to read HTTP headers"); in php_stream_url_wrap_http_ex()
914 php_stream_wrapper_log_error(wrapper, options, "Invalid redirect URL! %s", new_path); in php_stream_url_wrap_http_ex()
926 php_stream_wrapper_log_error(wrapper, options, "Invalid redirect URL! %s", new_path); \ in php_stream_url_wrap_http_ex()
[all …]
/PHP-7.1/ext/zlib/tests/
H A Dzlib_wrapper_meta_data_basic.phpt11 echo "no wrapper\n";
16 echo "\nwith wrapper\n";
26 no wrapper
44 with wrapper
/PHP-7.1/ext/bz2/
H A Dphp_bz2.h53 PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const ch…
57 #define php_stream_bz2open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper)… argument
/PHP-7.1/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.phpt97 Warning: file_get_contents(): test1:// wrapper is disabled in the server configuration by allow_url…
99 Warning: file_get_contents(test1://hello): failed to open stream: no suitable wrapper could be foun…
102 Warning: include(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 i…
104 Warning: include(test1://hello): failed to open stream: no suitable wrapper could be found in %sinc…
108 Warning: fopen(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 in …
110 Warning: fopen(test1://hello): failed to open stream: no suitable wrapper could be found in %sinclu…
115 Warning: fopen(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 in …
117 Warning: fopen(test1://hello): failed to open stream: no suitable wrapper could be found in %sinclu…
H A Dfopen_variation14-win32.phpt108 …open14.tmpDir\fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
113 …open14.tmpDir\fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
118 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
123 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
128 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
133 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
138 …open14.tmpDir\fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
143 …open14.tmpDir\fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
160 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
165 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
[all …]
H A Dfopen_variation15-win32.phpt112 …open15.tmpDir\fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
117 …open15.tmpDir\fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
122 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
127 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
132 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
137 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
142 …open15.tmpDir\fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
147 …open15.tmpDir\fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
164 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
169 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
[all …]
H A Dfopen_variation14.phpt100 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
105 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
110 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
115 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
124 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
129 …open14.tmpDir/fopen_variation14.tmp): failed to open stream: no suitable wrapper could be found in…
H A Dfopen_variation15.phpt104 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
109 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
114 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
119 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
128 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
133 …open15.tmpDir/fopen_variation15.tmp): failed to open stream: no suitable wrapper could be found in…
/PHP-7.1/main/
H A Dfopen_wrappers.c485 php_stream_wrapper *wrapper; local
495 wrapper = php_stream_locate_url_wrapper(filename, &actual_path, STREAM_OPEN_FOR_INCLUDE);
496 if (wrapper == &php_plain_files_wrapper) {
561 if (!wrapper) {
563 } else if (wrapper != &php_plain_files_wrapper) {
564 if (wrapper->wops->url_stat) {
567 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL)) {
598 if (!wrapper) {
600 } else if (wrapper != &php_plain_files_wrapper) {
601 if (wrapper->wops->url_stat) {
[all …]
H A Dphp_streams.h136 php_stream *(*stream_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode,
139 int (*stream_closer)(php_stream_wrapper *wrapper, php_stream *stream);
141 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb);
145 php_stream *(*dir_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode,
151 …int (*unlink)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *conte…
157 …int (*stream_mkdir)(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_strea…
158 …int (*stream_rmdir)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context …
160 …int (*stream_metadata)(php_stream_wrapper *wrapper, const char *url, int options, void *value, php…
196 php_stream_wrapper *wrapper; /* which wrapper was used to open the stream */ member
560 PHPAPI int php_register_url_stream_wrapper(const char *protocol, php_stream_wrapper *wrapper);
[all …]
/PHP-7.1/sapi/phpdbg/tests/
H A Dphpdbg_get_executable_stream_wrapper.phpt24 * First, we define a stream wrapper that simply maps to a real file on disk.
66 stream_wrapper_register('wrapper', StreamWrapper::class);
70 * wrapper.
73 require 'wrapper://' . $filename;

Completed in 84 milliseconds

12345