From a88e5c6e8d6da95655c69d63bc1983a471850b36 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 10 Nov 2002 21:24:54 +0000 Subject: [PATCH] - Remove \n from error messages --- ext/com/COM.c | 2 +- ext/dbx/dbx.c | 6 +++--- ext/pcre/php_pcre.c | 10 +++++----- ext/rpc/com/com_wrapper.c | 2 +- ext/standard/assert.c | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ext/com/COM.c b/ext/com/COM.c index c1c4f130a1..cda4ef7480 100644 --- a/ext/com/COM.c +++ b/ext/com/COM.c @@ -1339,7 +1339,7 @@ static int process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name, int prin ret = 1; } else { - zend_error(E_WARNING, "Thats not a dispatchable interface!! type kind = %08x\n", attr->typekind); + zend_error(E_WARNING, "Thats not a dispatchable interface!! type kind = %08x", attr->typekind); } typeinfo->lpVtbl->ReleaseTypeAttr(typeinfo, attr); diff --git a/ext/dbx/dbx.c b/ext/dbx/dbx.c index 77403fb0a3..8682231e99 100644 --- a/ext/dbx/dbx.c +++ b/ext/dbx/dbx.c @@ -262,19 +262,19 @@ ZEND_FUNCTION(dbx_connect) if (Z_TYPE_PP(arguments[0]) == IS_LONG) { if (!module_identifier_exists(Z_LVAL_PP(arguments[0]))) { - zend_error(E_WARNING, "dbx: module '%ld' not loaded or not supported.\n", Z_LVAL_PP(arguments[0])); + zend_error(E_WARNING, "dbx: module '%ld' not loaded or not supported.", Z_LVAL_PP(arguments[0])); return; } module_identifier = Z_LVAL_PP(arguments[0]); } else { convert_to_string_ex(arguments[0]); if (!module_exists(Z_STRVAL_PP(arguments[0]))) { - zend_error(E_WARNING, "dbx: module '%s' not loaded.\n", Z_STRVAL_PP(arguments[0])); + zend_error(E_WARNING, "dbx: module '%s' not loaded.", Z_STRVAL_PP(arguments[0])); return; } module_identifier=get_module_identifier(Z_STRVAL_PP(arguments[0])); if (!module_identifier) { - zend_error(E_WARNING, "dbx: unsupported module '%s'.\n", Z_STRVAL_PP(arguments[0])); + zend_error(E_WARNING, "dbx: unsupported module '%s'.", Z_STRVAL_PP(arguments[0])); return; } } diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 4c83ad8a49..64c51466ef 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -282,7 +282,7 @@ PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_ tables); if (re == NULL) { - zend_error(E_WARNING, "Compilation failed: %s at offset %d\n", error, erroffset); + zend_error(E_WARNING, "Compilation failed: %s at offset %d", error, erroffset); efree(pattern); return NULL; } @@ -441,7 +441,7 @@ static void php_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) /* Check for too many substrings condition. */ if (count == 0) { - zend_error(E_NOTICE, "Matched, but too many substrings\n"); + zend_error(E_NOTICE, "Matched, but too many substrings"); count = size_offsets/3; } @@ -715,7 +715,7 @@ static int preg_do_eval(char *eval_str, int eval_str_len, char *subject, /* Run the code */ if (zend_eval_string(code.c, &retval, compiled_string_description TSRMLS_CC) == FAILURE) { efree(compiled_string_description); - zend_error(E_ERROR, "Failed evaluating code:\n%s\n", code); + zend_error(E_ERROR, "Failed evaluating code:\n%s", code); /* zend_error() does not return in this case */ } efree(compiled_string_description); @@ -804,7 +804,7 @@ PHPAPI char *php_pcre_replace(char *regex, int regex_len, /* Check for too many substrings condition. */ if (count == 0) { - zend_error(E_NOTICE, "Matched, but too many substrings\n"); + zend_error(E_NOTICE, "Matched, but too many substrings"); count = size_offsets/3; } @@ -1196,7 +1196,7 @@ PHP_FUNCTION(preg_split) /* Check for too many substrings condition. */ if (count == 0) { - zend_error(E_NOTICE, "Matched, but too many substrings\n"); + zend_error(E_NOTICE, "Matched, but too many substrings"); count = size_offsets/3; } diff --git a/ext/rpc/com/com_wrapper.c b/ext/rpc/com/com_wrapper.c index c3ef7dd954..075b20e69e 100644 --- a/ext/rpc/com/com_wrapper.c +++ b/ext/rpc/com/com_wrapper.c @@ -555,7 +555,7 @@ ZEND_API int php_COM_process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name ret = 1; } else { - zend_error(E_WARNING, "Thats not a dispatchable interface!! type kind = %08x\n", attr->typekind); + zend_error(E_WARNING, "Thats not a dispatchable interface!! type kind = %08x", attr->typekind); } typeinfo->lpVtbl->ReleaseTypeAttr(typeinfo, attr); diff --git a/ext/standard/assert.c b/ext/standard/assert.c index c9612a5161..4dcdf58034 100644 --- a/ext/standard/assert.c +++ b/ext/standard/assert.c @@ -157,7 +157,7 @@ PHP_FUNCTION(assert) compiled_string_description = zend_make_compiled_string_description("assert code" TSRMLS_CC); if (zend_eval_string(myeval, &retval, compiled_string_description TSRMLS_CC) == FAILURE) { efree(compiled_string_description); - zend_error(E_ERROR, "Failure evaluating code:\n%s\n", myeval); + zend_error(E_ERROR, "Failure evaluating code:\n%s", myeval); /* zend_error() does not return in this case. */ } efree(compiled_string_description); -- 2.50.1