mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
fe2badf64e
commit
b10b24d50c
12 changed files with 298 additions and 145 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue