Skip to content

Commit

Permalink
Merge pull request grpc#7674 from stanley-cheung/php7-ubuntu-fix
Browse files Browse the repository at this point in the history
PHP7: fix ubuntu compile error
  • Loading branch information
stanley-cheung authored Aug 11, 2016
2 parents dae95b4 + f789fac commit a6f6b6f
Showing 4 changed files with 36 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/php/route_guide/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#gRPC Basics: PHP sample code

The files in this folder are the samples used in [gRPC Basics: PHP][],
a detailed tutorial for using gRPC in Ruby.
a detailed tutorial for using gRPC in PHP.

[gRPC Basics: PHP]:http://www.grpc.io/docs/tutorials/basic/php.html
19 changes: 17 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
<email>grpc-packages@google.com</email>
<active>yes</active>
</lead>
<date>2016-07-28</date>
<date>2016-08-09</date>
<time>16:06:07</time>
<version>
<release>1.0.0</release>
@@ -22,7 +22,7 @@
</stability>
<license>BSD</license>
<notes>
- PHP7 Support continued, reduce code duplication #7543
- Fixed Ubuntu compile error #7571, #7642
</notes>
<contents>
<dir baseinstalldir="/" name="/">
@@ -1131,5 +1131,20 @@ Update to wrap gRPC C Core version 0.10.0
- PHP7 Support continued, reduce code duplication #7543
</notes>
</release>
<release>
<version>
<release>1.0.0RC4</release>
<api>1.0.0RC4</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2016-08-09</date>
<license>BSD</license>
<notes>
- Fixed Ubuntu compile error #7571, #7642
</notes>
</release>
</changelog>
</package>
3 changes: 1 addition & 2 deletions src/php/ext/grpc/php7_wrapper.h
Original file line number Diff line number Diff line change
@@ -143,8 +143,7 @@ static inline int php_grpc_zend_hash_find(HashTable *ht, char *key, int len,

#define PHP_GRPC_RETURN_STRING(val, dup) RETURN_STRING(val)
#define PHP_GRPC_MAKE_STD_ZVAL(pzv) \
zval _stack_zval_##pzv; \
pzv = &(_stack_zval_##pzv)
pzv = (zval *)emalloc(sizeof(zval));
#define PHP_GRPC_DELREF(zv)

#define PHP_GRPC_WRAP_OBJECT_START(name) \
19 changes: 17 additions & 2 deletions templates/package.xml.template
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<email>grpc-packages@google.com</email>
<active>yes</active>
</lead>
<date>2016-07-28</date>
<date>2016-08-09</date>
<time>16:06:07</time>
<version>
<release>${settings.php_version.php()}</release>
@@ -24,7 +24,7 @@
</stability>
<license>BSD</license>
<notes>
- PHP7 Support continued, reduce code duplication #7543
- Fixed Ubuntu compile error #7571, #7642
</notes>
<contents>
<dir baseinstalldir="/" name="/">
@@ -249,5 +249,20 @@
- PHP7 Support continued, reduce code duplication #7543
</notes>
</release>
<release>
<version>
<release>1.0.0RC4</release>
<api>1.0.0RC4</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2016-08-09</date>
<license>BSD</license>
<notes>
- Fixed Ubuntu compile error #7571, #7642
</notes>
</release>
</changelog>
</package>

0 comments on commit a6f6b6f

Please sign in to comment.