/PHP-8.1/ext/xsl/ |
H A D | php_xsl.c | 171 ((xsltStylesheetPtr) obj)->_private = wrapper; in xsl_object_set_data() 180 object = Z_XSL_P(wrapper); in php_xsl_set_object() 182 xsl_object_set_data(obj, wrapper); in php_xsl_set_object() 189 zval *wrapper; in php_xsl_create_object() local 193 wrapper = wrapper_in; in php_xsl_create_object() 194 ZVAL_NULL(wrapper); in php_xsl_create_object() 199 ZVAL_COPY(wrapper, wrapper_in); in php_xsl_create_object() 204 wrapper = return_value; in php_xsl_create_object() 206 wrapper = wrapper_in; in php_xsl_create_object() 213 object_init_ex(wrapper, ce); in php_xsl_create_object() [all …]
|
/PHP-8.1/Zend/tests/ |
H A D | bug41421.phpt | 2 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()
|
H A D | gh10072.phpt | 87 private $wrapper; 90 if (!$this->wrapper) { 91 $this->wrapper = new DummyStreamWrapper(); 94 return $this->wrapper->$name(...$arguments);
|
/PHP-8.1/ext/phar/ |
H A D | dirstream.c | 300 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir() 301 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir() 319 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir() 329 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_dir() 424 if ((resource = phar_parse_url(wrapper, url_from, "w", options)) == NULL) { in phar_wrapper_mkdir() 431 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url_from); in phar_wrapper_mkdir() 559 if ((resource = phar_parse_url(wrapper, url, "w", options)) == NULL) { in phar_wrapper_rmdir() 566 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url); in phar_wrapper_rmdir() 572 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar stream url \"%s\"", url); in phar_wrapper_rmdir() 606 php_stream_wrapper_log_error(wrapper, options, "phar error: Directory not empty"); in phar_wrapper_rmdir() [all …]
|
H A D | stream.h | 22 php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int op… 25 static php_stream* phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char … 26 static int phar_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_t… 27 static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_strea… 28 static int phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_st…
|
H A D | dirstream.h | 21 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… 25 php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int op… 34 php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, …
|
H A D | stream.c | 123 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() 173 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_url() 198 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url() 288 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url() 311 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url() 469 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS, "%s", error); in phar_stream_flush() 668 if ((resource = phar_parse_url(wrapper, url, "rb", options)) == NULL) { in phar_wrapper_unlink() 669 php_stream_wrapper_log_error(wrapper, options, "phar error: unlink failed"); in phar_wrapper_unlink() [all …]
|
/PHP-8.1/main/streams/ |
H A D | streams.c | 163 if (wrapper) { in php_stream_display_wrapper_errors() 500 if (stream->wrapper && stream->wrapper->wops && stream->wrapper->wops->stream_closer) { in _php_stream_free() 1916 if (wrapper && wrapper->is_url && 1942 if (!wrapper || !wrapper->wops || !wrapper->wops->stream_mkdir) { 1956 if (!wrapper || !wrapper->wops || !wrapper->wops->stream_rmdir) { 1973 if (wrapper && wrapper->wops->url_stat) { 1996 if (wrapper && wrapper->wops->dir_opener) { 1997 stream = wrapper->wops->dir_opener(wrapper, 2002 stream->wrapper = wrapper; 2086 stream = wrapper->wops->stream_opener(wrapper, [all …]
|
H A D | userspace.c | 40 php_stream_wrapper wrapper; member 327 if(uwrap->wrapper.is_url == 0 && in user_wrapper_opener() 334 us->wrapper = uwrap; in user_wrapper_opener() 376 ZSTR_VAL(us->wrapper->ce->name)); in user_wrapper_opener() 416 us->wrapper = uwrap; in user_wrapper_opendir() 445 ZSTR_VAL(us->wrapper->ce->name)); in user_wrapper_opendir() 483 uwrap->wrapper.abstract = uwrap; in PHP_FUNCTION() 528 php_stream_wrapper *wrapper; in PHP_FUNCTION() local 595 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_write() 602 ZSTR_VAL(us->wrapper->ce->name), in php_userstreamop_write() [all …]
|
H A D | php_streams_int.h | 64 void php_stream_tidy_wrapper_error_log(php_stream_wrapper *wrapper); 65 void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *c…
|
/PHP-8.1/ext/standard/ |
H A D | filestat.c | 350 php_stream_wrapper *wrapper; in php_do_chgrp() local 359 if(wrapper && wrapper->wops->stream_metadata) { in php_do_chgrp() 370 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chgrp() 476 php_stream_wrapper *wrapper; in php_do_chown() local 485 if(wrapper && wrapper->wops->stream_metadata) { in php_do_chown() 496 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chown() 571 php_stream_wrapper *wrapper; in PHP_FUNCTION() local 580 if(wrapper && wrapper->wops->stream_metadata) { in PHP_FUNCTION() 647 if(wrapper && wrapper->wops->stream_metadata) { in PHP_FUNCTION() 814 if (!wrapper) { in php_stat() [all …]
|
H A D | ftp_fopen_wrapper.c | 97 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() 442 php_stream_wrapper_log_error(wrapper, options, "Unknown file open mode"); in php_stream_url_wrap_ftp() 450 return php_stream_url_wrap_http(wrapper, path, mode, options, opened_path, context STREAMS_CC); in php_stream_url_wrap_ftp() 453 php_stream_wrapper_log_error(wrapper, options, "FTP proxy may only be used in read mode"); in php_stream_url_wrap_ftp() 574 php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode"); in php_stream_url_wrap_ftp() 596 php_stream_wrapper_log_error(wrapper, options, "FTP server reports %s", tmp_line); in php_stream_url_wrap_ftp() 743 php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode"); in php_stream_ftp_opendir() [all …]
|
H A D | php_fopen_wrappers.h | 22 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-8.1/ext/standard/tests/streams/ |
H A D | glob-wrapper.phpt | 2 Glob wrapper bypasses open_basedir 27 …ct. File(%s) is not within the allowed path(s): (/does_not_exist) in %s%eglob-wrapper.php on line 5 29 Warning: opendir(%s): Failed to open directory: Operation not permitted in %s%eglob-wrapper.php on … 33 …ct. File(%s) is not within the allowed path(s): (/does_not_exist) in %s%eglob-wrapper.php on line 5 35 Warning: opendir(glob://%s): Failed to open directory: operation failed in %s%eglob-wrapper.php on …
|
/PHP-8.1/ext/zlib/tests/ |
H A D | zlib_wrapper_meta_data_basic.phpt | 7 echo "no wrapper\n"; 12 echo "\nwith wrapper\n"; 21 no wrapper 39 with wrapper
|
H A D | zlib_wrapper_level.phpt | 2 compress.zlib:// wrapper with compression level 6 <?php in_array('compress.zlib', stream_get_wrappers()) || print 'skip No zlib wrapper';
|
/PHP-8.1/ext/bz2/ |
H A D | php_bz2.h | 49 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-8.1/ext/standard/tests/file/ |
H A D | stream_001.phpt | 16 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 D | include_userstream_003.phpt | 100 Warning: file_get_contents(): test1:// wrapper is disabled in the server configuration by allow_url… 102 Warning: file_get_contents(test1://hello): Failed to open stream: no suitable wrapper could be foun… 105 Warning: include(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 i… 107 Warning: include(test1://hello): Failed to open stream: no suitable wrapper could be found in %sinc… 111 Warning: fopen(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 in … 113 Warning: fopen(test1://hello): Failed to open stream: no suitable wrapper could be found in %sinclu… 118 Warning: fopen(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 in … 120 Warning: fopen(test1://hello): Failed to open stream: no suitable wrapper could be found in %sinclu…
|
H A D | fopen_variation14-win32.phpt | 101 …open14.tmpDir\fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 106 …open14.tmpDir\fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 111 …open14.tmpDir/fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 116 …open14.tmpDir/fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 121 …open14.tmpDir/fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 126 …open14.tmpDir/fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 131 …open14.tmpDir\fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 136 …open14.tmpDir\fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 153 …open14.tmpDir/fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… 158 …open14.tmpDir/fopen_variation14.tmp): Failed to open stream: no suitable wrapper could be found in… [all …]
|
H A D | fopen_variation15-win32.phpt | 105 …open15.tmpDir\fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 110 …open15.tmpDir\fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 115 …open15.tmpDir/fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 120 …open15.tmpDir/fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 125 …open15.tmpDir/fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 130 …open15.tmpDir/fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 135 …open15.tmpDir\fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 140 …open15.tmpDir\fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 157 …open15.tmpDir/fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… 162 …open15.tmpDir/fopen_variation15.tmp): Failed to open stream: no suitable wrapper could be found in… [all …]
|
/PHP-8.1/Zend/tests/generators/ |
H A D | bug78434.phpt | 10 $wrapper = function () use ($function) { 20 foreach ($wrapper() as $value) {
|
/PHP-8.1/main/ |
H A D | fopen_wrappers.c | 482 php_stream_wrapper *wrapper; local 492 wrapper = php_stream_locate_url_wrapper(filename, &actual_path, STREAM_OPEN_FOR_INCLUDE); 493 if (wrapper == &php_plain_files_wrapper) { 554 if (!wrapper) { 556 } else if (wrapper != &php_plain_files_wrapper) { 557 if (wrapper->wops->url_stat) { 560 … if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL)) { 594 if (!wrapper) { 596 } else if (wrapper != &php_plain_files_wrapper) { 597 if (wrapper->wops->url_stat) { [all …]
|
H A D | php_streams.h | 132 php_stream *(*stream_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode, 135 int (*stream_closer)(php_stream_wrapper *wrapper, php_stream *stream); 137 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb); 141 php_stream *(*dir_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode, 147 …int (*unlink)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *conte… 153 …int (*stream_mkdir)(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_strea… 154 …int (*stream_rmdir)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context … 156 …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 579 PHPAPI int php_register_url_stream_wrapper(const char *protocol, const php_stream_wrapper *wrapper); [all …]
|
/PHP-8.1/sapi/phpdbg/tests/ |
H A D | phpdbg_get_executable_stream_wrapper.phpt | 24 * First, we define a stream wrapper that simply maps to a real file on disk. 67 stream_wrapper_register('wrapper', StreamWrapper::class); 71 * wrapper. 74 require 'wrapper://' . $filename;
|