Skip to content

Commit 316bba3

Browse files
committed
Fix typos
1 parent 572020a commit 316bba3

24 files changed

+50
-50
lines changed

adodb-csvlib.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function csv2rs($url, &$err, $timeout=0, $rsclass='ADORecordSet_array')
270270
*/
271271
function adodb_write_file($filename, $contents,$debug=false)
272272
{
273-
# http://www.php.net/bugs.php?id=9203 Bug that flock fails on Windows
273+
# https://www.php.net/bugs.php?id=9203 Bug that flock fails on Windows
274274
# So to simulate locking, we assume that rename is an atomic operation.
275275
# First we delete $filename, then we create a $tempfile write to it and
276276
# rename to the desired $filename. If the rename works, then we successfully

adodb-memcache.lib.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
class ADODB_Cache_MemCache
3636
{
3737
/**
38-
* @var bool Prevents parent class calling non-existant function
38+
* @var bool Prevents parent class calling non-existent function
3939
*/
4040
public $createdir = false;
4141

adodb-perf.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ function OptimizeTable( $table, $mode = ADODB_OPT_LOW)
10591059
/**
10601060
* Reorganise current database.
10611061
* Default implementation loops over all <code>MetaTables()</code> and
1062-
* optimize each using <code>optmizeTable()</code>
1062+
* optimize each using <code>optimizeTable()</code>
10631063
*
10641064
* @author Markus Staab
10651065
* @return bool true on success, false on error

adodb-xmlschema.inc.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function FieldID( $field ) {
188188
/**
189189
* Creates a table object in ADOdb's datadict format
190190
*
191-
* This class stores information about a database table. As charactaristics
191+
* This class stores information about a database table. As characteristics
192192
* of the table are loaded from the external source, methods and properties
193193
* of this class are used to build up the table description in ADOdb's
194194
* datadict format.
@@ -245,7 +245,7 @@ class dbTable extends dbObject {
245245
var $data;
246246

247247
/**
248-
* Iniitializes a new table object.
248+
* Initializes a new table object.
249249
*
250250
* @param string $prefix DB Object prefix
251251
* @param array $attributes Array of table attributes.
@@ -607,7 +607,7 @@ function drop() {
607607
/**
608608
* Creates an index object in ADOdb's datadict format
609609
*
610-
* This class stores information about a database index. As charactaristics
610+
* This class stores information about a database index. As characteristics
611611
* of the index are loaded from the external source, methods and properties
612612
* of this class are used to build up the index description in ADOdb's
613613
* datadict format.

adodb-xmlschema03.inc.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function fieldID( $field ) {
206206
/**
207207
* Creates a table object in ADOdb's datadict format
208208
*
209-
* This class stores information about a database table. As charactaristics
209+
* This class stores information about a database table. As characteristics
210210
* of the table are loaded from the external source, methods and properties
211211
* of this class are used to build up the table description in ADOdb's
212212
* datadict format.
@@ -263,7 +263,7 @@ class dbTable extends dbObject {
263263
var $data;
264264

265265
/**
266-
* Iniitializes a new table object.
266+
* Initializes a new table object.
267267
*
268268
* @param string $prefix DB Object prefix
269269
* @param array $attributes Array of table attributes.
@@ -656,7 +656,7 @@ function drop() {
656656
/**
657657
* Creates an index object in ADOdb's datadict format
658658
*
659-
* This class stores information about a database index. As charactaristics
659+
* This class stores information about a database index. As characteristics
660660
* of the index are loaded from the external source, methods and properties
661661
* of this class are used to build up the index description in ADOdb's
662662
* datadict format.

adodb.inc.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ function StartTrans($errfn = 'ADODB_TransMonitor') {
14841484

14851485

14861486
/**
1487-
* Complete a transation.
1487+
* Complete a transaction.
14881488
*
14891489
* Used together with StartTrans() to end a transaction. Monitors connection
14901490
* for sql errors, and will commit or rollback as appropriate.
@@ -2301,7 +2301,7 @@ function CacheGetOne($secs2cache,$sql=false,$inputarr=false) {
23012301
* This is only relevant if the returned string
23022302
* is coming from a CHAR type field.
23032303
*
2304-
* @return array|bool 1D array containning the first row of the query
2304+
* @return array|bool 1D array containing the first row of the query
23052305
*/
23062306
function GetCol($sql, $inputarr = false, $trim = false) {
23072307

@@ -3085,9 +3085,9 @@ function SetTransactionMode( $transaction_mode ) {
30853085
$this->_transmode = $transaction_mode;
30863086
}
30873087
/*
3088-
http://msdn2.microsoft.com/en-US/ms173763.aspx
3089-
http://dev.mysql.com/doc/refman/5.0/en/innodb-transaction-isolation.html
3090-
http://www.postgresql.org/docs/8.1/interactive/sql-set-transaction.html
3088+
https://msdn2.microsoft.com/en-US/ms173763.aspx
3089+
https://dev.mysql.com/doc/refman/5.0/en/innodb-transaction-isolation.html
3090+
https://www.postgresql.org/docs/8.1/interactive/sql-set-transaction.html
30913091
http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_10005.htm
30923092
*/
30933093
function MetaTransaction($mode,$db) {
@@ -4533,7 +4533,7 @@ function getAssoc($force_array = false, $first2cols = false)
45334533
* @param mixed $v is the character timestamp in YYYY-MM-DD hh:mm:ss format
45344534
* @param string [$fmt] is the format to apply to it, using date()
45354535
*
4536-
* @return string a timestamp formated as user desires
4536+
* @return string a timestamp formatted as user desires
45374537
*/
45384538
function UserTimeStamp($v,$fmt='Y-m-d H:i:s') {
45394539
if (is_numeric($v) && strlen($v)<14) {

datadict/datadict-postgres.inc.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function alterColumnSQL($tabname, $flds, $tableflds='', $tableoptions='')
284284

285285
// does not have alter column
286286
if (!$tableflds) {
287-
if ($this->debug) ADOConnection::outp("AlterColumnSQL needs a complete table-definiton for PostgreSQL");
287+
if ($this->debug) ADOConnection::outp("AlterColumnSQL needs a complete table-definition for PostgreSQL");
288288
return array();
289289
}
290290
return $this->_recreate_copy_table($tabname, false, $tableflds,$tableoptions);
@@ -306,7 +306,7 @@ function dropColumnSQL($tabname, $flds, $tableflds='', $tableoptions='')
306306
$has_drop_column = 7.3 <= (float) @$this->serverInfo['version'];
307307
if (!$has_drop_column && !$tableflds) {
308308
if ($this->debug) {
309-
ADOConnection::outp("dropColumnSQL needs complete table-definiton for PostgreSQL < 7.3");
309+
ADOConnection::outp("dropColumnSQL needs complete table-definition for PostgreSQL < 7.3");
310310
}
311311
return array();
312312
}
@@ -335,7 +335,7 @@ function _recreate_copy_table($tabname, $dropflds, $tableflds, $tableoptions='')
335335
foreach($this->metaColumns($tabname) as $fld) {
336336
if (preg_match('/'.$fld->name.' (\w+)/i', $tableflds, $matches)) {
337337
$new_type = strtoupper($matches[1]);
338-
// AlterColumn of a char column to a nummeric one needs an explicit conversation
338+
// AlterColumn of a char column to a numeric one needs an explicit conversation
339339
if (in_array($new_type, array('I', 'I2', 'I4', 'I8', 'N', 'F')) &&
340340
in_array($fld->type, array('varchar','char','text','bytea'))
341341
) {
@@ -412,7 +412,7 @@ function _createSuffix($fname, &$ftype, $fnotnull, $fdefault, $fautoinc, $fconst
412412
return $suffix;
413413
}
414414

415-
// search for a sequence for the given table (asumes the seqence-name contains the table-name!)
415+
// search for a sequence for the given table (assumes the sequence-name contains the table-name!)
416416
// if yes return sql to drop it
417417
// this is still necessary if postgres < 7.3 or the SERIAL was created on an earlier version!!!
418418
function _dropAutoIncrement($tabname)

docs/changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ other database types as well; all drivers derived from the above are also impact
11621162
- odbc: clear fields before fetching. See PHPLens Issue No: 17539
11631163
- oci8: GetRowAssoc now works in ADODB_FETCH_ASSOC fetch mode
11641164
- oci8: MetaType and MetaForeignKeys argument count are now strict-standards compliant
1165-
- oci8: Added trailing `;` on trigger creation for sequence fields, prevents occurence of ORA-24344
1165+
- oci8: Added trailing `;` on trigger creation for sequence fields, prevents occurrence of ORA-24344
11661166
- oci8quercus: new oci8 driver with support for quercus jdbc data types.
11671167
- pdo: Fixed concat recursion bug in 5.3. See PHPLens Issue No: 19285
11681168
- pgsql: Default driver (postgres/pgsql) is now postgres8

docs/changelog_v2.x.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ $conn->Connect($dsn);
249249
- Mssql date regex had error. Fixed - reported by Minh Hoang vb_user#yahoo.com.
250250
- DBTimeStamp() and DBDate() now accept iso dates and unix timestamps. This means that the PostgreSQL handling of dates in GetInsertSQL() and GetUpdateSQL() can be removed. Also if these functions are passed '' or null or false, we return a SQL null.
251251
- GetInsertSQL() and GetUpdateSQL() now accept a new parameter, $magicq to indicate whether quotes should be inserted based on magic quote settings - suggested by dj#4ict.com.
252-
- Reformated docs slightly based on suggestions by Chris Small.
252+
- Reformatted docs slightly based on suggestions by Chris Small.
253253

254254
## 1.65 - 28 Dec 2001
255255

@@ -462,7 +462,7 @@ $conn->Connect($dsn);
462462
- Changed behaviour of RecordSet.GetMenu() to support size parameter (listbox) properly.
463463
- Added emptyDate and emptyTimeStamp to RecordSet class that defines how to represent empty dates.
464464
- Added MetaColumns($table) that returns an array of ADOFieldObject's listing the columns of a table.
465-
- Added transaction support for PostgresSQL -- thanks to "Eric G. Werk" egw#netguide.dk.
465+
- Added transaction support for PostgreSQL -- thanks to "Eric G. Werk" egw#netguide.dk.
466466
- Added adodb-session.php for session support.
467467

468468
## 0.80 - 30 Nov 2000

drivers/adodb-ado.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function _pconnect($argHostname, $argUsername, $argPassword, $argProvider='MSDAS
122122
adSchemaConstraintColumnUsage = 6,
123123
adSchemaConstraintTableUsage = 7,
124124
adSchemaKeyColumnUsage = 8,
125-
adSchemaReferentialContraints = 9,
125+
adSchemaReferentialConstraints = 9,
126126
adSchemaTableConstraints = 10,
127127
adSchemaColumnsDomainUsage = 11,
128128
adSchemaIndexes = 12,

drivers/adodb-ado5.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function _pconnect($argHostname, $argUsername, $argPassword, $argProvider='MSDAS
147147
adSchemaConstraintColumnUsage = 6,
148148
adSchemaConstraintTableUsage = 7,
149149
adSchemaKeyColumnUsage = 8,
150-
adSchemaReferentialContraints = 9,
150+
adSchemaReferentialConstraints = 9,
151151
adSchemaTableConstraints = 10,
152152
adSchemaColumnsDomainUsage = 11,
153153
adSchemaIndexes = 12,

drivers/adodb-db2.inc.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* about all the changes, see the update information on the ADOdb website
1212
* for version 5.21.0.
1313
*
14-
* @link http://pecl.php.net/package/ibm_db2 PECL Extension For DB2
14+
* @link https://pecl.php.net/package/ibm_db2 PECL Extension For DB2
1515
*
1616
* This file is part of ADOdb, a Database Abstraction Layer library for PHP.
1717
*
@@ -179,7 +179,7 @@ private function doDB2Connect($argDSN, $argUsername, $argPassword, $argDatabasen
179179
$db2Options);
180180
}
181181
else
182-
182+
183183
$this->_connectionID = $db2Function($argDSN,
184184
'',
185185
'',
@@ -193,7 +193,7 @@ private function doDB2Connect($argDSN, $argUsername, $argPassword, $argDatabasen
193193

194194
if ($this->_connectionID && $argDatabasename)
195195
$this->execute("SET SCHEMA=$argDatabasename");
196-
196+
197197
return $this->_connectionID != false;
198198

199199
}
@@ -228,7 +228,7 @@ private function unpackParameters($argDSN, $argUsername, $argPassword, $argDatab
228228
$connectionParameters['dsn'] = $argDSN;
229229
$connectionParameters['database'] = $argDatabasename;
230230
$connectionParameters['catalogue'] = false;
231-
231+
232232
return $connectionParameters;
233233
}
234234

drivers/adodb-netezza.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ADODB_netezza extends ADODB_postgres64 {
6161
var $fmtTimeStamp = "'Y-m-d G:i:s'"; // used by DBTimeStamp as the default timestamp fmt.
6262
var $ansiOuter = true;
6363
var $autoRollback = true; // apparently pgsql does not autorollback properly before 4.3.4
64-
// http://bugs.php.net/bug.php?id=25404
64+
// https://bugs.php.net/bug.php?id=25404
6565

6666

6767
function MetaColumns($table,$upper=true)

drivers/adodb-oci8.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class ADODB_oci8 extends ADOConnection {
105105
var $_bind = array();
106106
var $_nestedSQL = true;
107107
var $_getarray = false; // currently not working
108-
var $leftOuter = ''; // oracle wierdness, $col = $value (+) for LEFT OUTER, $col (+)= $value for RIGHT OUTER
108+
var $leftOuter = ''; // oracle weirdness, $col = $value (+) for LEFT OUTER, $col (+)= $value for RIGHT OUTER
109109
var $session_sharing_force_blob = false; // alter session on updateblob if set to true
110110
var $firstrows = true; // enable first rows optimization on SelectLimit()
111111
var $selectOffsetAlg1 = 1000; // when to use 1st algorithm of selectlimit.

drivers/adodb-pdo_firebird.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ADODB_pdo_firebird extends ADODB_pdo
3333
var $arrayClass = 'ADORecordSet_array_pdo_firebird';
3434

3535
/**
36-
* Gets the version iformation from the server
36+
* Gets the version information from the server
3737
*
3838
* @return string[]
3939
*/

drivers/adodb-postgres64.inc.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ADODB_postgres64 extends ADOConnection{
8282
// http://bugs.php.net/bug.php?id=25404
8383

8484
var $uniqueIisR = true;
85-
var $_bindInputArray = false; // requires postgresql 7.3+ and ability to modify database
85+
var $_bindInputArray = false; // requires PostgreSQL 7.3+ and ability to modify database
8686
var $disableBlobs = false; // set to true to disable blob checking, resulting in 2-5% improvement in performance.
8787

8888
/** @var int $_pnum Number of the last assigned query parameter {@see param()} */
@@ -96,7 +96,7 @@ class ADODB_postgres64 extends ADOConnection{
9696
// and writes these time in this format: "2001-03-01 18:59:26+02".
9797
// There is no code for the "+02" time zone information, so I just left that out.
9898
// I'm not familiar enough with both ADODB as well as Postgres
99-
// to know what the concequences are. The other values are correct (wheren't in 0.94)
99+
// to know what the consequences are. The other values are correct (weren't in 0.94)
100100
// -- Freek Dijkstra
101101

102102
/**

pear/Auth/Container/ADOdb.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function listUsers()
289289

290290
$retVal = array();
291291

292-
// Find if db_fileds contains a *, i so assume all col are selected
292+
// Find if db_fields contains a *, i so assume all col are selected
293293
if(strstr($this->options['db_fields'], '*')){
294294
$sql_from = "*";
295295
}

tests/test-active-relationsx.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function ar_echo($txt)
106106
$db->Execute("insert into songs (recordid, name, artistid) values(1,'No Hiding Place', 1)");
107107
$db->Execute("insert into songs (recordid, name, artistid) values(2,'American Gangster Time', 1)");
108108

109-
// This class _implicitely_ relies on the 'people' table (pluralized form of 'person')
109+
// This class _implicitly_ relies on the 'people' table (pluralized form of 'person')
110110
class Person extends ADOdb_Active_Record
111111
{
112112
function __construct()
@@ -115,7 +115,7 @@ function __construct()
115115
$this->hasMany('children');
116116
}
117117
}
118-
// This class _implicitely_ relies on the 'children' table
118+
// This class _implicitly_ relies on the 'children' table
119119
class Child extends ADOdb_Active_Record
120120
{
121121
function __construct()
@@ -124,7 +124,7 @@ function __construct()
124124
$this->belongsTo('person');
125125
}
126126
}
127-
// This class _explicitely_ relies on the 'children' table and shares its metadata with Child
127+
// This class _explicitly_ relies on the 'children' table and shares its metadata with Child
128128
class Kid extends ADOdb_Active_Record
129129
{
130130
function __construct()
@@ -133,7 +133,7 @@ function __construct()
133133
$this->belongsTo('person');
134134
}
135135
}
136-
// This class _explicitely_ relies on the 'children' table but does not share its metadata
136+
// This class _explicitly_ relies on the 'children' table but does not share its metadata
137137
class Rugrat extends ADOdb_Active_Record
138138
{
139139
function __construct()

xsl/convert-0.1-0.2.xsl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<xsl:template match="/">
99
<xsl:comment>
1010
ADODB XMLSchema
11-
http://adodb-xmlschema.sourceforge.net
11+
https://adodb-xmlschema.sourceforge.net
1212
</xsl:comment>
1313

1414
<xsl:element name="schema">
@@ -202,4 +202,4 @@ http://adodb-xmlschema.sourceforge.net
202202
<xsl:value-of select="normalize-space(text())"/>
203203
</xsl:element>
204204
</xsl:template>
205-
</xsl:stylesheet>
205+
</xsl:stylesheet>

xsl/convert-0.1-0.3.xsl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<xsl:template match="/">
99
<xsl:comment>
1010
ADODB XMLSchema
11-
http://adodb-xmlschema.sourceforge.net
11+
https://adodb-xmlschema.sourceforge.net
1212
</xsl:comment>
1313

1414
<xsl:element name="schema">
@@ -218,4 +218,4 @@ http://adodb-xmlschema.sourceforge.net
218218
<xsl:value-of select="normalize-space(text())"/>
219219
</xsl:element>
220220
</xsl:template>
221-
</xsl:stylesheet>
221+
</xsl:stylesheet>

xsl/convert-0.2-0.1.xsl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<xsl:template match="/">
99
<xsl:comment>
1010
ADODB XMLSchema
11-
http://adodb-xmlschema.sourceforge.net
11+
https://adodb-xmlschema.sourceforge.net
1212
</xsl:comment>
1313

1414
<xsl:element name="schema">
@@ -204,4 +204,4 @@ http://adodb-xmlschema.sourceforge.net
204204
<xsl:value-of select="normalize-space(text())"/>
205205
</xsl:element>
206206
</xsl:template>
207-
</xsl:stylesheet>
207+
</xsl:stylesheet>

xsl/convert-0.2-0.3.xsl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<xsl:template match="/">
99
<xsl:comment>
1010
ADODB XMLSchema
11-
http://adodb-xmlschema.sourceforge.net
11+
https://adodb-xmlschema.sourceforge.net
1212
</xsl:comment>
1313

1414
<xsl:element name="schema">
@@ -278,4 +278,4 @@ http://adodb-xmlschema.sourceforge.net
278278
<xsl:value-of select="normalize-space(text())"/>
279279
</xsl:element>
280280
</xsl:template>
281-
</xsl:stylesheet>
281+
</xsl:stylesheet>

0 commit comments

Comments
 (0)