mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
fix spelling in error messages:
greater/less thEn -> greater/less thAn
This commit is contained in:
parent
b97b088800
commit
bace0def1e
@ -810,7 +810,7 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type,
|
||||
|
||||
if (resumepos > 0) {
|
||||
if (resumepos > 2147483647) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files greater then 2147483647 bytes.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files greater than 2147483647 bytes.");
|
||||
goto bail;
|
||||
}
|
||||
sprintf(arg, "%u", resumepos);
|
||||
@ -907,7 +907,7 @@ ftp_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, i
|
||||
|
||||
if (startpos > 0) {
|
||||
if (startpos > 2147483647) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files with a size greater then 2147483647 bytes.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files with a size greater than 2147483647 bytes.");
|
||||
goto bail;
|
||||
}
|
||||
sprintf(arg, "%u", startpos);
|
||||
@ -1706,7 +1706,7 @@ ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t typ
|
||||
* since php is 32 bit by design, we bail out with warning
|
||||
*/
|
||||
if (resumepos > 2147483647) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files greater then 2147483648 bytes.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files greater than 2147483648 bytes.");
|
||||
goto bail;
|
||||
}
|
||||
sprintf(arg, "%u", resumepos);
|
||||
@ -1824,7 +1824,7 @@ ftp_nb_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type
|
||||
}
|
||||
if (startpos > 0) {
|
||||
if (startpos > 2147483647) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files with a size greater then 2147483647 bytes.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files with a size greater than 2147483647 bytes.");
|
||||
goto bail;
|
||||
}
|
||||
sprintf(arg, "%u", startpos);
|
||||
|
@ -205,7 +205,7 @@ PHP_FUNCTION(mhash_keygen_s2k)
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
if (bytes <= 0){
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "the byte parameter must be greater then 0");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "the byte parameter must be greater than 0");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
@ -2878,11 +2878,11 @@ zval *sdl_guess_convert_zval(encodeTypePtr enc, xmlNodePtr data)
|
||||
}
|
||||
if (type->restrictions->minLength &&
|
||||
strlen(data->children->content) < type->restrictions->minLength->value) {
|
||||
soap_error0(E_WARNING, "Encoding: Restriction: length less then 'minLength'");
|
||||
soap_error0(E_WARNING, "Encoding: Restriction: length less than 'minLength'");
|
||||
}
|
||||
if (type->restrictions->maxLength &&
|
||||
strlen(data->children->content) > type->restrictions->maxLength->value) {
|
||||
soap_error0(E_WARNING, "Encoding: Restriction: length greater then 'maxLength'");
|
||||
soap_error0(E_WARNING, "Encoding: Restriction: length greater than 'maxLength'");
|
||||
}
|
||||
if (type->restrictions->length &&
|
||||
strlen(data->children->content) != type->restrictions->length->value) {
|
||||
@ -2941,11 +2941,11 @@ xmlNodePtr sdl_guess_convert_xml(encodeTypePtr enc, zval *data, int style, xmlNo
|
||||
}
|
||||
if (type->restrictions->minLength &&
|
||||
Z_STRLEN_P(data) < type->restrictions->minLength->value) {
|
||||
soap_error0(E_WARNING, "Encoding: Restriction: length less then 'minLength'");
|
||||
soap_error0(E_WARNING, "Encoding: Restriction: length less than 'minLength'");
|
||||
}
|
||||
if (type->restrictions->maxLength &&
|
||||
Z_STRLEN_P(data) > type->restrictions->maxLength->value) {
|
||||
soap_error0(E_WARNING, "Encoding: Restriction: length greater then 'maxLength'");
|
||||
soap_error0(E_WARNING, "Encoding: Restriction: length greater than 'maxLength'");
|
||||
}
|
||||
if (type->restrictions->length &&
|
||||
Z_STRLEN_P(data) != type->restrictions->length->value) {
|
||||
|
@ -1832,7 +1832,7 @@ PHP_FUNCTION(time_sleep_until)
|
||||
|
||||
c_ts = (double)(d_ts - tm.tv_sec - tm.tv_usec / 1000000.00);
|
||||
if (c_ts < 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sleep until to time is less then current time.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sleep until to time is less than current time.");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
@ -753,10 +753,10 @@ PHP_FUNCTION(stream_select)
|
||||
convert_to_long(sec);
|
||||
|
||||
if (sec < 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The seconds parameter must be greater then 0.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The seconds parameter must be greater than 0.");
|
||||
RETURN_FALSE;
|
||||
} else if (usec < 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The microseconds parameter must be greater then 0.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The microseconds parameter must be greater than 0.");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
@ -1181,7 +1181,7 @@ PHP_FUNCTION(stream_get_line)
|
||||
}
|
||||
|
||||
if (max_length < 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The maximum allowed length must be greater then or equal to zero.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The maximum allowed length must be greater than or equal to zero.");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
if (!max_length) {
|
||||
|
@ -4474,7 +4474,7 @@ PHP_FUNCTION(substr_count)
|
||||
if (ac > 2) {
|
||||
convert_to_long_ex(offset);
|
||||
if (Z_LVAL_PP(offset) < 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Offset should be greater then or equal to 0.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Offset should be greater than or equal to 0.");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
p += Z_LVAL_PP(offset);
|
||||
|
Loading…
Reference in New Issue
Block a user