A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/protocolbuffers/protobuf/commit/158d8acd6e3e69b5c74464e9dc7d76560dad724d below:

Change 'getLabel is deprecated' to E_USER_DEPRECATED · protocolbuffers/protobuf@158d8ac · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -395,7 +395,7 @@ PHP_METHOD(FieldDescriptor, getNumber) {

395 395

* Returns the label of this field as an integer.

396 396

*/

397 397

PHP_METHOD(FieldDescriptor, getLabel) {

398 -

zend_error(E_USER_WARNING,

398 +

zend_error(E_USER_DEPRECATED,

399 399

"getLabel is deprecated. Use isRequired or isRepeated instead.\n");

400 400

FieldDescriptor* intern = (FieldDescriptor*)Z_OBJ_P(getThis());

401 401

RETURN_LONG(upb_FieldDef_Label(intern->fielddef));

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4