]> granicus.if.org Git - php/commitdiff
fix spelling in error messages:
authorAntony Dovgal <tony2001@php.net>
Mon, 3 Apr 2006 09:14:33 +0000 (09:14 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 3 Apr 2006 09:14:33 +0000 (09:14 +0000)
greater/less thEn -> greater/less thAn

ext/ftp/ftp.c
ext/mhash/mhash.c
ext/soap/php_encoding.c
ext/standard/basic_functions.c
ext/standard/streamsfuncs.c
ext/standard/string.c

index 02bacc183603bef43662be064516f19abaa036e9..99a953467e5c981acaa53bed94450e18a9693503 100644 (file)
@@ -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);
index b3bb077fd0f155e5c0399259e79cd12e83ff5be9..e175f8b79afaf9cc5340d07e798c5442785f91f7 100644 (file)
@@ -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;
        }
        
index f675fd949d415526e3a0b0236f3ebd687051a100..1d527aab53c47508e8f7bd24619e43efd37477d0 100644 (file)
@@ -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) {
index a54c82acd4d1004a9179575fd110989f0e7f043a..0379d69875eeb67c18a014c6b5d3723916638068 100644 (file)
@@ -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;
        }
 
index fb5ec221c467f41ea96a35bfb713a2cd89fe4d20..6502c430642a1a2dfb3639db2661ca03625950f8 100644 (file)
@@ -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) {
index a4cfe6e388e8509f6b918a3d92ee09957a5c6482..21936dee5b1e52ed1a3dbcde70542ab900024585 100644 (file)
@@ -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);