shane Sun Jan 14 16:57:16 2001 EDT
Modified files:
/php4/sapi/isapi/stresstest stresstest.cpp
Log:
check files open
Index: php4/sapi/isapi/stresstest/stresstest.cpp
diff -u php4/sapi/isapi/stresstest/stresstest.cpp:1.5
php4/sapi/isapi/stresstest/stresstest.cpp:1.6
--- php4/sapi/isapi/stresstest/stresstest.cpp:1.5 Sun Jan 14 16:56:23 2001
+++ php4/sapi/isapi/stresstest/stresstest.cpp Sun Jan 14 16:57:16 2001
@@ -218,7 +218,7 @@
char *en = _tempnam(temppath,"exp.");
FILE *ft = fopen(tn, "w+");
FILE *fe = fopen(en, "w+");
- if (fp) {
+ if (fp && ft && fe) {
while (fgets(line,sizeof(line)-1,fp)) {
if (line[0]=='-') {
if (_strnicmp(line, "--TEST--", 8)==0) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]