function inisizeToBytes($strIniSize) {
// This function will take the string value of an ini 'size' parameter,
// and return a double (64-bit float) representing the number of bytes
- // that the parameter represents. Or false if $strIniSize is unparseable.
+ // that the parameter represents. Or false if $strIniSize is unparsable.
$a_IniParts = array();
if (!is_string($strIniSize))
if (!$conf['show_system']) {
// XXX: The mention of information_schema here is in the wrong place, but
// it's the quickest fix to exclude the info schema from 7.4
- $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'";
+ $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'";
$lan_where = "AND pl.lanispl";
}
else {
$sql = "SELECT * FROM (";
}
- $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$";
+ $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$";
$sql .= "
SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name
/**
* Updates a view.
- * @param $viewname The name fo the view to update
+ * @param $viewname The name of the view to update
* @param $definition The new definition for the view
* @return 0 success
* @return -1 transaction error
// get the max number of col used in a constraint for the table
$sql = "SELECT DISTINCT
- max(SUBSTRING(array_dims(c.conkey) FROM \$patern\$^\\[.*:(.*)\\]$\$patern\$)) as nb
+ max(SUBSTRING(array_dims(c.conkey) FROM \$pattern\$^\\[.*:(.*)\\]$\$pattern\$)) as nb
FROM pg_catalog.pg_constraint AS c
JOIN pg_catalog.pg_class AS r ON (c.conrelid=r.oid)
JOIN pg_catalog.pg_namespace AS ns ON (r.relnamespace=ns.oid)
}
/**
- * Helper function that computes encypted PostgreSQL passwords
+ * Helper function that computes encrypted PostgreSQL passwords
* @param $username The username
* @param $password The password
*/
if (!$conf['show_system']) {
// XXX: The mention of information_schema here is in the wrong place, but
// it's the quickest fix to exclude the info schema from 7.4
- $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'";
+ $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'";
$lan_where = "AND pl.lanispl";
}
else {
$sql = "SELECT * FROM (";
}
- $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$";
+ $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$";
$sql .= "
SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name
if (!$conf['show_system']) {
// XXX: The mention of information_schema here is in the wrong place, but
// it's the quickest fix to exclude the info schema from 7.4
- $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'";
+ $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'";
$lan_where = "AND pl.lanispl";
}
else {
$sql = "SELECT * FROM (";
}
- $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$";
+ $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$";
$sql .= "
SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name
"SQRT", "STATEMENT", "STATIC", "STOP", "STORAGE",
"STREAM", "STRING", "STRINGRANGE", "STRG",
"STRUCTURE", "SUBSCRIPTRANGE", "SUBRG", "SUBSTR",
- "SUBTRACT", "SUM", "SUPERCEDE","SYSIN", "SYSPRINT",
+ "SUBTRACT", "SUM", "SYSIN", "SYSPRINT",
"SYSTEM", "SYSTEM_PROTECTION", "TAB", "TAN",
"TAND", "TANH", "TEMPORARY","%THEN", "THEN",
"TIME", "TIMEOUT_PERIOD", "%TITLE", "TITLE",
These scripts are included and executed in TestSuite.php in alphanumeric order. See comments in file ./tests/selenium/src/skeleton.php-dist
which is a template of test-builder.
When executed from TestSuite.php, test-builders should:
-- create a "TestBuilder" intance which gonna helps write HTML tests quickly.
+- create a "TestBuilder" instance which gonna helps write HTML tests quickly.
The constructor takes the following arguments:
- HTML title of the page
- Test description (appears on top of the tests table)
$this->assertWantedText($lang['strdatabasecreated']);\r
\r
// Release the resource. \r
- // XXX In fact, this line doesnot work because of phpPgAdmin's bug.\r
+ // XXX In fact, this line does not work because of phpPgAdmin's bug.\r
// "cannot delete opened database"\r
$this->dropDatabase('spikesource1');\r
\r
$this->assertWantedText($lang['strdatabasecreated']);\r
\r
// Release the resource.\r
- // XXX In fact, this line doesnot work because of phpPgAdmin's bug (?)\r
+ // XXX In fact, this line does not work because of phpPgAdmin's bug (?)\r
// "cannot delete opened database"\r
$this->dropDatabase('spikesource2');\r
\r