php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13519 Filename "time.h" conflict in VS.NET
Submitted: 2001-10-02 14:46 UTC Modified: 2002-06-18 01:00 UTC
From: blank3 at mac dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.0.6 OS: Windows 2000 SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: blank3 at mac dot com
New email:
PHP Version: OS:

 

 [2001-10-02 14:46 UTC] blank3 at mac dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-02 14:52 UTC] blank3 at mac dot 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 15:09 UTC] dbeu@php.net
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.
 [2002-05-17 12:29 UTC] mfischer@php.net
I think people already reported that it works with VS.NET, can you give it a try with latest sources?
 [2002-05-17 14:05 UTC] faisal at nasim dot org
php 4.2.1 compiles on VS.NET Beta 2 without a glitch... just had to change all the project entries to same config (I used Release_TS).
 [2002-06-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC