summaryrefslogtreecommitdiffstats
path: root/shared.patch
blob: 4090070c6b81348b1077cc4ce8e54cbe1449e020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/source/shared/core_sqlsrv.h b/source/shared/core_sqlsrv.h
index 39e53b1..2d6a357 100644
--- a/source/shared/core_sqlsrv.h
+++ b/source/shared/core_sqlsrv.h
@@ -2381,10 +2381,7 @@ namespace core {
 
     inline void sqlsrv_array_init( _Inout_ sqlsrv_context& ctx, _Out_ zval* new_array TSRMLS_DC) 
     {
-        int zr = ::array_init(new_array);
-        CHECK_ZEND_ERROR( zr, ctx, SQLSRV_ERROR_ZEND_HASH ) {
-            throw CoreException();
-        }
+        array_init(new_array);
     }
 
     inline void sqlsrv_php_stream_from_zval_no_verify( _Inout_ sqlsrv_context& ctx, _Outref_result_maybenull_ php_stream*& stream, _In_opt_ zval* stream_z TSRMLS_DC )
diff --git a/source/shared/core_util.cpp b/source/shared/core_util.cpp
index c537f76..1f6af42 100644
--- a/source/shared/core_util.cpp
+++ b/source/shared/core_util.cpp
@@ -353,10 +353,10 @@ void die( _In_opt_ const char* msg, ... )
     DWORD rc = FormatMessage( FORMAT_MESSAGE_FROM_STRING, msg, 0, 0, last_err_msg, sizeof( last_err_msg ), &format_args );
     va_end( format_args );
     if( rc == 0 ) {
-        php_error( E_ERROR, reinterpret_cast<const char*>( INTERNAL_FORMAT_ERROR ));
+        php_error( E_ERROR, "%s", reinterpret_cast<const char*>( INTERNAL_FORMAT_ERROR ));
     }
 
-    php_error( E_ERROR, last_err_msg );
+    php_error( E_ERROR, "%s", last_err_msg );
 }
 
 namespace {