Edit report at https://bugs.php.net/bug.php?id=55779&edit=1

 ID:                 55779
 User updated by:    hessemanj2100 at gmail dot com
 Reported by:        hessemanj2100 at gmail dot com
 Summary:            VS2008 Professional won't compile PHP but VC++ 2008
                     Express will
-Status:             Feedback
+Status:             Closed
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Windows 7 64-bit
 PHP Version:        5.3.8
 Assigned To:        pajoye
 Block user comment: N
 Private report:     N

 New Comment:

Let's close this thing for good!

According to the pre-compiled PHP build configure command, it does indeed 
include the --disable-static-analyze. Also, after looking at the Visual Studio 
wiki article, both the express and professional editions do not include static 
analysis. With that in mind, make sure to document that 
--disable-static-analyze 
must be disabled. Pajoye must be using a version with code analysis support. 
Make sure to document this in the windows build instructions. I spent far too 
much time trying to figure this problem out. Thanks!

Visual Studio Wiki Article (scroll down to "editions feature grid")
http://en.wikipedia.org/wiki/Microsoft_Visual_Studio

So the rule of thumb from now on is to include the --disable-static-analyze 
flag 
in the configure command. However, VS Premium and Ultimate shouldn't need to 
include that flag because they support static analysis.


Previous Comments:
------------------------------------------------------------------------
[2011-09-25 18:41:00] paj...@php.net

> feeedback again

------------------------------------------------------------------------
[2011-09-25 18:37:39] paj...@php.net

ok, that's my last attempt.

Please try using:

configure --enable-snapshot-build --disable-zts --disable-static-analyze

------------------------------------------------------------------------
[2011-09-25 18:19:49] hessemanj2100 at gmail dot com

I am reopening the bug report because the problem was apparently not fixed. 
After building PHP with "configure --disable-zts --enable-one-shot" and then 
rebuilding PHP with "configure --disable-zts --enable-snapshot-build" without 
issuing the command "buildconf", PHP compiled successfully. But on the 
phpinfo() 
page it shows the configure command as the original "configure --disable-zts --
enable-one-shot." It's weird but that is the only way I was able to compile 
PHP. 
Disabling the static analyzer by issuing the flag --disable-static-analyze 
(without the r at the end) did allow me to compile PHP without having the 
recompile it. I shouldn't need to issue the --disable-static-analyze flag to 
compile PHP. It should compile without it, but that is a mystery still to be 
solved. I hope someone who has experienced this problem before can help me 
solve 
it. Thanks for any help.

------------------------------------------------------------------------
[2011-09-25 17:56:16] paj...@php.net

g:\php-sdk\php54\vc9\x86\php54>configure --help | find "analy"
  --enable-static-analyze       Enable the VC compiler static analyze


g:\php-sdk\php53\vc9\x86\php53>configure --help | find "analy"
  --enable-static-analyze       Enable the VC compiler static analyze

------------------------------------------------------------------------
[2011-09-25 17:51:59] hessemanj2100 at gmail dot com

Problem solved by putting the --disable-zts flag first in the configure command.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=55779


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55779&edit=1

Reply via email to