[ 
https://issues.apache.org/jira/browse/THRIFT-4271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16219228#comment-16219228
 ] 

Robert Lu commented on THRIFT-4271:
-----------------------------------

When you build thrift_prototcol php extension,

after run phpize, .configure

when run make,

you will get some warming:


{code}
In file included from 
/path/to/thrift/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:23:
In file included from 
/usr/local/Cellar/php70/7.0.24_16/include/php/main/php.h:35:
In file included from 
/usr/local/Cellar/php70/7.0.24_16/include/php/Zend/zend.h:35:
/usr/local/Cellar/php70/7.0.24_16/include/php/Zend/zend_string.h:326:2: 
warning: 'register' storage class specifier is deprecated and incompatible with 
C++1z [-Wdeprecated-register]
        register zend_ulong hash = Z_UL(5381);
        ^~~~~~~~~
In file included from 
/path/to/thrift/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:23:
In file included from 
/usr/local/Cellar/php70/7.0.24_16/include/php/main/php.h:35:
In file included from 
/usr/local/Cellar/php70/7.0.24_16/include/php/Zend/zend.h:36:
/usr/local/Cellar/php70/7.0.24_16/include/php/Zend/zend_hash.h:251:2: warning: 
'register' storage class specifier is deprecated and incompatible with C++1z 
[-Wdeprecated-register]
        register const char *tmp = key;
        ^~~~~~~~~
In file included from 
/path/to/thrift/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:23:
In file included from 
/usr/local/Cellar/php70/7.0.24_16/include/php/main/php.h:35:
In file included from 
/usr/local/Cellar/php70/7.0.24_16/include/php/Zend/zend.h:343:
/usr/local/Cellar/php70/7.0.24_16/include/php/Zend/zend_operators.h:188:2: 
warning: 'register' storage class specifier is deprecated and incompatible with 
C++1z [-Wdeprecated-register]
        register const unsigned char *e;
        ^~~~~~~~~
{code}

But, as I mentioned.

This is caused by code at PHP headers, and PHP7.1 fixed this warning.


>  warning: 'register' storage class is deprecated
> ------------------------------------------------
>
>                 Key: THRIFT-4271
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4271
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Library
>            Reporter: Jens Geyer
>            Priority: Minor
>
> Travis emits warnings:
> {{warning: 'register' storage class specifier is deprecated 
> [-Wdeprecated-register]}}
> at multiple places.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to