Searched defs:wrapper (Results 1 - 25 of 25) sorted by relevance

/PHP_5_6/ext/xmlrpc/libxmlrpc/
H A Dxml_to_dandarpc.c280 xml_element* wrapper = NULL; local
289 wrapper = xml_elem_new();
298 wrapper->name = strdup(pStr);
304 Q_PushTail(&root->children, wrapper);
312 Q_PushTail(&wrapper->children, method);
314 Q_PushTail(&wrapper->children,
H A Dxml_to_xmlrpc.c373 xml_element* wrapper = NULL; local
379 wrapper = xml_elem_new();
388 wrapper->name = strdup(pStr);
398 Q_PushTail(&wrapper->children, method);
402 Q_PushTail(&wrapper->children,
409 Q_PushTail(&wrapper->children, params);
412 return wrapper;
/PHP_5_6/ext/phar/
H A Ddirstream.c3 | phar:// stream wrapper support |
301 php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ argument
312 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) {
313 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar url \"%s\" is unknown", path);
320 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: no directory in \"%s\", must have at least phar://%s/ for root directory (always use full path to a new phar)", path, resource->host);
325 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: invalid url \"%s\", must have at least phar://%s/", path, path);
331 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: not a phar url \"%s\"", path);
341 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error);
344 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar file \"%s\" is unknown", resource->host);
410 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, cons argument
542 phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) argument
[all...]
H A Dstream.c3 | phar:// stream wrapper support |
59 php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options TSRMLS_DC) /* {{{ */ argument
70 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: open mode append not supported");
77 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: no directory in \"%s\", must have at least phar://%s/ for root directory (always use full path to a new phar)", filename, arch);
80 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: invalid url or non-existent phar \"%s\"", filename);
111 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: write operations disabled by the php.ini setting phar.readonly");
120 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error);
131 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error);
143 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error);
158 static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, cons argument
566 phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
681 phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) argument
757 phar_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context TSRMLS_DC) argument
[all...]
/PHP_5_6/ext/standard/
H A Dfilestat.c429 php_stream_wrapper *wrapper; local
435 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0 TSRMLS_CC);
436 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) {
437 if(wrapper && wrapper->wops->stream_metadata) {
450 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL TSRMLS_CC)) {
566 php_stream_wrapper *wrapper; local
572 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0 TSRMLS_CC);
573 if(wrapper !
674 php_stream_wrapper *wrapper; local
722 php_stream_wrapper *wrapper; local
861 php_stream_wrapper *wrapper; local
[all...]
H A Dstreamsfuncs.c43 #define GET_CTX_OPT(stream, wrapper, name, val) (stream->context && SUCCESS == php_stream_context_get_option(stream->context, wrapper, name, &val))
507 if (stream->wrapper) {
508 add_assoc_string(return_value, "wrapper_type", (char *)stream->wrapper->wops->label, 1);
1007 Retrieve options for a stream/wrapper/context */
1027 Set an option for a wrapper */
1570 php_stream_wrapper *wrapper = NULL; local
1581 wrapper = stream->wrapper;
1585 wrapper
[all...]
H A Dphp_fopen_wrapper.c174 php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, argument
309 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC,
321 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC,
328 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC,
H A Dhttp_fopen_wrapper.c112 php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, argument
148 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Redirection limit reached, aborting");
159 php_stream_context_get_option(context, wrapper->wops->label, "proxy", &tmpzval) == FAILURE ||
165 /* Called from a non-http wrapper with http proxying requested (i.e. ftp) */
176 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "HTTP wrapper does not support writeable connections");
189 php_stream_context_get_option(context, wrapper->wops->label, "proxy", &tmpzval) == SUCCESS &&
200 if (context && php_stream_context_get_option(context, wrapper->wops->label, "timeout", &tmpzval) == SUCCESS) {
219 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", errstr);
305 php_stream_wrapper_log_error(wrapper, option
949 php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
955 php_stream_http_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
[all...]
H A Dfile.c1442 php_stream_wrapper *wrapper; local
1449 wrapper = php_stream_locate_url_wrapper(old_name, NULL, 0 TSRMLS_CC);
1451 if (!wrapper || !wrapper->wops) {
1452 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate stream wrapper");
1456 if (!wrapper->wops->rename) {
1457 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s wrapper does not support renaming", wrapper->wops->label ? wrapper->wops->label : "Source");
1461 if (wrapper !
1478 php_stream_wrapper *wrapper; local
[all...]
H A Dftp_fopen_wrapper.c94 static int php_stream_ftp_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
104 static int php_stream_ftp_stream_close(php_stream_wrapper *wrapper, php_stream *stream TSRMLS_DC) argument
133 static php_stream *php_ftp_fopen_connect(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, argument
208 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unable to activate SSL mode");
239 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, err_msg, val); \
414 php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode, argument
439 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "FTP does not support simultaneous read/write connections");
450 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unknown file open mode");
457 /* Use http wrapper to proxy ftp request */
458 return php_stream_url_wrap_http(wrapper, pat
695 php_stream_ftp_opendir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
785 php_stream_ftp_url_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
908 php_stream_ftp_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) argument
958 php_stream_ftp_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context TSRMLS_DC) argument
1037 php_stream_ftp_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context TSRMLS_DC) argument
1131 php_stream_ftp_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) argument
[all...]
/PHP_5_6/ext/xmlwriter/
H A Dphp_xmlwriter.c679 php_stream_wrapper *wrapper = NULL; local
/PHP_5_6/ext/zip/
H A Dzip_stream.c253 php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper, argument
341 "zip wrapper",
/PHP_5_6/main/
H A Dfopen_wrappers.c479 php_stream_wrapper *wrapper; local
488 wrapper = php_stream_locate_url_wrapper(filename, &actual_path, STREAM_OPEN_FOR_INCLUDE TSRMLS_CC);
489 if (wrapper == &php_plain_files_wrapper) {
512 /* Check for stream wrapper */
517 /* .:// or ..:// is not a stream wrapper */
546 wrapper = php_stream_locate_url_wrapper(trypath, &actual_path, STREAM_OPEN_FOR_INCLUDE TSRMLS_CC);
547 if (!wrapper) {
549 } else if (wrapper != &php_plain_files_wrapper) {
550 if (wrapper->wops->url_stat) {
553 if (SUCCESS == wrapper
[all...]
H A Dphp_streams.h134 php_stream *(*stream_opener)(php_stream_wrapper *wrapper, const char *filename, const 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_DC);
141 int (*url_stat)(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
143 php_stream *(*dir_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode,
149 int (*unlink)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC);
152 int (*rename)(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context TSRMLS_DC);
155 int (*stream_mkdir)(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context TSRMLS_DC);
156 int (*stream_rmdir)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC);
158 int (*stream_metadata)(php_stream_wrapper *wrapper, cons
192 php_stream_wrapper *wrapper; /* which wrapper was used to open the stream */ member in struct:_php_stream
[all...]
/PHP_5_6/main/streams/
H A Dglob_wrapper.c209 static php_stream *php_glob_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, argument
H A Duserspace.c45 php_stream_wrapper wrapper; member in struct:php_user_stream_wrapper
48 static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
49 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
50 static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC);
51 static int user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context TSRMLS_DC);
52 static int user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context TSRMLS_DC);
53 static int user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC);
54 static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context TSRMLS_DC);
55 static php_stream *user_wrapper_opendir(php_stream_wrapper *wrapper, const char *filename, const char *mode,
122 struct php_user_stream_wrapper * wrapper; member in struct:_php_userstream_data
335 user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
441 user_wrapper_opendir(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
589 php_stream_wrapper **wrapperpp = NULL, *wrapper; local
1155 user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) argument
1202 user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context TSRMLS_DC) argument
1255 user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context TSRMLS_DC) argument
1314 user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) argument
1368 user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context TSRMLS_DC) argument
1452 user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
[all...]
H A Dstreams.c37 /* Global wrapper hash, copied to FG(stream_wrappers) on registration of volatile wrapper */
160 static zend_llist *php_get_wrapper_errors_list(php_stream_wrapper *wrapper TSRMLS_DC)
166 zend_hash_find(FG(wrapper_errors), (const char*)&wrapper,
167 sizeof wrapper, (void**)&list); local
172 /* {{{ wrapper error reporting */
173 void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *caption TSRMLS_DC) argument
179 if (wrapper) {
180 zend_llist *err_list = php_get_wrapper_errors_list(wrapper TSRMLS_CC);
219 if (wrapper
240 zend_hash_del(FG(wrapper_errors), (const char*)&wrapper, sizeof wrapper); local
249 php_stream_wrapper_log_error(php_stream_wrapper *wrapper, int options TSRMLS_DC, const char *fmt, ...) argument
269 sizeof wrapper, (void**)&list); local
276 sizeof wrapper, &new_list, sizeof new_list, (void**)&list); local
1894 php_stream_wrapper *wrapper = NULL; local
1909 php_stream_wrapper *wrapper = NULL; local
1923 php_stream_wrapper *wrapper = NULL; local
1974 php_stream_wrapper *wrapper = NULL; local
2023 php_stream_wrapper *wrapper = NULL; local
[all...]
H A Dplain_wrapper.c203 stream->wrapper = &php_plain_files_wrapper;
879 static php_stream *php_plain_files_dir_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, argument
1017 static php_stream *php_plain_files_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, argument
1027 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
1053 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) argument
1079 static int php_plain_files_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context TSRMLS_DC) argument
1163 static int php_plain_files_mkdir(php_stream_wrapper *wrapper, const char *dir, int mode, int options, php_stream_context *context TSRMLS_DC) argument
1249 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) argument
1277 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context TSRMLS_DC) argument
H A Dmemory.c618 static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, const char *path, argument
643 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "rfc2397: no comma in URL");
655 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "rfc2397: illegal media type");
671 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "rfc2397: illegal media type");
684 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "rfc2397: illegal parameter");
704 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "rfc2397: illegal URL");
721 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "rfc2397: unable to decode");
/PHP_5_6/ext/xsl/
H A Dphp_xsl.c98 /* free wrapper */
210 static void xsl_object_set_data(void *obj, zval *wrapper TSRMLS_DC)
212 ((xsltStylesheetPtr) obj)->_private = wrapper;
217 void php_xsl_set_object(zval *wrapper, void *obj TSRMLS_DC) argument
221 object = (xsl_object *)zend_objects_get_address(wrapper TSRMLS_CC);
223 xsl_object_set_data(obj, wrapper TSRMLS_CC);
230 zval *wrapper; local
237 ALLOC_ZVAL(wrapper);
239 wrapper = wrapper_in;
241 ZVAL_NULL(wrapper);
[all...]
/PHP_5_6/ext/zlib/
H A Dzlib_fopen_wrapper.c111 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, argument
/PHP_5_6/ext/bz2/
H A Dbz2.c208 PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, argument
251 /* that didn't work, so try and get something from the network/wrapper */
/PHP_5_6/ext/dom/
H A Dphp_dom.c1032 dom_object *wrapper; local
1036 wrapper = php_dom_object_get_data(node);
1038 if (wrapper != NULL ) {
1328 zval *wrapper; local
1335 ALLOC_ZVAL(wrapper);
1336 ZVAL_NULL(wrapper);
1337 return wrapper;
1350 wrapper = return_value;
1423 ZVAL_NULL(wrapper);
1424 return wrapper;
[all...]
/PHP_5_6/ext/opcache/
H A DZendAccelerator.c652 php_stream_wrapper *wrapper; local
660 wrapper = php_stream_locate_url_wrapper(filename, NULL, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC);
661 if (!wrapper) {
664 if (!wrapper->wops || !wrapper->wops->url_stat) {
672 ret = wrapper->wops->url_stat(wrapper, (char*)filename, PHP_STREAM_URL_STAT_QUIET, &stream_statbuf, NULL TSRMLS_CC);
/PHP_5_6/ext/libxml/
H A Dlibxml.c165 php_libxml_node_object *wrapper; local
170 wrapper = nodeptr->_private;
171 if (wrapper) {
172 php_libxml_clear_object(wrapper TSRMLS_CC);
295 php_stream_wrapper *wrapper = NULL; local
322 if the wrapper supports stat, otherwise, figure it out from
327 wrapper = php_stream_locate_url_wrapper(resolved_path, &path_to_open, 0 TSRMLS_CC);
328 if (wrapper && read_only && wrapper->wops->url_stat) {
329 if (wrapper
[all...]

Completed in 141 milliseconds