]> granicus.if.org Git - php/commitdiff
Fix problem with include/require of URLs
authorZeev Suraski <zeev@php.net>
Sat, 31 Jul 1999 18:57:41 +0000 (18:57 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 31 Jul 1999 18:57:41 +0000 (18:57 +0000)
main/main.c

index b0adfc4eba1db985309453460e3bec3dadcfec37..64452ab90e1a1c9bde3de8c800e46ea0e14f9caf 100644 (file)
@@ -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");
        }