]> granicus.if.org Git - php/commitdiff
fix spelling in error messages:
authorAntony Dovgal <tony2001@php.net>
Mon, 3 Apr 2006 09:14:50 +0000 (09:14 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 3 Apr 2006 09:14:50 +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 729e3631f9bc9861f07c7f31eefe589c68fc55bc..4585ccb0ed2deb61420b17225717722ab2bcb800 100644 (file)
@@ -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) {
index 4b377b88cf08ff5df4cb12f697682bfa24546e6b..e7f74c8cb28a578b7049282f7e84578024ae7919 100644 (file)
@@ -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;
        }
 
index 0dc98230944b71c2eb176a64d5b538b0982ed786..f4cf255e777b6152851ebd37e7b4924abd255c8d 100644 (file)
@@ -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) {
index 97f81eec0a5311c67459158552379813a3c9100f..0eebf40276244210612cc8344f1f72a129eb112b 100644 (file)
@@ -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) {