Bug #13519: Filename "time.h" conflict in VS.NET

From: Date: Tue, 02 Oct 2001 18:46:28 +0000
Subject: Bug #13519: Filename "time.h" conflict in VS.NET
Groups: php.dev 
Request: Send a blank email to php-dev+get-67101@lists.php.net to get a copy of this message
From: blank3@mac.com Operating system: Windows 2000 SP2 PHP version: 4.0.6 PHP Bug Type: Compile Failure Bug description: Filename "time.h" conflict in VS.NET I _believe_ this issue only applies to VS.NET, but have not tested it in earlier versions. Using Visual Studio 7.0 build 9254 (VS.NET Beta 2), the build of "time.c" and "sendmail.c" fail because header <time.h> fails to be included. Checking the sources, it is absolutely impossible for the "#include <time.h>" statement not to be compiled, but the statement appeared to be ignored anyway. When the filename of "time.h" (in /win32) is changed to "_time.h" and the approriate #include lines in "time.c" and "sendmail.c" are modified, compilation succeeds normally. A little testing showed that VS.NET was including "time.h" (part of php4) instead of <time.h> (part of msvcrt.dll). Once the filename conflict was resolved, the correct file was included. -- Edit bug report at: http://bugs.php.net/?id=13519&edit=1

« previous php.dev (#67101) next »