From 48ff2b24450ca84a3e1e766991d897edac19603a Mon Sep 17 00:00:00 2001 From: Nobuaki Sukegawa Date: Fri, 19 Feb 2016 01:03:24 +0900 Subject: [PATCH] THRIFT-3647 Fix php extension build warnings --- lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 cf6791e66b2..65cfb1616cd 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;