#50888 [NEW]: Patch Request: Detection of Microsoft VS.NET 2008

[email protected] ("thomas dot worm at thomas-worm dot de") Sat, 30 Jan 2010 21:15:51 GMT
Newsgroups php.gtk.dev
Message-ID <[email protected]>
From:             thomas dot worm at thomas-worm dot de
Operating system: Windows
PHP version:      5.3.1
PHP Bug Type:     PHP-GTK related
Bug description:  Patch Request: Detection of Microsoft VS.NET 2008

Description:
------------
When you compile PHP-GTK with Microsoft VS.NET 2008 the compiler will 
not be detected properly.

This could be fixed with following patch:


diff -ruN php-gtk.orig/win32/config.w32.in php-gtk/win32/config.w32.in
--- php-gtk.orig/win32/config.w32.in	2010-01-16 19:02:31.074820100 
+0100
+++ php-gtk/win32/config.w32.in	2010-01-16 19:05:17.334329600 +0100
@@ -40,6 +40,9 @@
 	if (VCVERS == 14) {
 		msversion = "Microsoft VS.NET 2005";
 	}
+	if (VCVERS == 15) {
+		msversion = "Microsoft VS.NET 2008";
+	}
 	STDOUT.WriteLine("Detected compiler version:  " + msversion);
 
 } else {

Reproduce code:
---------------
cscript /nologo configure.js

Expected result:
----------------
Detected compiler version: Microsoft VS.NET 2008

Actual result:
--------------
Detected compiler version:  unknown

-- 
Edit bug report at http://bugs.php.net/?id=50888&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=50888&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=50888&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=50888&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=50888&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50888&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=50888&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=50888&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=50888&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=50888&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=50888&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=50888&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=50888&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=50888&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=50888&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50888&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50888&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=50888&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=50888&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=50888&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=50888&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=50888&r=mysqlcfg