]> granicus.if.org Git - php/commitdiff
- Nuked ending dots in error messages
authorJani Taskinen <jani@php.net>
Sun, 30 Sep 2007 05:43:28 +0000 (05:43 +0000)
committerJani Taskinen <jani@php.net>
Sun, 30 Sep 2007 05:43:28 +0000 (05:43 +0000)
ext/standard/formatted_print.c
ext/standard/ftp_fopen_wrapper.c
ext/standard/http_fopen_wrapper.c

index 41b67d0504114b8e18d6472c991b8bf79dd349c3..1cdd155700461d11625940cded91f255e60007c9 100644 (file)
@@ -735,7 +735,7 @@ static char * php_formatted_print(int ht, int *len, int use_array, int format_of
                                        if (argnum <= 0) {
                                                efree(result);
                                                efree(args);
-                                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument number must be greater than zero.");
+                                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument number must be greater than zero");
                                                return NULL;
                                        }
 
@@ -777,7 +777,7 @@ static char * php_formatted_print(int ht, int *len, int use_array, int format_of
                                        if ((width = php_sprintf_getnumber(format, &inpos)) < 0) {
                                                efree(result);
                                                efree(args);
-                                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Width must be greater than zero and less than %d.", INT_MAX);
+                                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Width must be greater than zero and less than %d", INT_MAX);
                                                return NULL;
                                        }
                                        adjusting |= ADJ_WIDTH;
@@ -794,7 +794,7 @@ static char * php_formatted_print(int ht, int *len, int use_array, int format_of
                                                if ((precision = php_sprintf_getnumber(format, &inpos)) < 0) {
                                                        efree(result);
                                                        efree(args);
-                                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Precision must be greater than zero and less than %d.", INT_MAX);
+                                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Precision must be greater than zero and less than %d", INT_MAX);
                                                        return NULL;
                                                }
                                                adjusting |= ADJ_PRECISION;
index 50a7bf325e5cab9a1db3884d45405143513794a2..e64aac0f1a642141d01f7e3669762a6e7587c24c 100644 (file)
@@ -412,7 +412,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch
        }
        if (strpbrk(mode, "wa+")) {
                if (read_write) {
-                       php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "FTP does not support simultaneous read/write connections.");
+                       php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "FTP does not support simultaneous read/write connections");
                        return NULL;
                }
                if (strchr(mode, 'a')) {
@@ -423,7 +423,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch
        }
        if (!read_write) {
                /* No mode specified? */
-               php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unknown file open mode.");
+               php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unknown file open mode");
                return NULL;
        }
 
@@ -486,7 +486,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch
                                        goto errexit;
                                }
                        } else {
-                               php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Remote file already exists and overwrite context option not specified.");
+                               php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Remote file already exists and overwrite context option not specified");
                                errno = EEXIST;
                                goto errexit;
                        }
index 73c097f7ecafb3eed1ca539fb82b769628ec9df3..fa7bc97fa3b6f5d0bec43bdd83cb1e9d996c2205 100644 (file)
@@ -180,7 +180,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
                /* Normal http request (possibly with proxy) */
        
                if (strpbrk(mode, "awx+")) {
-                       php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "HTTP wrapper does not support writeable connections.");
+                       php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "HTTP wrapper does not support writeable connections");
                        php_url_free(resource);
                        return NULL;
                }