Bug #13519 Updated: Filename "time.h" conflict in VS.NET
| From: | dbeu@php.net | Date: | Tue, 02 Oct 2001 19:09:24 +0000 |
| Subject: | Bug #13519 Updated: Filename "time.h" conflict in VS.NET | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67108@lists.php.net to get a copy of this message | ||
ID: 13519
Updated by: dbeu
Reported By: blank3@mac.com
Old Status: Open
Status: Suspended
Bug Type: Compile Failure
Operating System: Windows 2000 SP2
PHP Version: 4.0.6
New Comment:
again vs.net is not yet supported.
actually php's time.h includes the system time.h so i don't know what the change is going
to resolve...
maybe something's messed with your include paths.
Previous Comments:
------------------------------------------------------------------------
[2001-10-02 14:52:32] blank3@mac.com
Whoops! There are a _lot_ more than just those two files that require "time.h" to be
changed to "_time.h". Lousy non-regex search :)
------------------------------------------------------------------------
[2001-10-02 14:46:27] blank3@mac.com
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 this bug report at http://bugs.php.net/?id=13519&edit=1