Home
last modified time | relevance | path

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

1234

/PHP-5.4/ext/xsl/
H A Dphp_xsl.c230 zval *wrapper; in php_xsl_create_object() local
237 ALLOC_ZVAL(wrapper); in php_xsl_create_object()
239 wrapper = wrapper_in; in php_xsl_create_object()
241 ZVAL_NULL(wrapper); in php_xsl_create_object()
242 return wrapper; in php_xsl_create_object()
246 zval_add_ref(&wrapper); in php_xsl_create_object()
248 return wrapper; in php_xsl_create_object()
252 wrapper = return_value; in php_xsl_create_object()
254 wrapper = wrapper_in; in php_xsl_create_object()
261 object_init_ex(wrapper, ce); in php_xsl_create_object()
[all …]
/PHP-5.4/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-5.4/ext/phar/
H A Dstream.h24 php_url* phar_parse_url(php_stream_wrapper *wrapper, char *filename, char *mode, int options TSRMLS…
27 static php_stream* phar_wrapper_open_url(php_stream_wrapper *wrapper, char *path, char *mode, int o…
28 static int phar_wrapper_rename(php_stream_wrapper *wrapper, char *url_from, char *url_to, int optio…
29 static int phar_wrapper_unlink(php_stream_wrapper *wrapper, char *url, int options, php_stream_cont…
30 static int phar_wrapper_stat(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf …
H A Ddirstream.c330 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) { in phar_wrapper_open_dir()
331 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
349 …php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: not a phar url \"%s\"", path… in phar_wrapper_open_dir()
359 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_wrapper_open_dir()
362 …php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar file \"%s\" is unknown", resource->… in phar_wrapper_open_dir()
458 if ((resource = phar_parse_url(wrapper, url_from, "w", options TSRMLS_CC)) == NULL) { in phar_wrapper_mkdir()
465 …php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: invalid url \"%s\"", url_fro… in phar_wrapper_mkdir()
595 if ((resource = phar_parse_url(wrapper, url, "w", options TSRMLS_CC)) == NULL) { in phar_wrapper_rmdir()
602 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: invalid url \"%s\"", url); in phar_wrapper_rmdir()
645 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: Directory not empty"); in phar_wrapper_rmdir()
[all …]
H A Ddirstream.h23 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, char *url_from, int mode, int options, php_stre…
24 int phar_wrapper_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *con…
27 php_url* phar_parse_url(php_stream_wrapper *wrapper, char *filename, char *mode, int options TSRMLS…
36 php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, char *path, char *mode, int options,…
H A Dstream.c120 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_parse_url()
131 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_parse_url()
143 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_parse_url()
170 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) { in phar_wrapper_open_url()
195 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_wrapper_open_url()
289 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_wrapper_open_url()
312 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_wrapper_open_url()
467 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS TSRMLS_CC, "%s", error); in phar_stream_flush()
566 static int phar_wrapper_stat(php_stream_wrapper *wrapper, char *url, int flags, in phar_wrapper_stat() argument
698 if ((resource = phar_parse_url(wrapper, url, "rb", options TSRMLS_CC)) == NULL) { in phar_wrapper_unlink()
[all …]
/PHP-5.4/main/streams/
H A Dstreams.c179 if (wrapper) { in php_stream_display_wrapper_errors()
510 if (stream->wrapper && stream->wrapper->wops && stream->wrapper->wops->stream_closer) { in _php_stream_free()
1902 if (!wrapper || !wrapper->wops || !wrapper->wops->stream_mkdir) {
1917 if (!wrapper || !wrapper->wops || !wrapper->wops->stream_rmdir) {
1948 if (wrapper && wrapper->wops->url_stat) {
1990 if (wrapper && wrapper->wops->dir_opener) {
1991 stream = wrapper->wops->dir_opener(wrapper,
1996 stream->wrapper = wrapper;
2064 if (wrapper) {
2069 stream = wrapper->wops->stream_opener(wrapper,
[all …]
H A Duserspace.c45 php_stream_wrapper wrapper; member
364 us->wrapper = uwrap; in user_wrapper_opener()
417 us->wrapper->classname); in user_wrapper_opener()
458 us->wrapper = uwrap; in user_wrapper_opendir()
495 us->wrapper->classname); in user_wrapper_opendir()
607 wrapper = *wrapperpp; in PHP_FUNCTION()
653 us->wrapper->classname); in php_userstreamop_write()
659 us->wrapper->classname, in php_userstreamop_write()
707 us->wrapper->classname); in php_userstreamop_read()
731 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 TSRMLS_DC);
70 void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *c…
/PHP-5.4/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-5.4/ext/standard/
H A Dfilestat.c429 php_stream_wrapper *wrapper; in php_do_chgrp() local
437 if(wrapper && wrapper->wops->stream_metadata) { in php_do_chgrp()
450 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL TSRMLS_CC)) { in php_do_chgrp()
566 php_stream_wrapper *wrapper; in php_do_chown() local
574 if(wrapper && wrapper->wops->stream_metadata) { in php_do_chown()
587 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL TSRMLS_CC)) { in php_do_chown()
674 php_stream_wrapper *wrapper; in PHP_FUNCTION() local
682 if(wrapper && wrapper->wops->stream_metadata) { in PHP_FUNCTION()
722 php_stream_wrapper *wrapper; in PHP_FUNCTION() local
754 if(wrapper && wrapper->wops->stream_metadata) { in PHP_FUNCTION()
[all …]
H A Dftp_fopen_wrapper.c104 static int php_stream_ftp_stream_close(php_stream_wrapper *wrapper, php_stream *stream TSRMLS_DC) in php_stream_ftp_stream_close() argument
207 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unable to activate SSL mode"); in php_ftp_fopen_connect()
238 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, err_msg, val); \ in php_ftp_fopen_connect()
448 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unknown file open mode"); in php_stream_url_wrap_ftp()
459 …php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "FTP proxy may only be used in read mode"… in php_stream_url_wrap_ftp()
579 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unable to activate SSL mode"); in php_stream_url_wrap_ftp()
600 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "FTP server reports %s", tmp_line); in php_stream_url_wrap_ftp()
751 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unable to activate SSL mode"); in php_stream_ftp_opendir()
775 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "FTP server reports %s", tmp_line); in php_stream_ftp_opendir()
913 …stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, NULL, NULL, &resource, NULL, NULL TSRML… in php_stream_ftp_unlink()
[all …]
H A Dphp_fopen_wrappers.h26 php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, char *mode, int optio…
27 php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, char *mode, int option…
H A Dhttp_fopen_wrapper.c145 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Redirection limit reached, aborting"); in php_stream_url_wrap_http_ex()
156 php_stream_context_get_option(context, wrapper->wops->label, "proxy", &tmpzval) == FAILURE || in php_stream_url_wrap_http_ex()
186 php_stream_context_get_option(context, wrapper->wops->label, "proxy", &tmpzval) == SUCCESS && in php_stream_url_wrap_http_ex()
197 …if (context && php_stream_context_get_option(context, wrapper->wops->label, "timeout", &tmpzval) =… in php_stream_url_wrap_http_ex()
216 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", errstr); in php_stream_url_wrap_http_ex()
295 …php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Cannot connect to HTTPS server through p… in php_stream_url_wrap_http_ex()
318 …php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Cannot connect to HTTPS server through p… in php_stream_url_wrap_http_ex()
725 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Failed to read HTTP headers"); in php_stream_url_wrap_http_ex()
851 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Invalid redirect URL! %s", new_path); in php_stream_url_wrap_http_ex()
863 … php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Invalid redirect URL! %s", new_path); \ in php_stream_url_wrap_http_ex()
[all …]
/PHP-5.4/ext/bz2/
H A Dphp_bz2.h50 PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, char *path, char *mode, in…
54 #define php_stream_bz2open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper)… argument
/PHP-5.4/ext/standard/tests/file/
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 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 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-5.4/main/
H A Dfopen_wrappers.c479 php_stream_wrapper *wrapper; local
488wrapper = php_stream_locate_url_wrapper(filename, &actual_path, STREAM_OPEN_FOR_INCLUDE TSRMLS_CC);
489 if (wrapper == &php_plain_files_wrapper) {
547 if (!wrapper) {
549 } else if (wrapper != &php_plain_files_wrapper) {
550 if (wrapper->wops->url_stat) {
553 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
583 if (!wrapper) {
585 } else if (wrapper != &php_plain_files_wrapper) {
586 if (wrapper->wops->url_stat) {
[all …]
H A Dphp_streams.h134 php_stream *(*stream_opener)(php_stream_wrapper *wrapper, char *filename, char *mode,
137 int (*stream_closer)(php_stream_wrapper *wrapper, php_stream *stream TSRMLS_DC);
139 …int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS…
143 php_stream *(*dir_opener)(php_stream_wrapper *wrapper, char *filename, char *mode,
149 …int (*unlink)(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSR…
152 …int (*rename)(php_stream_wrapper *wrapper, char *url_from, char *url_to, int options, php_stream_c…
155 …int (*stream_mkdir)(php_stream_wrapper *wrapper, char *url, int mode, int options, php_stream_cont…
156 …int (*stream_rmdir)(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *conte…
196 php_stream_wrapper *wrapper; /* which wrapper was used to open the stream */ member
551 PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC);
[all …]
/PHP-5.4/ext/xmlrpc/libxmlrpc/
H A Dxml_to_dandarpc.c280 xml_element* wrapper = NULL; in DANDARPC_REQUEST_to_xml_element() local
289 wrapper = xml_elem_new(); in DANDARPC_REQUEST_to_xml_element()
298 wrapper->name = strdup(pStr); in DANDARPC_REQUEST_to_xml_element()
304 Q_PushTail(&root->children, wrapper); in DANDARPC_REQUEST_to_xml_element()
312 Q_PushTail(&wrapper->children, method); in DANDARPC_REQUEST_to_xml_element()
314 Q_PushTail(&wrapper->children, in DANDARPC_REQUEST_to_xml_element()
H A Dxml_to_xmlrpc.c373 xml_element* wrapper = NULL; in XMLRPC_REQUEST_to_xml_element() local
379 wrapper = xml_elem_new(); in XMLRPC_REQUEST_to_xml_element()
388 wrapper->name = strdup(pStr); in XMLRPC_REQUEST_to_xml_element()
398 Q_PushTail(&wrapper->children, method); in XMLRPC_REQUEST_to_xml_element()
402 Q_PushTail(&wrapper->children, in XMLRPC_REQUEST_to_xml_element()
409 Q_PushTail(&wrapper->children, params); in XMLRPC_REQUEST_to_xml_element()
412 return wrapper; in XMLRPC_REQUEST_to_xml_element()

Completed in 49 milliseconds

1234