Home
last modified time | relevance | path

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

123456

/PHP-8.3/ext/xsl/
H A Dphp_xsl.c157 ((xsltStylesheetPtr) obj)->_private = wrapper; in xsl_object_set_data()
166 object = Z_XSL_P(wrapper); in php_xsl_set_object()
168 xsl_object_set_data(obj, wrapper); in php_xsl_set_object()
175 zval *wrapper; in php_xsl_create_object() local
179 wrapper = wrapper_in; in php_xsl_create_object()
180 ZVAL_NULL(wrapper); in php_xsl_create_object()
185 ZVAL_COPY(wrapper, wrapper_in); in php_xsl_create_object()
190 wrapper = return_value; in php_xsl_create_object()
192 wrapper = wrapper_in; in php_xsl_create_object()
199 object_init_ex(wrapper, ce); in php_xsl_create_object()
[all …]
/PHP-8.3/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
H A Dgh11735_2.phpt2 GH-11735: Use-after-free when unregistering user stream wrapper from user stream wrapper
/PHP-8.3/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-8.3/ext/phar/
H A Ddirstream.c300 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 Dstream.h22 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 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…
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 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()
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()
299 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
322 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
480 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS, "%s", error); in phar_stream_flush()
679 if ((resource = phar_parse_url(wrapper, url, "rb", options)) == NULL) { in phar_wrapper_unlink()
680 php_stream_wrapper_log_error(wrapper, options, "phar error: unlink failed"); in phar_wrapper_unlink()
[all …]
/PHP-8.3/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-8.3/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-8.3/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-8.3/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-8.3/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-8.3/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-8.3/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-8.3/Zend/tests/generators/
H A Dbug78434.phpt10 $wrapper = function () use ($function) {
20 foreach ($wrapper() as $value) {

Completed in 53 milliseconds

123456