Problem with static code analysis.
[email protected] (Richard Quadling)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Hi.
As someone who likes to turn on every bell and whistle, I turned on
the static code analysis option recently added. Just to see what it
was going to do.
I'm running MS VC++ 2008 SP1 Express Edition with the 6.1 SDK.
I'm running on a Windows Server 2003 R2 Standard Edition SP2 - Version
5.2 R2 (Build 3790.srv03_sp2_gdr.100216-1301 : Service Pack 2)
And I had also turned on all the compiler and linker warnings. Just for fun.
This is the output I get ...
[BIG SNIP]
TSRM\tsrm_virtual_cwd.c(1250) : warning C4242: '=' : conversion from
'int' to 'char', possible loss of data
TSRM\tsrm_virtual_cwd.c(1372) : warning C4127: conditional expression
is constant
TSRM\tsrm_virtual_cwd.c(1745) : warning C4100: 'mode' : unreferenced
formal parameter
C:\Program Files\Microsoft Visual Studio 9.0\VC\Include\tchar.h(1659)
: fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'msc1ast.cpp', line 1411)
To work around this problem, try simplifying or changing the program
near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Internal Compiler Error in C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin\cl.exe. You will be prompted to send an error report to
Microsoft later.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin\cl.exe"' : return code '0x1'
Stop.
This is the code at 1745 of TSRM\tsrm_virtual_cwd.c ...
CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
and this is the code at 1659 of tchar.h ...
_Check_return_ __inline int _tcsnccmp(_In_ _CPC _s1,_In_ _CPC _s2,_In_
size_t _n) {return _mbsncmp((_CPUC)_s1,(_CPUC)_s2,_n);}
__inline int _tcsncmp(_In_ _CPC _s1,_In_ _CPC _s2,_In_ size_t _n)
{return _mbsnbcmp((_CPUC)_s1,(_CPUC)_s2,_n);}
There is no msc1ast.cpp file on my system before or after an nmake as
far as I can see.
I've no idea on a fix, sorry. So this is just a potential headsup. If
others get this working on the same compiler/sdk/os as me, then it's
just me and I'm sorry for the noise.
Regards,
Richard.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY