Re: [PHP-DEV] RC1 and Windows From: rubys <email protected>
Date: 03/27/00

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>