From c081ce628f0d76d44784d7bb8e06428b06142ac0 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 3 Jan 2014 11:08:10 +0800 Subject: Bump year --- ext/recode/recode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/recode/recode.c') diff --git a/ext/recode/recode.c b/ext/recode/recode.c index 7203cb24ea..3fff0a7f7f 100644 --- a/ext/recode/recode.c +++ b/ext/recode/recode.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2013 The PHP Group | + | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | -- cgit v1.2.1 From f9cfbb8ea1e79d0653029a0b6294e7352acb80f4 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Thu, 8 May 2014 11:57:35 +0100 Subject: recode update for phpng --- ext/recode/recode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/recode/recode.c') diff --git a/ext/recode/recode.c b/ext/recode/recode.c index 3fff0a7f7f..07f0332af6 100644 --- a/ext/recode/recode.c +++ b/ext/recode/recode.c @@ -171,7 +171,7 @@ PHP_FUNCTION(recode_string) error_exit: RETVAL_FALSE; } else { - RETVAL_STRINGL(r, r_len, 1); + RETVAL_STRINGL(r, r_len); free(r); } @@ -196,8 +196,8 @@ PHP_FUNCTION(recode_file) return; } - php_stream_from_zval(instream, &input); - php_stream_from_zval(outstream, &output); + php_stream_from_zval(instream, input); + php_stream_from_zval(outstream, output); if (FAILURE == php_stream_cast(instream, PHP_STREAM_AS_STDIO, (void**)&in_fp, REPORT_ERRORS)) { RETURN_FALSE; -- cgit v1.2.1 From 2402d6cbbc5e04362b23b183f9129a8db230bcce Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 11 May 2014 14:53:18 +0800 Subject: Refactor MySQLi (incompleted, only compilable now) --- ext/recode/recode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/recode/recode.c') diff --git a/ext/recode/recode.c b/ext/recode/recode.c index 07f0332af6..e90ad060e0 100644 --- a/ext/recode/recode.c +++ b/ext/recode/recode.c @@ -85,7 +85,7 @@ static const zend_function_entry php_recode_functions[] = { PHP_FE(recode_file, arginfo_recode_file) PHP_FALIAS(recode, recode_string, arginfo_recode_string) PHP_FE_END -}; +}; /* }}} */ zend_module_entry recode_module_entry = { STANDARD_MODULE_HEADER, -- cgit v1.2.1 From 3234480827b27ff5d3469a732167afd289632a96 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 27 Aug 2014 15:31:48 +0200 Subject: first show to make 's' work with size_t --- ext/recode/recode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/recode/recode.c') diff --git a/ext/recode/recode.c b/ext/recode/recode.c index e90ad060e0..2e044301cb 100644 --- a/ext/recode/recode.c +++ b/ext/recode/recode.c @@ -146,7 +146,7 @@ PHP_FUNCTION(recode_string) RECODE_REQUEST request = NULL; char *r = NULL; size_t r_len = 0, r_alen = 0; - int req_len, str_len; + size_t req_len, str_len; char *req, *str; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &req, &req_len, &str, &str_len) == FAILURE) { -- cgit v1.2.1 From d0cb715373c3fbe9dc095378ec5ed8c71f799f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schl=C3=BCter?= Date: Fri, 19 Sep 2014 18:33:14 +0200 Subject: s/PHP 5/PHP 7/ --- ext/recode/recode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/recode/recode.c') diff --git a/ext/recode/recode.c b/ext/recode/recode.c index 2e044301cb..a70a4fcb2c 100644 --- a/ext/recode/recode.c +++ b/ext/recode/recode.c @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ - | PHP Version 5 | + | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ -- cgit v1.2.1