summaryrefslogtreecommitdiffstats
path: root/pdo.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-07-21 06:41:12 +0200
committerRemi Collet <remi@remirepo.net>2018-07-21 06:41:12 +0200
commit53c5793ad42dae1f690bd3530c0b8d58020b4141 (patch)
treeb9c80cba468a73c2068187b55d54d1c8921ccc84 /pdo.patch
parentd6f6c00113254197da6c8a00ddd576160062b958 (diff)
v5.3.0v5.3
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;