]> granicus.if.org Git - php/commitdiff
Fix common typos in the source code (Reported in Bug #54065)
authorPierrick Charron <pierrick@php.net>
Sun, 3 Apr 2011 21:46:52 +0000 (21:46 +0000)
committerPierrick Charron <pierrick@php.net>
Sun, 3 Apr 2011 21:46:52 +0000 (21:46 +0000)
# External libraries were excluded
# Thanks eitan at eitanadler dot com for the first patch :)

18 files changed:
INSTALL
ext/imap/php_imap.c
ext/pcntl/tests/pcntl_fork_basic.phpt
ext/snmp/snmp.c
ext/spl/internal/appenditerator.inc
ext/spl/internal/cachingiterator.inc
ext/spl/internal/regexiterator.inc
ext/standard/array.c
ext/standard/tests/array/array_shift_variation5.phpt
ext/standard/tests/file/lstat_stat_variation9.phpt
ext/xmlreader/php_xmlreader.c
main/streams/php_stream_context.h
main/streams/php_stream_filter_api.h
sapi/litespeed/README
scripts/dev/generate-phpt/src/gtTestSubject.php
scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidMethod.php
scripts/dev/generate-phpt/src/testcase/gtTestCase.php
win32/install.txt

diff --git a/INSTALL b/INSTALL
index 0683900123f8a7e1a942591946afb5c4dcb87475..1cc6aaf930a3ae0bf0cb8aea6745d5e6bc9cc697 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -1535,7 +1535,7 @@ The configuration file
    core directives is available in the appendix. Probably not all PHP
    directives are documented in the manual though. For a complete list of
    directives available in your PHP version, please read your well
-   commented php.ini file. Alternatively, you may find the the latest
+   commented php.ini file. Alternatively, you may find the latest
    php.ini from SVN helpful too.
 
    Example 6-1. php.ini example
index 01c016b6ec3ed2ceab30f40491b9023e10bfa4fe..b68f0ce5a682f6e432eb160e9a93b3d8e05d9141 100644 (file)
@@ -4299,7 +4299,7 @@ PHP_FUNCTION(imap_mime_header_decode)
                        charset_token = offset;
                }
                /* Return the rest of the data as unencoded, as it was either unencoded or was missing separators
-                  which rendered the the remainder of the string impossible for us to decode. */
+                  which rendered the remainder of the string impossible for us to decode. */
                memcpy(text, &string[charset_token], end - charset_token);      /* Extract unencoded text from string */
                text[end - charset_token] = 0x00;
                MAKE_STD_ZVAL(myobject);
index 82759ba3271f355a70e9d0cb3f1f4a0bd006af49..b1e2a9bf68dfcf90a82c64e711b7a11aa680cad8 100644 (file)
@@ -11,7 +11,7 @@ Francesco Fullone ff@ideato.it
 ?>
 --FILE--
 <?php
-echo "*** Test by calling method or function with its expected arguments, first print the child PID and the the father ***\n";
+echo "*** Test by calling method or function with its expected arguments, first print the child PID and the father ***\n";
 
 $pid = pcntl_fork();
 if ($pid > 0) {
@@ -22,6 +22,6 @@ if ($pid > 0) {
 }
 ?>
 --EXPECTF--
-*** Test by calling method or function with its expected arguments, first print the child PID and the the father ***
+*** Test by calling method or function with its expected arguments, first print the child PID and the father ***
 int(0)
 int(%d)
index 063b492dd18db072b57d0dc557d278380574c92b..f231a567bfdb7469b2576e0b0f38995547f10e87 100644 (file)
@@ -1160,7 +1160,7 @@ PHP_FUNCTION(snmp2_set)
 /* {{{ proto void php_snmpv3(INTERNAL_FUNCTION_PARAMETERS, int st)
 *
 * Generic SNMPv3 object fetcher
-* From here is passed on the the common internal object fetcher.
+* From here is passed on the common internal object fetcher.
 *
 * st=SNMP_CMD_GET   snmp3_get() - query an agent and return a single value.
 * st=SNMP_CMD_GETNEXT   snmp3_getnext() - query an agent and return the next single value.
index 5db080425c49c28aa2cb70fbea3e2edf30ca6b02..28e32b15f6696be5410876df3bc3fd73f16e9353 100755 (executable)
@@ -31,7 +31,7 @@ class AppendIterator implements OuterIterator
         * @param $it Iterator to append
         *
         * If the current state is invalid but the appended iterator is valid
-        * the the AppendIterator itself becomes valid. However there will be no
+        * the AppendIterator itself becomes valid. However there will be no
         * call to $it->rewind(). Also if the current state is invalid the inner
         * ArrayIterator will be rewound und forwarded to the appended element.
         */     
@@ -119,4 +119,4 @@ class AppendIterator implements OuterIterator
        }
 }
 
-?>
\ No newline at end of file
+?>
index 7262564f2657b25cb668bae89b1c99939192d743..33258ab954b6d123217d8e5d00823879a187c387 100755 (executable)
@@ -86,7 +86,7 @@ class CachingIterator implements OuterIterator
                $this->it->next();
        }
        
-       /** @return whether teh iterator is valid
+       /** @return whether the iterator is valid
         */
        function valid()
        {
@@ -154,4 +154,4 @@ class CachingIterator implements OuterIterator
        }
 }
 
-?>
\ No newline at end of file
+?>
index 8b4ffe9dad8c627e61f01f7a363537ce52613c4a..96b8f81126a0c5e3ad049a072b6ae916393612ca 100755 (executable)
@@ -19,7 +19,7 @@
  */
 class RegexIterator extends FilterIterator
 {
-       const USE_KEY     = 0x00000001; /**< If present in $flags the the key is 
+       const USE_KEY     = 0x00000001; /**< If present in $flags the key is 
                                             used rather then the current value. */
 
        const MATCH       = 0; /**< Mode: Executed a plain match only      */
index 1a12b265e610c57446c7535149a01844a712a20c..ac2e49245a8feba52ea6a6975d70892ad0487bcf 100644 (file)
@@ -606,7 +606,7 @@ static int php_array_user_compare(const void *a, const void *b TSRMLS_DC) /* {{{
 
        /* Clear FCI cache otherwise : for example the same or other array with
         * (partly) the same key values has been sorted with uasort() or
-        * other sorting function the comparison is cached, however the the name
+        * other sorting function the comparison is cached, however the name
         * of the function for comparison is not respected. see bug #28739 AND #33295
         *
         * Following defines will assist in backup / restore values. */
index 2ac15da6bba9d1061cc8c6c4b277da4e8c574fed..578b870d92930c1ab91c56aadcdfe3d7e5b89cae 100644 (file)
@@ -9,7 +9,7 @@ Test array_shift() function : usage variations - call recursively
 
 /*
  * Use the result of one call to array_shift 
- * as the the $stack argument of another call to array_shift()
+ * as the $stack argument of another call to array_shift()
  * When done in one statement causes strict error messages. 
  */
 
@@ -42,4 +42,4 @@ string(4) "zero"
 
 -- Correct Method: --
 string(4) "zero"
-Done
\ No newline at end of file
+Done
index b3c1281e61fee9dfade43099993335a11ba2642f..63c6ff8a765a61ad9cc5244622f3f86c180c908b 100644 (file)
@@ -36,7 +36,7 @@ fclose($file_handle);
 
 $old_stat = stat($dirname);
 
-/* now delete teh surdir and file and record the stat */
+/* now delete the surdir and file and record the stat */
 unlink("$dirname/lstat_stat_variation9a.tmp");
 rmdir("$dirname/lstat_stat_variation9_subdir");
 
index d4fb6b342630aeecebfbf695312915b1932c8b01..d029f5efcad99b8176d741faf352c6cf3b7881cb 100644 (file)
@@ -860,7 +860,7 @@ PHP_METHOD(xmlreader, next)
 /* }}} */
 
 /* {{{ proto boolean XMLReader::open(string URI [, string encoding [, int options]])
-Sets the URI that the the XMLReader will parse. */
+Sets the URI that the XMLReader will parse. */
 PHP_METHOD(xmlreader, open)
 {
        zval *id;
@@ -1021,7 +1021,7 @@ PHP_METHOD(xmlreader, setParserProperty)
 /* }}} */
 
 /* {{{ proto boolean XMLReader::setRelaxNGSchema(string filename)
-Sets the string that the the XMLReader will parse. */
+Sets the string that the XMLReader will parse. */
 PHP_METHOD(xmlreader, setRelaxNGSchema)
 {
        php_xmlreader_set_relaxng_schema(INTERNAL_FUNCTION_PARAM_PASSTHRU, XMLREADER_LOAD_FILE);
@@ -1029,7 +1029,7 @@ PHP_METHOD(xmlreader, setRelaxNGSchema)
 /* }}} */
 
 /* {{{ proto boolean XMLReader::setRelaxNGSchemaSource(string source)
-Sets the string that the the XMLReader will parse. */
+Sets the string that the XMLReader will parse. */
 PHP_METHOD(xmlreader, setRelaxNGSchemaSource)
 {
        php_xmlreader_set_relaxng_schema(INTERNAL_FUNCTION_PARAM_PASSTHRU, XMLREADER_LOAD_STRING);
@@ -1043,7 +1043,7 @@ XMLPUBFUN int XMLCALL
 */
 
 /* {{{ proto boolean XMLReader::XML(string source [, string encoding [, int options]])
-Sets the string that the the XMLReader will parse. */
+Sets the string that the XMLReader will parse. */
 PHP_METHOD(xmlreader, XML)
 {
        zval *id;
index 32c28b9b6536ca1632783d430f0e1531ae914bb4..f6ec174255c61ed2f8a0104dfb3da09c892ca389 100644 (file)
@@ -31,7 +31,7 @@ typedef void (*php_stream_notification_func)(php_stream_context *context,
 
 /* Attempt to fetch context from the zval passed,
    If no context was passed, use the default context
-   The the default context has not yet been created, do it now. */
+   The default context has not yet been created, do it now. */
 #define php_stream_context_from_zval(zcontext, nocontext) ( \
                (zcontext) ? zend_fetch_resource(&(zcontext) TSRMLS_CC, -1, "Stream-Context", NULL, 1, php_le_stream_context()) : \
                (nocontext) ? NULL : \
index aebe9271d466c72baab4b2bea9c690a32bbb3f0a..a4cefb4ed4c4112a9f9437d4640267e168ec1afc 100644 (file)
@@ -27,7 +27,7 @@
  *
  * Each stream can have a chain of filters for reading and another for writing.
  * 
- * When data is written to the stream, is is placed into a bucket and placed at
+ * When data is written to the stream, it is placed into a bucket and placed at
  * the start of the input brigade.
  *
  * The first filter in the chain is invoked on the brigade and (depending on
index 3f138c21636c4bfc7128c788f5e58aef20fc2b02..e548ec97db850e01c300e5f7fd28db8dca8b9550 100644 (file)
@@ -20,7 +20,7 @@ server configuration to enhance server security when mod_php is used.
 usually, FastCGI PHP is not an option in shared hosting environment 
 due to lacking of this flexibility. LiteSpeed SAPI is carefully designed
 to address this issue. PHP configurations can be modified the same way 
-as that in mod_php with the the same configuration directives. 
+as that in mod_php with the same configuration directives. 
 
 PHP with LiteSpeed SAPI is highly recommended over FastCGI PHP for 
 PHP scripting with LiteSpeed web server. 
index 9be1e74509afe5895b453ac40742b2b0a5b25da7..ccf3caad93849a9ed2732d3eda8cc7c3ebbcd3b0 100644 (file)
@@ -128,7 +128,7 @@ abstract class gtTestSubject {
 
 
   /**
-   * Returns the argument list with teh greatest possible number of arguments.
+   * Returns the argument list with the greatest possible number of arguments.
    *
    * @return string
    */
@@ -163,4 +163,4 @@ abstract class gtTestSubject {
     return $this->initialisationStatements;
   }
 }
-?>
\ No newline at end of file
+?>
index 5f16d98f3093cd3c35548d589778988589644527..a52988aa6dd34e7e51ae16e77134b4b56fa4f942 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * Check that teh method name is valid
+ * Check that the method name is valid
  *
  */
 class gtIsValidMethod extends gtPreCondition {
@@ -25,4 +25,4 @@ class gtIsValidMethod extends gtPreCondition {
     return gtText::get('unknownMethod');
   }
 }
-?>
\ No newline at end of file
+?>
index cb67aa345d56ce924532a27271b15e9859405377..cc5e19a5ae5f181973cb4268877ed24d13b3b460 100644 (file)
@@ -23,7 +23,7 @@ abstract class gtTestCase {
 
 
   /**
-   * Object containing teh ooptional sections that may be added to the test case
+   * Object containing the optional sections that may be added to the test case
    *
    * @var gtOptionalSections
    */
@@ -140,7 +140,7 @@ abstract class gtTestCase {
 
 
   /**
-   * Add FILE section closing tag to teh test case
+   * Add FILE section closing tag to the test case
    *
    */
   public function fileClosing() {
@@ -227,4 +227,4 @@ abstract class gtTestCase {
     return $this->optionalSections;
   }
 }
-?>
\ No newline at end of file
+?>
index c1fc9c20aa382d8c65c52c1e116173b6665ec412..12d109b51395d1c8a14a4122adcd09dbc65f1460 100644 (file)
@@ -1427,7 +1427,7 @@ The configuration file
    core directives is available in the appendix. Probably not all PHP
    directives are documented in the manual though. For a complete list of
    directives available in your PHP version, please read your well
-   commented php.ini file. Alternatively, you may find the the latest
+   commented php.ini file. Alternatively, you may find the latest
    php.ini from SVN helpful too.
 
    Example 5-1. php.ini example