summaryrefslogtreecommitdiffstats
path: root/pdo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pdo.patch')
-rw-r--r--pdo.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pdo.patch b/pdo.patch
new file mode 100644
index 0000000..d62bb22
--- /dev/null
+++ b/pdo.patch
@@ -0,0 +1,13 @@
+diff --git a/source/pdo_sqlsrv/pdo_util.cpp b/source/pdo_sqlsrv/pdo_util.cpp
+index 343537d..b0083e4 100644
+--- a/source/pdo_sqlsrv/pdo_util.cpp
++++ b/source/pdo_sqlsrv/pdo_util.cpp
+@@ -512,7 +512,7 @@ bool pdo_sqlsrv_handle_dbh_error( _Inout_ sqlsrv_context& ctx, _In_opt_ unsigned
+ msg = static_cast<char*>( sqlsrv_malloc( msg_len ) );
+ core_sqlsrv_format_message( msg, static_cast<unsigned int>( msg_len ), WARNING_TEMPLATE, error->sqlstate, error->native_code,
+ error->native_message );
+- php_error( E_WARNING, msg );
++ php_error( E_WARNING, "%s", msg );
+ }
+ ctx.set_last_error( error );
+ break;