Always initialize wrappers, regardless of PG(allow_url_fopen).

Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
This commit is contained in:
Wez Furlong 2002-04-16 22:14:27 +00:00
parent fe2badf64e
commit b10b24d50c
12 changed files with 298 additions and 145 deletions

View file

@ -171,10 +171,6 @@ typedef unsigned int socklen_t;
char *strerror(int);
#endif
#include "php_streams.h"
#include "php_memory_streams.h"
#include "fopen_wrappers.h"
#if (REGEX == 1 || REGEX == 0) && !defined(NO_REGEX_EXTRA_H)
#include "regex/regex_extra.h"
#endif
@ -221,6 +217,11 @@ char *strerror(int);
# endif
#endif
#include "php_streams.h"
#include "php_memory_streams.h"
#include "fopen_wrappers.h"
/* global variables */
extern pval *data;
#if !defined(PHP_WIN32)