Re: RC1 and Windows
| From: | rubys at us dot ibm dot com | Date: | Mon, 27 Mar 2000 11:57:05 +0000 |
| Subject: | Re: RC1 and Windows | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17281@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
>What does the /MDd do?
From cl -?:
/MD link with MSVCRT.LIB
/MDd link with MSVCRTD.LIB debug lib
MSVCRT is the Microsoft VisualC++ Runtime.
If you link with both, each will attempt to maintain their own heap, file
handles, and the like. In this case, the problem manifests itself in the
following logic (from fopen-wrappers.c):
fp = fopen(fn, "r");
if (0 > fstat(fileno(fp))
What happens if that the file is opened successfully, but the fileno is not
found, so fstat returns a -1 and PHP refuses to open it as it assumes that
it is not a "regular file".
- Sam Ruby