You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed issue with SQLSRV_ATTR_FETCHES_NUMERIC_TYPE when column return type is set on statement ([issue #173](https://github.com/Microsoft/msphpsql/issues/173)).
15
+
16
+
17
+
### Changed
18
+
- Code structure is updated to facilitate the development; shared codes between both drivers are moved to "shared" folder to avoid code duplication issues in development. To build the driver from source:
19
+
- if you are building the driver from source using PHP source, copy the "shared" folder as a subfolder to both the sqlsrv and pdo_sqlsrv folders.
20
+
21
+
## Windows 4.1.4 - 2016-10-25
22
+
Windows drivers compiled with PHP 7.0.12 and 7.1 are available. Here is the list of updates:
23
+
24
+
### Changed
25
+
- Drivers versioning has been redesigned as Major#.Minor#.Release#.Build#. Build number is specific to binaries and it doesn't match with the number on the source.
26
+
27
+
### Fixed
28
+
- Fixed the issue with duplicate warning messages in PDO_SQLSRV drivers when error mode is set to PDO::ERRMODE_WARNING.
29
+
30
+
## Windows 4.1.3 - 2016-10-04
31
+
Updated Windows drivers (4.1.3) compiled with PHP 7.0.11 and 7.1.0RC3 are available. Here is the list of updates:
32
+
33
+
### Fixed
34
+
- Fixed [issue #139](https://github.com/Microsoft/msphpsql/issues/139) : sqlsrv_fetch_object calls custom class constructor in static context and outputs an error.
35
+
36
+
## Windows 4.1.2 - 2016-09-09
37
+
Updated Windows drivers (4.1.2) compiled with PHP 7.0.10 are available. Here is the list of updates:
38
+
39
+
### Added
40
+
- Added following integer SQL Types constants for cases which function-like SQL types constants cannot be used e.g. type comparison:
41
+
42
+
SQLSRV constant | Typical SQL Server data type | SQL type identifier
Note: These constants should be used in type comparison operations (refer to issue [#87](https://github.com/Microsoft/msphpsql/issues/87) and [#99](https://github.com/Microsoft/msphpsql/issues/99) ), and don't replace the function like constants with similar syntax. For binding parameters you should use the function-like constants, otherwise you'll get an error.
54
+
55
+
### Fixed
56
+
- Fixed [issue #119](https://github.com/Microsoft/msphpsql/issues/119) (modifying class name in sqlsrv_fetch_object).
57
+
58
+
59
+
## Windows 4.1.1 - 2016-08-22
60
+
Updated Windows drivers(4.1.1) compiled with PHP 7.0.9 are available and include a couple of bug fixes:
61
+
62
+
### Fixed
63
+
- Fixed issue with storing integers in varchar field.
64
+
- Fixed issue with invalid connection handler if one connection fails.
65
+
- Fixed crash when emulate prepare is on.
66
+
67
+
68
+
## Windows 4.1.0 - 2016-07-28
69
+
70
+
### Fixed
71
+
-`SQLSRV_ATTR_FETCHES_NUMERIC_TYPE` connection attribute flag is added to PDO_SQLSRV driver to handle numeric fetches from columns with numeric Sql types (only bit, integer, smallint, tinyint, float and real). This flag can be turned on by setting its value in `PDO::setAttribute` to `true`, For example,
If `SQLSRV_ATTR_FETCHES_NUMERIC_TYPE` is set to `true` the results from an integer column will be represented as an `int`, likewise, Sql types float and real will be represented as `float`.
74
+
Note for exceptions:
75
+
- When connection option flag `ATTR_STRINGIFY_FETCHES` is on, even when `SQLSRV_ATTR_FETCHES_NUMERIC_TYPE` is on, the return value will still be string.
76
+
- When the returned PDO type in bind column is `PDO_PARAM_INT`, the return value from a integer column will be int even if `SQLSRV_ATTR_FETCHES_NUMERIC_TYPE` is off.
77
+
- Fixed float truncation when using buffered query.
78
+
- Fixed handling of Unicode strings and binary when emulate prepare is on in `PDOStatement::bindParam`. To bind a unicode string, `PDO::SQLSRV_ENCODING_UTF8` should be set using `$driverOption`, and to bind a string to column of Sql type binary, `PDO::SQLSRV_ENCODING_BINARY` should be set.
79
+
- Fixed string truncation in bind output parameters when the size is not set and the length of initialized variable is less than the output.
80
+
- Fixed bind string parameters as bidirectional parameters (`PDO::PARAM_INPUT_OUTPUT `) in PDO_SQLSRV driver. Note for output or bidirectional parameters, `PDOStatement::closeCursor` should be called to get the output value.
Copy file name to clipboardExpand all lines: README.md
+34-51Lines changed: 34 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,62 +6,32 @@ The Microsoft Drivers for PHP for SQL Server are PHP extensions that allow for t
6
6
7
7
This release contains the SQLSRV and PDO_SQLSRV drivers for PHP 7 with improvements on both drivers and some limitations (see Limitations below for details). Upcoming release(s) will contain more functionality, bug fixes, and more (see Plans below for more details).
8
8
9
-
The Microsoft Drivers for PHP for SQL Server Team
9
+
SQL Server Team
10
+
###Status of Most Recent Builds
11
+
| AppVeyor (Windows) |Travis CI (Linux) | Coverage Status
*[**Ubuntu + SQL Server + PHP 7**](https://www.microsoft.com/en-us/sql-server/developer-get-started/php-ubuntu)
14
25
*[**RedHat + SQL Server + PHP 7**](https://www.microsoft.com/en-us/sql-server/developer-get-started/php-rhel)
15
26
*[**Windows + SQL Server + PHP 7**](https://www.microsoft.com/en-us/sql-server/developer-get-started/php-windows)
16
27
17
-
##Announcements
18
-
19
-
**October 25 , 2016** : Updated Windows drivers (4.1.4) compiled with PHP 7.0.12 and 7.1 are available. Here is the list of updates:
20
-
21
-
- Drivers versioning has been redesigned as Major#.Minor#.Release#.Build#. Build number is specific to binaries and it doesn't match with the number on the source.
22
-
- Fixed the issue with duplicate warning messages in PDO_SQLSRV drivers when error mode is set to PDO::ERRMODE_WARNING.
23
-
24
-
**October 4 , 2016** : Updated Windows drivers (4.1.3) compiled with PHP 7.0.11 and 7.1.0RC3 are available. Here is the list of updates:
25
-
26
-
- Fixed [issue #139](https://github.com/Microsoft/msphpsql/issues/139) : sqlsrv_fetch_object calls custom class constructor in static context and outputs an error.
27
-
28
-
**September 9, 2016** : Updated Windows drivers (4.1.2) compiled with PHP 7.0.10 are available. Here is the list of updates:
29
-
30
-
- Fixed [issue #119](https://github.com/Microsoft/msphpsql/issues/119) (modifying class name in sqlsrv_fetch_object).
31
-
- Added following integer SQL Types constants for cases which function-like SQL types constants cannot be used e.g. type comparison:
32
-
33
-
SQLSRV constant | Typical SQL Server data type | SQL type identifier
Note: These constants should be used in type comparison operations (refer to issue [#87](https://github.com/Microsoft/msphpsql/issues/87) and [#99](https://github.com/Microsoft/msphpsql/issues/99) ), and don't replace the function like constants with the similar syntax, for binding parameters you should use the function-like constants, otherwise you'll get an error.
45
28
29
+
##Announcements
46
30
47
-
**August 22, 2016** : Updated Windows drivers(4.1.1) compiled with PHP 7.0.9 are available and include a couple of bug fixes:
48
-
49
-
- Fixed issue with storing integers in varchar field.
50
-
- Fixed issue with invalid connection handler if one connection fails.
51
-
- Fixed crash when emulate prepare is on.
31
+
**December 19, 2016**: We are delighted announce that production release for PHP Linux Driver for SQL Server is available. PECL packages (4.0.8) are updated with the latest changes, and Linux binaries (4.0.8) compiled with PHP 7.0.14 are available for Ubuntu 15.04, Ubuntu 16.04, and RedHat 7.2. For complete list of changes please visit [CHANGELOG](https://github.com/Microsoft/msphpsql/blob/PHP-7.0-Linux/CHANGELOG.md) file.
52
32
53
-
**July 28, 2016** (4.1.0): Thanks to the community's input, this release expands drivers functionalities and also includes some bug fixes:
33
+
Please visit the [blog][blog] for more announcements.
54
34
55
-
-`SQLSRV_ATTR_FETCHES_NUMERIC_TYPE` connection attribute flag is added to PDO_SQLSRV driver to handle numeric fetches from columns with numeric Sql types (only bit, integer, smallint, tinyint, float and real). This flag can be turned on by setting its value in `PDO::setAttribute` to `true`, For example,
If `SQLSRV_ATTR_FETCHES_NUMERIC_TYPE` is set to `true` the results from an integer column will be represented as an `int`, likewise, Sql types float and real will be represented as `float`.
58
-
Note for exceptions:
59
-
- When connection option flag `ATTR_STRINGIFY_FETCHES` is on, even when `SQLSRV_ATTR_FETCHES_NUMERIC_TYPE` is on, the return value will still be string.
60
-
- When the returned PDO type in bind column is `PDO_PARAM_INT`, the return value from a integer column will be int even if `SQLSRV_ATTR_FETCHES_NUMERIC_TYPE` is off.
61
-
- Fixed float truncation when using buffered query.
62
-
- Fixed handling of Unicode strings and binary when emulate prepare is on in `PDOStatement::bindParam`. To bind a unicode string, `PDO::SQLSRV_ENCODING_UTF8` should be set using `$driverOption`, and to bind a string to column of Sql type binary, `PDO::SQLSRV_ENCODING_BINARY` should be set.
63
-
- Fixed string truncation in bind output parameters when the size is not set and the length of initialized variable is less than the output.
64
-
- Fixed bind string parameters as bidirectional parameters (`PDO::PARAM_INPUT_OUTPUT `) in PDO_SQLSRV driver. Note for output or bidirectional parameters, `PDOStatement::closeCursor` should be called to get the output value.
65
35
66
36
## Build
67
37
@@ -112,7 +82,6 @@ For samples, please see the sample folder. For setup instructions, see [here] [
112
82
113
83
## Known Issues
114
84
- User defined data types and SQL_VARIANT.
115
-
- Passing custom class constructor to sqlsrv_fetch_object reproduce an error([issue#139](https://github.com/Microsoft/msphpsql/issues/139)).
116
85
- Binary column binding with emulate prepare ([issue#140](https://github.com/Microsoft/msphpsql/issues/140) )
117
86
118
87
## Future Plans
@@ -126,6 +95,7 @@ We appreciate you taking the time to test the driver, provide feedback and repor
126
95
- Report each issue as a new issue (but check first if it's already been reported)
127
96
- Try to be detailed in your report. Useful information for good bug reports include:
128
97
* What you are seeing and what the expected behaviour is
98
+
* Can you connect to SQL Server via `sqlcmd`?
129
99
* Which driver: SQLSRV or PDO_SQLSRV?
130
100
* Environment details: e.g. PHP version, thread safe (TS) or non-thread safe (NTS), 32-bit &/or 64-bit?
131
101
* Table schema (for some issues the data types make a big difference!)
@@ -141,7 +111,7 @@ Thank you!
141
111
142
112
**Q:** What's next?
143
113
144
-
**A:** On Jan 29, 2016 we released an early technical preview for our PHP Driver and several since. We will continue to release frequently to improve the quality of our driver.
114
+
**A:** On July 20, 2016 we released the early technical preview for our PHP Driver. We will continue releasing frequent technical previews until we reach production quality.
145
115
146
116
**Q:** Is Microsoft taking pull requests for this project?
147
117
@@ -175,11 +145,24 @@ This project has adopted the Microsoft Open Source Code of Conduct. For more inf
0 commit comments