Update to version 3.2, license headers to MIT, 32bit PHP 5.6 compilation, Issue #40 fixed
This commit is contained in:
parent
96f1e649bc
commit
3a1ac6c021
21
LICENSE
21
LICENSE
|
@ -1,13 +1,14 @@
|
||||||
Copyright Microsoft Corporation
|
Copyright(c) 2015 Microsoft Corporation
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License"); you
|
MIT License
|
||||||
may not use this file except in compliance with the 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 :
|
||||||
|
|
||||||
You may obtain a copy of the License at:
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
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
|
||||||
implied. See the License for the specific language governing
|
IN THE SOFTWARE.
|
||||||
permissions and limitations under the License.
|
|
|
@ -69,8 +69,7 @@ version numbers in the supported PHP extension.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The Microsoft Drivers for PHP for SQL Server are licensed under the Apache
|
The Microsoft Drivers for PHP for SQL Server are licensed under the MIT license. See the LICENSE file for more details.
|
||||||
2.0 license. See the LICENSE file for more details.
|
|
||||||
|
|
||||||
[blog]: http://blogs.msdn.com/b/sqlphp/
|
[blog]: http://blogs.msdn.com/b/sqlphp/
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Microsoft Drivers 3.1.0 for PHP for SQL Server (PDO driver)
|
Microsoft Drivers 3.2.0 for PHP for SQL Server (PDO driver)
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Core routines that use connection handles shared between sqlsrv and pdo_sqlsrv
|
// Contents: Core routines that use connection handles shared between sqlsrv and pdo_sqlsrv
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: common initialization routines shared by PDO and sqlsrv
|
// Contents: common initialization routines shared by PDO and sqlsrv
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Result sets
|
// Contents: Result sets
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
|
|
@ -6,21 +6,19 @@
|
||||||
//
|
//
|
||||||
// Contents: Core routines and constants shared by the Microsoft Drivers for PHP for SQL Server
|
// Contents: Core routines and constants shared by the Microsoft Drivers for PHP for SQL Server
|
||||||
//
|
//
|
||||||
// Microsoft Drivers for PHP for SQL Server
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright(c) Microsoft Corporation
|
||||||
//
|
// All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// MIT License
|
||||||
// you may not use these files except in compliance with the 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,
|
||||||
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
//
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//*********************************************************************************************************************************
|
//*********************************************************************************************************************************
|
||||||
// Includes
|
// Includes
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Core routines that use statement handles shared between sqlsrv and pdo_sqlsrv
|
// Contents: Core routines that use statement handles shared between sqlsrv and pdo_sqlsrv
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
@ -703,15 +702,15 @@ void core_sqlsrv_execute( sqlsrv_stmt* stmt TSRMLS_DC, const char* sql, int sql_
|
||||||
r = core::SQLExecute( stmt TSRMLS_CC );
|
r = core::SQLExecute( stmt TSRMLS_CC );
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt->new_result_set( TSRMLS_C );
|
// if data is needed (streams were bound) and they should be sent at execute time, then do so now
|
||||||
stmt->executed = true;
|
|
||||||
|
|
||||||
// if data is needed (streams were bound) and they should be sent at execute time, then do so now
|
|
||||||
if( r == SQL_NEED_DATA && stmt->send_streams_at_exec ) {
|
if( r == SQL_NEED_DATA && stmt->send_streams_at_exec ) {
|
||||||
|
|
||||||
send_param_streams( stmt TSRMLS_CC );
|
send_param_streams( stmt TSRMLS_CC );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stmt->new_result_set( TSRMLS_C );
|
||||||
|
stmt->executed = true;
|
||||||
|
|
||||||
// if all the data has been sent and no data was returned then finalize the output parameters
|
// if all the data has been sent and no data was returned then finalize the output parameters
|
||||||
if( stmt->send_streams_at_exec && (r == SQL_NO_DATA || !core_sqlsrv_has_any_result( stmt TSRMLS_CC ))) {
|
if( stmt->send_streams_at_exec && (r == SQL_NO_DATA || !core_sqlsrv_has_any_result( stmt TSRMLS_CC ))) {
|
||||||
|
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Implementation of PHP streams for reading SQL Server data
|
// Contents: Implementation of PHP streams for reading SQL Server data
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
@ -201,9 +200,13 @@ php_stream_ops sqlsrv_stream_ops = {
|
||||||
// open a stream and return the sqlsrv_stream_ops function table as part of the
|
// open a stream and return the sqlsrv_stream_ops function table as part of the
|
||||||
// return value. There is only one valid way to open a stream, using sqlsrv_get_field on
|
// return value. There is only one valid way to open a stream, using sqlsrv_get_field on
|
||||||
// certain field types. A sqlsrv stream may only be opened in read mode.
|
// certain field types. A sqlsrv stream may only be opened in read mode.
|
||||||
|
#if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 6
|
||||||
|
static php_stream* sqlsrv_stream_opener( php_stream_wrapper* wrapper, __in const char*, __in const char* mode,
|
||||||
|
int options, __in char **, php_stream_context* STREAMS_DC TSRMLS_DC )
|
||||||
|
#else
|
||||||
static php_stream* sqlsrv_stream_opener( php_stream_wrapper* wrapper, __in char*, __in char* mode,
|
static php_stream* sqlsrv_stream_opener( php_stream_wrapper* wrapper, __in char*, __in char* mode,
|
||||||
int options, __in char **, php_stream_context* STREAMS_DC TSRMLS_DC )
|
int options, __in char **, php_stream_context* STREAMS_DC TSRMLS_DC )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
|
|
||||||
#if ZEND_DEBUG
|
#if ZEND_DEBUG
|
||||||
|
|
|
@ -5,19 +5,18 @@
|
||||||
//
|
//
|
||||||
// Comments: Mostly error handling and some type handling
|
// Comments: Mostly error handling and some type handling
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Implements the PDO object for PDO_SQLSRV
|
// Contents: Implements the PDO object for PDO_SQLSRV
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "pdo_sqlsrv.h"
|
#include "pdo_sqlsrv.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: initialization routines for PDO_SQLSRV
|
// Contents: initialization routines for PDO_SQLSRV
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "pdo_sqlsrv.h"
|
#include "pdo_sqlsrv.h"
|
||||||
|
|
|
@ -5,17 +5,18 @@
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Copyright Microsoft Corporation
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
// you may not use this file except in compliance with the License.
|
// Copyright(c) Microsoft Corporation
|
||||||
//
|
// All rights reserved.
|
||||||
// You may obtain a copy of the License at:
|
// MIT License
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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,
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// 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 :
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// See the License for the specific language governing permissions and
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// limitations under the License.
|
// 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.
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "pdo_sqlsrv.h"
|
#include "pdo_sqlsrv.h"
|
||||||
|
|
|
@ -6,21 +6,19 @@
|
||||||
//
|
//
|
||||||
// Contents: Declarations for the extension
|
// Contents: Declarations for the extension
|
||||||
//
|
//
|
||||||
// Microsoft Drivers for PHP for SQL Server
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright(c) Microsoft Corporation
|
||||||
//
|
// All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// MIT License
|
||||||
// you may not use these files except in compliance with the 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,
|
||||||
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
//
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Implements the PDOStatement object for the PDO_SQLSRV
|
// Contents: Implements the PDOStatement object for the PDO_SQLSRV
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "pdo_sqlsrv.h"
|
#include "pdo_sqlsrv.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Utility functions used by both connection or statement functions
|
// Contents: Utility functions used by both connection or statement functions
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "pdo_sqlsrv.h"
|
#include "pdo_sqlsrv.h"
|
||||||
|
|
|
@ -3,20 +3,19 @@
|
||||||
//
|
//
|
||||||
// Contents: Version resource
|
// Contents: Version resource
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
#ifdef APSTUDIO_INVOKED
|
||||||
# error dont edit with MSVC
|
# error dont edit with MSVC
|
||||||
|
|
|
@ -1,28 +1,25 @@
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
// File: version.h
|
// File: version.h
|
||||||
//
|
|
||||||
// Contents: Version number constants
|
// Contents: Version number constants
|
||||||
//
|
//
|
||||||
// Microsoft Drivers for PHP for SQL Server
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright(c) Microsoft Corporation
|
||||||
//
|
// All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// MIT License
|
||||||
// you may not use these files except in compliance with the 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.
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
#define VER_FILEVERSION_STR "3.2.0.0"
|
||||||
|
#define _FILEVERSION 3,2,0,0
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#define VER_FILEVERSION_STR "3.1.0.0"
|
|
||||||
#define _FILEVERSION 3,1,0,0
|
|
||||||
#define SQLVERSION_MAJOR 3
|
#define SQLVERSION_MAJOR 3
|
||||||
#define SQLVERSION_MINOR 1
|
#define SQLVERSION_MINOR 2
|
||||||
#define SQLVERSION_MMDD 0
|
#define SQLVERSION_MMDD 0
|
||||||
#define SQLVERSION_REVISION 0
|
#define SQLVERSION_REVISION 0
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Microsoft Drivers 3.1.0 for PHP for SQL Server (SQLSRV driver)
|
Microsoft Drivers 3.2.0 for PHP for SQL Server (SQLSRV driver)
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Routines that use connection handles
|
// Contents: Routines that use connection handles
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "php_sqlsrv.h"
|
#include "php_sqlsrv.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Core routines that use connection handles shared between sqlsrv and pdo_sqlsrv
|
// Contents: Core routines that use connection handles shared between sqlsrv and pdo_sqlsrv
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: common initialization routines shared by PDO and sqlsrv
|
// Contents: common initialization routines shared by PDO and sqlsrv
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Result sets
|
// Contents: Result sets
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
|
|
@ -6,21 +6,19 @@
|
||||||
//
|
//
|
||||||
// Contents: Core routines and constants shared by the Microsoft Drivers for PHP for SQL Server
|
// Contents: Core routines and constants shared by the Microsoft Drivers for PHP for SQL Server
|
||||||
//
|
//
|
||||||
// Microsoft Drivers for PHP for SQL Server
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright(c) Microsoft Corporation
|
||||||
//
|
// All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// MIT License
|
||||||
// you may not use these files except in compliance with the 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,
|
||||||
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
//
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//*********************************************************************************************************************************
|
//*********************************************************************************************************************************
|
||||||
// Includes
|
// Includes
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Core routines that use statement handles shared between sqlsrv and pdo_sqlsrv
|
// Contents: Core routines that use statement handles shared between sqlsrv and pdo_sqlsrv
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
@ -703,15 +702,15 @@ void core_sqlsrv_execute( sqlsrv_stmt* stmt TSRMLS_DC, const char* sql, int sql_
|
||||||
r = core::SQLExecute( stmt TSRMLS_CC );
|
r = core::SQLExecute( stmt TSRMLS_CC );
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt->new_result_set( TSRMLS_C );
|
// if data is needed (streams were bound) and they should be sent at execute time, then do so now
|
||||||
stmt->executed = true;
|
|
||||||
|
|
||||||
// if data is needed (streams were bound) and they should be sent at execute time, then do so now
|
|
||||||
if( r == SQL_NEED_DATA && stmt->send_streams_at_exec ) {
|
if( r == SQL_NEED_DATA && stmt->send_streams_at_exec ) {
|
||||||
|
|
||||||
send_param_streams( stmt TSRMLS_CC );
|
send_param_streams( stmt TSRMLS_CC );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stmt->new_result_set( TSRMLS_C );
|
||||||
|
stmt->executed = true;
|
||||||
|
|
||||||
// if all the data has been sent and no data was returned then finalize the output parameters
|
// if all the data has been sent and no data was returned then finalize the output parameters
|
||||||
if( stmt->send_streams_at_exec && (r == SQL_NO_DATA || !core_sqlsrv_has_any_result( stmt TSRMLS_CC ))) {
|
if( stmt->send_streams_at_exec && (r == SQL_NO_DATA || !core_sqlsrv_has_any_result( stmt TSRMLS_CC ))) {
|
||||||
|
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Implementation of PHP streams for reading SQL Server data
|
// Contents: Implementation of PHP streams for reading SQL Server data
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
@ -201,9 +200,13 @@ php_stream_ops sqlsrv_stream_ops = {
|
||||||
// open a stream and return the sqlsrv_stream_ops function table as part of the
|
// open a stream and return the sqlsrv_stream_ops function table as part of the
|
||||||
// return value. There is only one valid way to open a stream, using sqlsrv_get_field on
|
// return value. There is only one valid way to open a stream, using sqlsrv_get_field on
|
||||||
// certain field types. A sqlsrv stream may only be opened in read mode.
|
// certain field types. A sqlsrv stream may only be opened in read mode.
|
||||||
|
#if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 6
|
||||||
|
static php_stream* sqlsrv_stream_opener( php_stream_wrapper* wrapper, __in const char*, __in const char* mode,
|
||||||
|
int options, __in char **, php_stream_context* STREAMS_DC TSRMLS_DC )
|
||||||
|
#else
|
||||||
static php_stream* sqlsrv_stream_opener( php_stream_wrapper* wrapper, __in char*, __in char* mode,
|
static php_stream* sqlsrv_stream_opener( php_stream_wrapper* wrapper, __in char*, __in char* mode,
|
||||||
int options, __in char **, php_stream_context* STREAMS_DC TSRMLS_DC )
|
int options, __in char **, php_stream_context* STREAMS_DC TSRMLS_DC )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
|
|
||||||
#if ZEND_DEBUG
|
#if ZEND_DEBUG
|
||||||
|
|
|
@ -5,19 +5,18 @@
|
||||||
//
|
//
|
||||||
// Comments: Mostly error handling and some type handling
|
// Comments: Mostly error handling and some type handling
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
|
|
|
@ -2,19 +2,18 @@
|
||||||
// File: init.cpp
|
// File: init.cpp
|
||||||
// Contents: initialization routines for the extension
|
// Contents: initialization routines for the extension
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "php_sqlsrv.h"
|
#include "php_sqlsrv.h"
|
||||||
|
|
|
@ -8,21 +8,19 @@
|
||||||
//
|
//
|
||||||
// Comments: Also contains "internal" declarations shared across source files.
|
// Comments: Also contains "internal" declarations shared across source files.
|
||||||
//
|
//
|
||||||
// Microsoft Drivers for PHP for SQL Server
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright(c) Microsoft Corporation
|
||||||
//
|
// All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// MIT License
|
||||||
// you may not use these files except in compliance with the 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,
|
||||||
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
//
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "core_sqlsrv.h"
|
#include "core_sqlsrv.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
//
|
//
|
||||||
// Contents: Routines that use statement handles
|
// Contents: Routines that use statement handles
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// *** header files ***
|
// *** header files ***
|
||||||
|
|
|
@ -3,20 +3,19 @@
|
||||||
//
|
//
|
||||||
// Contents: Version resource
|
// Contents: Version resource
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
#ifdef APSTUDIO_INVOKED
|
||||||
# error dont edit with MSVC
|
# error dont edit with MSVC
|
||||||
|
|
|
@ -5,20 +5,19 @@
|
||||||
//
|
//
|
||||||
// Comments: Mostly error handling and some type handling
|
// Comments: Mostly error handling and some type handling
|
||||||
//
|
//
|
||||||
// Copyright Microsoft Corporation
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
//
|
// Copyright(c) Microsoft Corporation
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// All rights reserved.
|
||||||
// you may not use this file except in compliance with the License.
|
// MIT License
|
||||||
//
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""),
|
||||||
// You may obtain a copy of the License at:
|
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// 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.
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// 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
|
||||||
// See the License for the specific language governing permissions and
|
// IN THE SOFTWARE.
|
||||||
// limitations under the License.
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
//--------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "php_sqlsrv.h"
|
#include "php_sqlsrv.h"
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
// File: version.h
|
// File: version.h
|
||||||
//
|
|
||||||
// Contents: Version number constants
|
// Contents: Version number constants
|
||||||
//
|
//
|
||||||
// Microsoft Drivers for PHP for SQL Server
|
// Microsoft Drivers 3.2 for PHP for SQL Server
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright(c) Microsoft Corporation
|
||||||
//
|
// All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// MIT License
|
||||||
// you may not use these files except in compliance with the 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.
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
#define VER_FILEVERSION_STR "3.2.0.0"
|
||||||
|
#define _FILEVERSION 3,2,0,0
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#define VER_FILEVERSION_STR "3.1.0.0"
|
|
||||||
#define _FILEVERSION 3,1,0,0
|
|
||||||
#define SQLVERSION_MAJOR 3
|
#define SQLVERSION_MAJOR 3
|
||||||
#define SQLVERSION_MINOR 1
|
#define SQLVERSION_MINOR 2
|
||||||
#define SQLVERSION_MMDD 0
|
#define SQLVERSION_MMDD 0
|
||||||
#define SQLVERSION_REVISION 0
|
#define SQLVERSION_REVISION 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue