From 0b0fff07b20b81845e87fbb514322c4c569a7d04 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 3 Apr 2006 09:14:50 +0000 Subject: [PATCH] fix spelling in error messages: greater/less thEn -> greater/less thAn --- ext/ftp/ftp.c | 8 ++++---- ext/mhash/mhash.c | 2 +- ext/soap/php_encoding.c | 8 ++++---- ext/standard/basic_functions.c | 2 +- ext/standard/streamsfuncs.c | 6 +++--- ext/standard/string.c | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 02bacc1836..99a953467e 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -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); diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c index b3bb077fd0..e175f8b79a 100644 --- a/ext/mhash/mhash.c +++ b/ext/mhash/mhash.c @@ -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; } diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 729e3631f9..4585ccb0ed 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -2879,11 +2879,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) { @@ -2942,11 +2942,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) { diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 4b377b88cf..e7f74c8cb2 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1766,7 +1766,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; } diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 0dc9823094..f4cf255e77 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -758,10 +758,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; } @@ -1266,7 +1266,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) { diff --git a/ext/standard/string.c b/ext/standard/string.c index 97f81eec0a..0eebf40276 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -6310,7 +6310,7 @@ PHP_FUNCTION(substr_count) if (ac > 2) { if (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; } if (haystack_type == IS_UNICODE) { -- 2.50.1