summaryrefslogtreecommitdiff
path: root/ext/recode/recode.c
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2015-01-12 09:02:17 +0000
committerJakub Zelenka <bukka@php.net>2015-01-12 09:02:17 +0000
commitb3823f5cab4e405b767cd8dddebb54b1c29bd2a8 (patch)
treee42fbf615d62213c1e744b8a909155e8f2cdaa87 /ext/recode/recode.c
parente6fb493e5dbafdad37ba5334c986636342b5d9aa (diff)
parent31817447cc06093368f022086340ad3f6f616528 (diff)
downloadphp-git-b3823f5cab4e405b767cd8dddebb54b1c29bd2a8.tar.gz
Merge branch 'master' into jsond
Conflicts: ext/json/JSON_parser.c ext/json/JSON_parser.h ext/json/json.c ext/json/utf8_decode.c
Diffstat (limited to 'ext/recode/recode.c')
-rw-r--r--ext/recode/recode.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/recode/recode.c b/ext/recode/recode.c
index ea2374556f..b3993cd3a1 100644
--- a/ext/recode/recode.c
+++ b/ext/recode/recode.c
@@ -15,7 +15,7 @@
| Author: Kristian Koehntopp <kris@koehntopp.de> |
+----------------------------------------------------------------------+
*/
-
+
/* $Id$ */
/* {{{ includes & prototypes */
@@ -62,7 +62,7 @@ ZEND_END_MODULE_GLOBALS(recode)
#else
# define ReSG(v) (recode_globals.v)
#endif
-
+
ZEND_DECLARE_MODULE_GLOBALS(recode)
static PHP_GINIT_FUNCTION(recode);
@@ -89,13 +89,13 @@ static const zend_function_entry php_recode_functions[] = {
zend_module_entry recode_module_entry = {
STANDARD_MODULE_HEADER,
- "recode",
- php_recode_functions,
- PHP_MINIT(recode),
- PHP_MSHUTDOWN(recode),
+ "recode",
+ php_recode_functions,
+ PHP_MINIT(recode),
+ PHP_MSHUTDOWN(recode),
+ NULL,
NULL,
- NULL,
- PHP_MINFO(recode),
+ PHP_MINFO(recode),
NO_VERSION_YET,
PHP_MODULE_GLOBALS(recode),
PHP_GINIT(recode),
@@ -164,7 +164,7 @@ PHP_FUNCTION(recode_string)
php_error_docref(NULL, E_WARNING, "Illegal recode request '%s'", req);
goto error_exit;
}
-
+
recode_buffer_to_buffer(request, str, str_len, &r, &r_len, &r_alen);
if (!r) {
php_error_docref(NULL, E_WARNING, "Recoding failed.");
@@ -202,7 +202,7 @@ PHP_FUNCTION(recode_file)
if (FAILURE == php_stream_cast(instream, PHP_STREAM_AS_STDIO, (void**)&in_fp, REPORT_ERRORS)) {
RETURN_FALSE;
}
-
+
if (FAILURE == php_stream_cast(outstream, PHP_STREAM_AS_STDIO, (void**)&out_fp, REPORT_ERRORS)) {
RETURN_FALSE;
}
@@ -217,7 +217,7 @@ PHP_FUNCTION(recode_file)
php_error_docref(NULL, E_WARNING, "Illegal recode request '%s'", req);
goto error_exit;
}
-
+
if (!recode_file_to_file(request, in_fp, out_fp)) {
php_error_docref(NULL, E_WARNING, "Recoding failed.");
goto error_exit;