Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
e69c9396
Unverified
Commit
e69c9396
authored
Nov 27, 2019
by
Paul Yang
Committed by
GitHub
Nov 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extern declare protobuf_globals (#6946)
parent
ab5b61bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
protobuf.c
php/ext/google/protobuf/protobuf.c
+2
-0
protobuf.h
php/ext/google/protobuf/protobuf.h
+1
-1
No files found.
php/ext/google/protobuf/protobuf.c
View file @
e69c9396
...
...
@@ -39,6 +39,8 @@ static PHP_RSHUTDOWN_FUNCTION(protobuf);
static
PHP_MINIT_FUNCTION
(
protobuf
);
static
PHP_MSHUTDOWN_FUNCTION
(
protobuf
);
ZEND_DECLARE_MODULE_GLOBALS
(
protobuf
)
// Global map from upb {msg,enum}defs to wrapper Descriptor/EnumDescriptor
// instances.
static
HashTable
*
upb_def_to_php_obj_map
;
...
...
php/ext/google/protobuf/protobuf.h
View file @
e69c9396
...
...
@@ -689,7 +689,7 @@ ZEND_BEGIN_MODULE_GLOBALS(protobuf)
zend_bool
keep_descriptor_pool_after_request
;
ZEND_END_MODULE_GLOBALS
(
protobuf
)
ZEND_
DECLARE
_MODULE_GLOBALS
(
protobuf
)
ZEND_
EXTERN
_MODULE_GLOBALS
(
protobuf
)
#ifdef ZTS
#define PROTOBUF_G(v) TSRMG(protobuf_globals_id, zend_protobuf_globals *, v)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment