CVS update: php3
| From: | sas | Date: | Fri, 18 Jun 1999 13:04:05 +0000 |
| Subject: | CVS update: php3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7074@lists.php.net to get a copy of this message | ||
Date: Friday June 18, 1999 @ 9:04
Author: sas
Update of /repository/php3
In directory php:/tmp/cvs-serv24799
Modified Files:
language-scanner.lex
Log Message:
fix include()/require() for URLs
Index: php3/language-scanner.lex
diff -u php3/language-scanner.lex:1.179 php3/language-scanner.lex:1.180
--- php3/language-scanner.lex:1.179 Fri Jan 1 12:58:50 1999
+++ php3/language-scanner.lex Fri Jun 18 09:04:04 1999
@@ -160,7 +160,8 @@
YY_BUFFER_STATE buffer_state = YY_CURRENT_BUFFER;
PHPLexState lex_state;
char *filename;
- int issock=0, socketd=0;
+ int issock=0, socketd=0;
+ int oldcs;
TLS_VARS;
convert_to_string(file);
@@ -178,10 +179,12 @@
stack_push(&GLOBAL(input_source_stack),&lex_state,sizeof(PHPLexState));
+ oldcs = _php3_sock_set_def_chunk_size(1);
tmp = php3_fopen_wrapper(file->value.str.val, "r", USE_PATH|IGNORE_URL_WIN,
&issock, &socketd);
if(issock) {
tmp = fdopen(socketd,"r");
}
+ _php3_sock_set_def_chunk_size(oldcs);
if (!tmp) {
php3_error(E_ERROR,"Failed opening required '%s'",
php3_strip_url_passwd(file->value.str.val));
@@ -260,7 +263,8 @@
YY_BUFFER_STATE buffer_state = YY_CURRENT_BUFFER;
FILE *tmp;
char *filename;
- int issock=0, socketd=0;;
+ int issock=0, socketd=0;
+ int oldcs;
convert_to_string(file);
@@ -274,10 +278,12 @@
GLOBAL(in_eval) = 0;
stack_push(&GLOBAL(input_source_stack),&lex_state,sizeof(PHPLexState));
+ oldcs = _php3_sock_set_def_chunk_size(1);
tmp = php3_fopen_wrapper(file->value.str.val, "r", USE_PATH|IGNORE_URL_WIN,
&issock, &socketd);
if(issock) {
tmp = fdopen(socketd,"r");
}
+ _php3_sock_set_def_chunk_size(oldcs);
if (!tmp) {
php3_error(E_WARNING,"Failed opening '%s' for inclusion",
php3_strip_url_passwd(file->value.str.val));