[xdebug-dev] xdebug xdebug/usefulstuff.c - Let's see if this makes it work on windows again where there is no

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 5 Sep 2006 16:56:41 +0200

Date: Tue Sep 5 16:56:41 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Let's see if this makes it work on windows again where there is no
  flock and stuff.

Modified files:
           xdebug/usefulstuff.c (version: 1.31)

[FILE: /xdebug/usefulstuff.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- xdebug/usefulstuff.c:1.30 Tue Sep 05 10:10:04 2006 GMT
+++ xdebug/usefulstuff.c Tue Sep 05 12:56:41 2006 GMT
@@ -372,6 +372,7 @@
         return ~crc;
 }
 
+#ifdef PHP_WIN32
 static FILE *xdebug_open_file(char *fname, char *mode, char *extension, char **new_fname)
 {
         FILE *fh;
@@ -451,3 +452,17 @@
         }
         return fh;
 }
+#else
+FILE *xdebug_fopen(char *fname, char *mode, char *extension, char **new_fname)
+{
+ char *tmp_fname;
+
+ if (extension) {
+ tmp_fname = xdebug_sprintf("%s.%s", fname, extension);
+ } else {
+ tmp_fname = xdebug_sprintf("%s", fname);
+ }
+ *new_fname = tmp_fname;
+ return fopen(tmp_fname, mode);
+}
+#endif
Received on Tue Sep 05 2006 - 16:56:47 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST