summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-03-29 16:18:04 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-03-29 16:18:04 +0000
commitdb2de468e1145c51637386a6f0e1c9ab7c8079f9 (patch)
treef9bf9606d4c18fbd67868694e24e3d9e57b24ea4
parent8e8029f23dd9b02b081b852d0f68d6e353554aad (diff)
downloadphp-git-db2de468e1145c51637386a6f0e1c9ab7c8079f9.tar.gz
Fixed too optimized part
-rw-r--r--sapi/cgi/cgi_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 7ba8365699..25f664dde3 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -355,9 +355,11 @@ static int sapi_cgi_read_post(char *buffer, uint count_bytes TSRMLS_DC)
tmp_read_bytes = FCGX_GetStr( pos, count_bytes-read_bytes, request->in );
pos += tmp_read_bytes;
} else {
-#endif
tmp_read_bytes = read(0, buffer+read_bytes, count_bytes-read_bytes);
}
+#else
+ tmp_read_bytes = read(0, buffer+read_bytes, count_bytes-read_bytes);
+#endif
if (tmp_read_bytes<=0) {
break;