Skip to content

Commit

Permalink
Fix for PHP version 7.2 (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored and bigbes committed Aug 11, 2017
1 parent de17ac9 commit 96906b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ language: php

php:
- 7.0
- 7.1
- nightly

python:
- 2.7
Expand Down
5 changes: 4 additions & 1 deletion src/php_tarantool.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
# include "config.h"
#endif

#if PHP_VERSION_ID >= 70000
#if PHP_VERSION_ID >= 70200
# include <Zend/zend_smart_string.h>
# define smart_string_alloc4(d, n, what, newlen) newlen = smart_string_alloc(d, n, what)
#elif PHP_VERSION_ID >= 70000
# include <ext/standard/php_smart_string.h>
#else
# include <ext/standard/php_smart_str.h>
Expand Down

0 comments on commit 96906b3

Please sign in to comment.