mirror of
https://github.com/php/php-src.git
synced 2026-03-28 10:12:18 +01:00
- Nuked ending dots in error messages
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user