add new files
[php-ancillary.git] / php-ancillary.c
index 8c43397..b00eb20 100644 (file)
@@ -107,11 +107,11 @@ PHP_FUNCTION(ancillary_getstream)
         }
     }
     shutdown(fd_out[1], SHUT_RDWR);
-
+    close(fd_out[1]);
     ZVAL_STRING(zheaders, headers, 1);
     free(headers);
 
-    {
+    if (0 == 1) {
         int fh;
 
         if ((fh = open("/tmp/out_php-anc.txt", O_WRONLY | O_CREAT | O_APPEND)) > -1) {