You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ns...@apache.org on 2016/02/19 16:46:32 UTC

[6/6] thrift git commit: THRIFT-3647 Fix php extension build warnings Client: PHP Patch: Nobuaki Sukegawa

THRIFT-3647 Fix php extension build warnings
Client: PHP
Patch: Nobuaki Sukegawa

This closes #878


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/37a12227
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/37a12227
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/37a12227

Branch: refs/heads/master
Commit: 37a122271f6036d1f2151cdb02201a0114c31df7
Parents: 7efa4fb
Author: Nobuaki Sukegawa <ns...@apache.org>
Authored: Fri Feb 19 01:03:24 2016 +0900
Committer: Nobuaki Sukegawa <ns...@apache.org>
Committed: Sat Feb 20 00:45:35 2016 +0900

----------------------------------------------------------------------
 lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/37a12227/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
----------------------------------------------------------------------
diff --git a/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp b/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
index cf6791e..65cfb16 100644
--- a/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
+++ b/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
@@ -394,7 +394,7 @@ void protocol_writeMessageBegin(zval *transport, const char* method_name, int32_
 
 
 // Create a PHP object given a typename and call the ctor, optionally passing up to 2 arguments
-void createObject(char* obj_typename, zval* return_value, int nargs = 0, zval* arg1 = NULL, zval* arg2 = NULL) {
+void createObject(const char* obj_typename, zval* return_value, int nargs = 0, zval* arg1 = NULL, zval* arg2 = NULL) {
   TSRMLS_FETCH();
   size_t obj_typename_len = strlen(obj_typename);
   zend_class_entry* ce = zend_fetch_class(obj_typename, obj_typename_len, ZEND_FETCH_CLASS_DEFAULT TSRMLS_CC);
@@ -410,7 +410,7 @@ void createObject(char* obj_typename, zval* return_value, int nargs = 0, zval* a
   zval_ptr_dtor(&ctor_rv);
 }
 
-void throw_tprotocolexception(char* what, long errorcode) {
+void throw_tprotocolexception(const char* what, long errorcode) {
   TSRMLS_FETCH();
 
   zval *zwhat, *zerrorcode;