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

/PHP_TRUNK/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.c372 xml_element* wrapper = NULL; local
378 wrapper = xml_elem_new();
387 wrapper->name = strdup(pStr);
397 Q_PushTail(&wrapper->children, method);
401 Q_PushTail(&wrapper->children,
408 Q_PushTail(&wrapper->children, params);
411 return wrapper;
/PHP_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c113 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, argument
/PHP_TRUNK/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 Dmemory.c621 static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, const char *path, argument
648 php_stream_wrapper_log_error(wrapper, options, "rfc2397: no comma in URL");
660 php_stream_wrapper_log_error(wrapper, options, "rfc2397: illegal media type");
675 php_stream_wrapper_log_error(wrapper, options, "rfc2397: illegal media type");
688 php_stream_wrapper_log_error(wrapper, options, "rfc2397: illegal parameter");
708 php_stream_wrapper_log_error(wrapper, options, "rfc2397: illegal URL");
724 php_stream_wrapper_log_error(wrapper, options, "rfc2397: unable to decode");
H A Dstreams.c37 /* Global wrapper hash, copied to FG(stream_wrappers) on registration of volatile wrapper */
139 static zend_llist *php_get_wrapper_errors_list(php_stream_wrapper *wrapper) argument
144 return (zend_llist*) zend_hash_str_find_ptr(FG(wrapper_errors), (const char*)&wrapper, sizeof(wrapper));
148 /* {{{ wrapper error reporting */
149 void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *caption) argument
155 if (wrapper) {
156 zend_llist *err_list = php_get_wrapper_errors_list(wrapper);
195 if (wrapper
213 php_stream_tidy_wrapper_error_log(php_stream_wrapper *wrapper) argument
231 php_stream_wrapper_log_error(php_stream_wrapper *wrapper, int options, const char *fmt, ...) argument
1700 php_register_url_stream_wrapper(const char *protocol, php_stream_wrapper *wrapper) argument
1724 php_register_url_stream_wrapper_volatile(const char *protocol, php_stream_wrapper *wrapper) argument
1753 php_stream_wrapper *wrapper = NULL; local
1889 php_stream_wrapper *wrapper = NULL; local
1904 php_stream_wrapper *wrapper = NULL; local
1918 php_stream_wrapper *wrapper = NULL; local
1969 php_stream_wrapper *wrapper = NULL; local
2018 php_stream_wrapper *wrapper = NULL; local
[all...]
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, zend_string **opened_path, php_stream_context *context STREAMS_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);
50 static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context);
51 static int user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context);
52 static int user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context);
53 static int user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context);
54 static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context);
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
327 user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
417 user_wrapper_opendir(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
555 php_stream_wrapper *wrapper; local
1095 user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) argument
1138 user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context) argument
1184 user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context) argument
1232 user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) argument
1278 user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context) argument
1351 user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context) argument
[all...]
H A Dplain_wrapper.c216 stream->wrapper = &php_plain_files_wrapper;
908 static php_stream *php_plain_files_dir_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, argument
1043 static php_stream *php_plain_files_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, argument
1053 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context) argument
1077 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) argument
1103 static int php_plain_files_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context) argument
1187 static int php_plain_files_mkdir(php_stream_wrapper *wrapper, const char *dir, int mode, int options, php_stream_context *context) argument
1273 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) argument
1301 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context) argument
/PHP_TRUNK/ext/xsl/
H A Dphp_xsl.c92 /* free wrapper */
185 static void xsl_object_set_data(void *obj, zval *wrapper) argument
187 ((xsltStylesheetPtr) obj)->_private = wrapper;
192 void php_xsl_set_object(zval *wrapper, void *obj) argument
196 object = Z_XSL_P(wrapper);
198 xsl_object_set_data(obj, wrapper);
205 zval *wrapper; local
209 wrapper = wrapper_in;
210 ZVAL_NULL(wrapper);
214 if ((wrapper
[all...]
/PHP_TRUNK/ext/standard/
H A Dfilestat.c417 php_stream_wrapper *wrapper; local
423 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0);
424 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) {
425 if(wrapper && wrapper->wops->stream_metadata) {
438 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) {
554 php_stream_wrapper *wrapper; local
560 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0);
561 if(wrapper !
662 php_stream_wrapper *wrapper; local
710 php_stream_wrapper *wrapper; local
849 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) argument
104 static int php_stream_ftp_stream_close(php_stream_wrapper *wrapper, php_stream *stream) 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, "Unable to activate SSL mode");
239 php_stream_wrapper_log_error(wrapper, options, 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, "FTP does not support simultaneous read/write connections");
450 php_stream_wrapper_log_error(wrapper, options, "Unknown file open mode");
457 /* Use http wrapper to proxy ftp request */
458 return php_stream_url_wrap_http(wrapper, pat
686 php_stream_ftp_opendir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
776 php_stream_ftp_url_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context) argument
899 php_stream_ftp_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) argument
949 php_stream_ftp_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context) argument
1028 php_stream_ftp_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context) argument
1122 php_stream_ftp_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) argument
[all...]
H A Dhttp_fopen_wrapper.c112 php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, argument
153 php_stream_wrapper_log_error(wrapper, options, "Redirection limit reached, aborting");
164 (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "proxy")) == NULL ||
170 /* Called from a non-http wrapper with http proxying requested (i.e. ftp) */
181 php_stream_wrapper_log_error(wrapper, options, "HTTP wrapper does not support writeable connections");
194 (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "proxy")) != NULL &&
205 if (context && (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "timeout")) != NULL) {
232 php_stream_wrapper_log_error(wrapper, options, "%s", ZSTR_VAL(errstr));
314 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, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
955 php_stream_http_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb) argument
[all...]
H A Dfile.c1422 php_stream_wrapper *wrapper; local
1429 wrapper = php_stream_locate_url_wrapper(old_name, NULL, 0);
1431 if (!wrapper || !wrapper->wops) {
1432 php_error_docref(NULL, E_WARNING, "Unable to locate stream wrapper");
1436 if (!wrapper->wops->rename) {
1437 php_error_docref(NULL, E_WARNING, "%s wrapper does not support renaming", wrapper->wops->label ? wrapper->wops->label : "Source");
1441 if (wrapper !
1458 php_stream_wrapper *wrapper; local
[all...]
H A Dstreamsfuncs.c43 #define GET_CTX_OPT(stream, wrapper, name, val) (PHP_STREAM_CONTEXT(stream) && NULL != (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), wrapper, name)))
491 if (stream->wrapper) {
492 add_assoc_string(return_value, "wrapper_type", (char *)stream->wrapper->wops->label);
938 Retrieve options for a stream/wrapper/context */
958 Set an option for a wrapper */
1510 php_stream_wrapper *wrapper = NULL; local
1521 wrapper = stream->wrapper;
1525 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
321 php_stream_wrapper_log_error(wrapper, options,
333 php_stream_wrapper_log_error(wrapper, options,
340 php_stream_wrapper_log_error(wrapper, options,
/PHP_TRUNK/ext/bz2/
H A Dbz2.c237 PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, argument
280 /* that didn't work, so try and get something from the network/wrapper */
/PHP_TRUNK/ext/libxml/
H A Dlibxml.c169 php_libxml_node_object *wrapper; local
174 wrapper = nodeptr->_private;
175 if (wrapper) {
176 php_libxml_clear_object(wrapper);
304 php_stream_wrapper *wrapper = NULL; local
319 thus the php stream wrapper will fail on a valid case. For this
345 if the wrapper supports stat, otherwise, figure it out from
350 wrapper = php_stream_locate_url_wrapper(resolved_path, &path_to_open, 0);
351 if (wrapper && read_only && wrapper
[all...]
/PHP_TRUNK/ext/phar/
H A Ddirstream.c3 | phar:// stream wrapper support |
303 php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ argument
314 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) {
315 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path);
322 php_stream_wrapper_log_error(wrapper, options, "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);
327 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\", must have at least phar://%s/", path, path);
333 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path);
343 php_stream_wrapper_log_error(wrapper, options, "%s", error);
346 php_stream_wrapper_log_error(wrapper, options, "phar file \"%s\" is unknown", resource->host);
411 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, cons argument
543 phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) 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) /* {{{ */ argument
70 php_stream_wrapper_log_error(wrapper, options, "phar error: open mode append not supported");
77 php_stream_wrapper_log_error(wrapper, options, "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, "phar error: invalid url or non-existent phar \"%s\"", filename);
111 php_stream_wrapper_log_error(wrapper, options, "phar error: write operations disabled by the php.ini setting phar.readonly");
120 php_stream_wrapper_log_error(wrapper, options, "%s", error);
131 php_stream_wrapper_log_error(wrapper, options, "%s", error);
143 php_stream_wrapper_log_error(wrapper, options, "%s", error);
158 static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, cons argument
569 phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context) argument
678 phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) argument
752 phar_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context) argument
[all...]
/PHP_TRUNK/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) {
519 /* Check for stream wrapper */
524 /* .:// or ..:// is not a stream wrapper */
553 wrapper = php_stream_locate_url_wrapper(trypath, &actual_path, STREAM_OPEN_FOR_INCLUDE);
554 if (!wrapper) {
556 } else if (wrapper != &php_plain_files_wrapper) {
557 if (wrapper->wops->url_stat) {
560 if (SUCCESS == wrapper
[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);
143 int (*url_stat)(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context);
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 *context);
154 int (*rename)(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context);
157 int (*stream_mkdir)(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context);
158 int (*stream_rmdir)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context);
160 int (*stream_metadata)(php_stream_wrapper *wrapper, cons
196 php_stream_wrapper *wrapper; /* which wrapper was used to open the stream */ member in struct:_php_stream
[all...]
/PHP_TRUNK/ext/dom/
H A Dphp_dom.c973 dom_object *wrapper; local
977 wrapper = php_dom_object_get_data(node);
979 if (wrapper != NULL ) {
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c662 php_stream_wrapper *wrapper; local
670 wrapper = php_stream_locate_url_wrapper(filename, NULL, STREAM_LOCATE_WRAPPERS_ONLY);
671 if (!wrapper) {
674 if (!wrapper->wops || !wrapper->wops->url_stat) {
682 ret = wrapper->wops->url_stat(wrapper, (char*)filename, PHP_STREAM_URL_STAT_QUIET, &stream_statbuf, NULL);
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c261 php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper, argument
348 "zip wrapper",

Completed in 37 milliseconds