From a28eb56d2b809c8a5f658cb0c2fa336ac137236a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rex=20Lee=28=E6=9D=8E=E4=BF=8A=29?= Date: Thu, 8 Sep 2016 17:58:52 +0800 Subject: [PATCH] support php7 --- .gitignore | 4 ++++ src/pinyin.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8ab6d99..a3b2d0a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # Object files *.o +# idea +.idea/ + # Libraries *.lib *.a @@ -48,5 +51,6 @@ run-tests.php *.la *.lo *.bat +*.loT diff --git a/src/pinyin.c b/src/pinyin.c index acf1b16..9dba195 100644 --- a/src/pinyin.c +++ b/src/pinyin.c @@ -133,5 +133,5 @@ PHP_FUNCTION(pinyin) pyr = cn_word; } - ZVAL_STRING(return_value, pyr, 1); + ZVAL_STRING(return_value, pyr); }