From 73cd9c80c5c2d5044a8fe940395dd2a3334b876c Mon Sep 17 00:00:00 2001 From: Hadis Kakanejadi Fard Date: Fri, 13 Jan 2017 13:22:37 -0800 Subject: [PATCH] moved templates to driver folder --- source/pdo_sqlsrv/CREDITS | 2 +- source/pdo_sqlsrv/template.rc | 83 +++++++++++++++++++++++++++ source/sqlsrv/CREDITS | 2 +- source/{shared => sqlsrv}/template.rc | 2 +- 4 files changed, 86 insertions(+), 3 deletions(-) create mode 100644 source/pdo_sqlsrv/template.rc rename source/{shared => sqlsrv}/template.rc (99%) diff --git a/source/pdo_sqlsrv/CREDITS b/source/pdo_sqlsrv/CREDITS index 3f8712e8..b0c7112c 100644 --- a/source/pdo_sqlsrv/CREDITS +++ b/source/pdo_sqlsrv/CREDITS @@ -1 +1 @@ -Microsoft Drivers 4.1.0 for PHP for SQL Server (PDO driver) +Microsoft Drivers for PHP for SQL Server (PDO driver) diff --git a/source/pdo_sqlsrv/template.rc b/source/pdo_sqlsrv/template.rc new file mode 100644 index 00000000..2a2acf0e --- /dev/null +++ b/source/pdo_sqlsrv/template.rc @@ -0,0 +1,83 @@ +//---------------------------------------------------------------------------------------------------------------------------------- +// File: template.rc +// +// Contents: Version resource +// +// Microsoft Drivers 4.0 for PHP for SQL Server +// Copyright(c) Microsoft Corporation +// All rights reserved. +// MIT License +// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""), +// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and / or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions : +// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +// IN THE SOFTWARE. +//--------------------------------------------------------------------------------------------------------------------------------- + +#ifdef APSTUDIO_INVOKED +# error dont edit with MSVC +#endif + +#include "winresrc.h" +#include "main/php_version.h" +#include "shared/version.h" + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) + +#ifndef THANKS_GUYS +# define THANKS_GUYS "" +#endif + +#ifdef WANT_LOGO +0 ICON win32\build\php.ico +#endif + +#define XSTRVER4(maj, min, rel, build) #maj "." #min "." #rel "." #build +#define XSTRVER3(maj, min, rel) #maj "." #min "." #rel +#define STRVER4(maj, min, rel, build) XSTRVER4(maj, min, rel, build) +#define STRVER3(maj, min, rel) XSTRVER3(maj, min, rel) + +//Version +VS_VERSION_INFO VERSIONINFO + FILEVERSION SQLVERSION_MAJOR,SQLVERSION_MINOR, SQLVERSION_RELEASE, SQLVERSION_BUILD + PRODUCTVERSION SQLVERSION_MAJOR,SQLVERSION_MINOR,SQLVERSION_RELEASE,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL + FILESUBTYPE VFT2_UNKNOWN +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "Comments", "This product includes PHP software that is freely available from http://www.php.net/software/. Copyright © 2001-2016 The PHP Group. All rights reserved.\0" + VALUE "CompanyName", "Microsoft Corp.\0" + VALUE "FileDescription", "Microsoft Drivers for PHP for SQL Server (PDO Driver)\0" + VALUE "FileVersion", STRVER4(SQLVERSION_MAJOR,SQLVERSION_MINOR, SQLVERSION_RELEASE, SQLVERSION_BUILD) + VALUE "InternalName", FILE_NAME "\0" + VALUE "LegalCopyright", "Copyright Microsoft Corporation.\0" + VALUE "OriginalFilename", FILE_NAME "\0" + VALUE "ProductName", "Microsoft Drivers for PHP for SQL Server\0" + VALUE "ProductVersion", STRVER3(SQLVERSION_MAJOR,SQLVERSION_MINOR, SQLVERSION_RELEASE) + VALUE "URL", "http://www.microsoft.com\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#ifdef MC_INCLUDE +#include MC_INCLUDE +#endif + diff --git a/source/sqlsrv/CREDITS b/source/sqlsrv/CREDITS index 73961bd6..44211664 100644 --- a/source/sqlsrv/CREDITS +++ b/source/sqlsrv/CREDITS @@ -1 +1 @@ -Microsoft Drivers 4.1.0 for PHP for SQL Server +Microsoft Drivers for PHP for SQL Server diff --git a/source/shared/template.rc b/source/sqlsrv/template.rc similarity index 99% rename from source/shared/template.rc rename to source/sqlsrv/template.rc index fa9d72b7..edb5c1c7 100644 --- a/source/shared/template.rc +++ b/source/sqlsrv/template.rc @@ -23,7 +23,7 @@ #include "winresrc.h" #include "main/php_version.h" -#include "version.h" +#include "shared/version.h" LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252)