Skip to content

Commit 96906b3

Browse files
remicolletbigbes
authored andcommitted
Fix for PHP version 7.2 (#121)
1 parent de17ac9 commit 96906b3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ language: php
66

77
php:
88
- 7.0
9+
- 7.1
10+
- nightly
911

1012
python:
1113
- 2.7

src/php_tarantool.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
# include "config.h"
1818
#endif
1919

20-
#if PHP_VERSION_ID >= 70000
20+
#if PHP_VERSION_ID >= 70200
21+
# include <Zend/zend_smart_string.h>
22+
# define smart_string_alloc4(d, n, what, newlen) newlen = smart_string_alloc(d, n, what)
23+
#elif PHP_VERSION_ID >= 70000
2124
# include <ext/standard/php_smart_string.h>
2225
#else
2326
# include <ext/standard/php_smart_str.h>

0 commit comments

Comments
 (0)