diff options
author | Zeev Suraski <zeev@php.net> | 1999-07-31 18:57:41 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-07-31 18:57:41 +0000 |
commit | afeb7704c9810f4eae562c7883302d1a62bff453 (patch) | |
tree | c9ff6345ecda11eab4327a380f90c8e0dd852829 | |
parent | 01c2701a0fa5dbb2480344ae5d7d3e58dc23922b (diff) | |
download | php-git-afeb7704c9810f4eae562c7883302d1a62bff453.tar.gz |
Fix problem with include/require of URLs
-rw-r--r-- | main/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c index b0adfc4eba..64452ab90e 100644 --- a/main/main.c +++ b/main/main.c @@ -539,8 +539,13 @@ PHP_FUNCTION(set_time_limit) static FILE *php_fopen_wrapper_for_zend(const char *filename) { int issock=0, socketd=0; - - FILE *retval=php3_fopen_wrapper((char *) filename, "r", USE_PATH|IGNORE_URL_WIN, &issock, &socketd); + int old_chunk_size; + FILE *retval; + + old_chunk_size = _php3_sock_set_def_chunk_size(1); + retval=php3_fopen_wrapper((char *) filename, "r", USE_PATH|IGNORE_URL_WIN, &issock, &socketd); + _php3_sock_set_def_chunk_size(old_chunk_size); + if (issock) { retval = fdopen(socketd, "r"); } |