cvs: functable /lib dbconnect.php /lib/statistics aliases.php busy_coders.php in_php_3_only.php in_php_4_only.php no_prototype.php not_published.php statistics.php undocumented_aliases.php undocumented_functions.php
[email protected] ("Hartmut Holzgraefe")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvshholzgra1125767493@cvsserver> |
hholzgra Sat Sep 3 13:11:33 2005 EDT
Modified files:
/functable/lib dbconnect.php
/functable/lib/statistics aliases.php busy_coders.php
in_php_3_only.php in_php_4_only.php
no_prototype.php not_published.php
statistics.php undocumented_aliases.php
undocumented_functions.php
Log:
conversion to mini 'abstraction' layer finished
hholzgra-20050903131133.txt
(text/plain, 12.1 KB)
http://cvs.php.net/diff.php/functable/lib/dbconnect.php?r1=1.5&r2=1.6&ty=u
Index: functable/lib/dbconnect.php
diff -u functable/lib/dbconnect.php:1.5 functable/lib/dbconnect.php:1.6
--- functable/lib/dbconnect.php:1.5 Sat Sep 3 13:07:03 2005
+++ functable/lib/dbconnect.php Sat Sep 3 13:11:31 2005
@@ -34,7 +34,7 @@
function db_numrows($result)
{
- return mysql_numrows($result);
+ return mysql_num_rows($result);
}
function db_close()
@@ -43,4 +43,4 @@
}
db_connect();
-?>
\ No newline at end of file
+?>
http://cvs.php.net/diff.php/functable/lib/statistics/aliases.php?r1=1.2&r2=1.3&ty=u
Index: functable/lib/statistics/aliases.php
diff -u functable/lib/statistics/aliases.php:1.2 functable/lib/statistics/aliases.php:1.3
--- functable/lib/statistics/aliases.php:1.2 Thu Oct 23 03:13:07 2003
+++ functable/lib/statistics/aliases.php Sat Sep 3 13:11:32 2005
@@ -2,7 +2,7 @@
head(false,false,"Statistics","Aliases");
print( "<table><tr bgcolor=\"$bgcolor\"><th>alias</th><th>file</th><th>orig. function</th></tr>\n");
-$result=mysql_query("SELECT DISTINCT
+$result=db_query("SELECT DISTINCT
funclist.function AS fname
, funclist.filename AS file
, funclist.alias_for AS aname
@@ -13,13 +13,13 @@
ORDER BY funclist.filename
, funclist.function
");
-$count['all_aliases']=mysql_num_rows($result);
-while($row=mysql_fetch_array($result))
+$count['all_aliases']=db_numrows($result);
+while($row=db_fetch($result))
{
bg_toggle();
print("<tr bgcolor=\"$bgcolor\"><td>".fpage($row["fname"])."</td><td>".sourceref($row["file"]."#".$row["lineno"])."</td><td>".fpage($row["aname"])."</td></tr>\n");
}
-mysql_free_result($result);
+db_free($result);
print( "</table>\n");
foot("$outdir/all_aliases.$ext");
?>
http://cvs.php.net/diff.php/functable/lib/statistics/busy_coders.php?r1=1.1&r2=1.2&ty=u
Index: functable/lib/statistics/busy_coders.php
diff -u functable/lib/statistics/busy_coders.php:1.1 functable/lib/statistics/busy_coders.php:1.2
--- functable/lib/statistics/busy_coders.php:1.1 Tue May 28 07:42:43 2002
+++ functable/lib/statistics/busy_coders.php Sat Sep 3 13:11:32 2005
@@ -9,13 +9,13 @@
";
echo "<table><tr><th>author</th><th>functions</th></tr>";
-$result=mysql_query($query);
-while($row=mysql_fetch_array($result))
+$result=db_query($query);
+while($row=db_fetch($result))
{
bg_toggle();
print("<tr bgcolor='$bgcolor'><td>".author_ref($row["author"])."</td><td>$row[anzahl]</td></tr>\n");
}
-mysql_free_result($result);
+db_free($result);
echo "</table>";
foot("$outdir/busy_coders.$ext");
http://cvs.php.net/diff.php/functable/lib/statistics/in_php_3_only.php?r1=1.1&r2=1.2&ty=u
Index: functable/lib/statistics/in_php_3_only.php
diff -u functable/lib/statistics/in_php_3_only.php:1.1 functable/lib/statistics/in_php_3_only.php:1.2
--- functable/lib/statistics/in_php_3_only.php:1.1 Tue May 28 07:42:47 2002
+++ functable/lib/statistics/in_php_3_only.php Sat Sep 3 13:11:32 2005
@@ -3,7 +3,7 @@
head(false,false,"Statistics","Functions available in PHP 3 that are not (yet) available in PHP 4");
print( "<table><tr bgcolor=\"$bgcolor\"><th>function</th><th>file</th><th>reason</th></tr>\n");
-$result=mysql_query("SELECT f1.function AS fname
+$result=db_query("SELECT f1.function AS fname
, f1.filename AS file
, f1.lineno AS lineno
FROM funclist f1
@@ -15,9 +15,9 @@
ORDER BY f1.filename
, f1.function
");
-$count['notin4']=mysql_num_rows($result);
+$count['notin4']=db_numrows($result);
$count['notin4withreason']=0;
-while($row=mysql_fetch_array($result)) {
+while($row=db_fetch($result)) {
bg_toggle();
print("<tr bgcolor=\"$bgcolor\">");
print("<td>".fpage($row["fname"])."</td>");
@@ -31,7 +31,7 @@
}
print("</td></tr>\n");
}
-mysql_free_result($result);
+db_free($result);
print( "</table>\n");
foot("$outdir/notin4.$ext");
?>
http://cvs.php.net/diff.php/functable/lib/statistics/in_php_4_only.php?r1=1.1&r2=1.2&ty=u
Index: functable/lib/statistics/in_php_4_only.php
diff -u functable/lib/statistics/in_php_4_only.php:1.1 functable/lib/statistics/in_php_4_only.php:1.2
--- functable/lib/statistics/in_php_4_only.php:1.1 Tue May 28 07:42:51 2002
+++ functable/lib/statistics/in_php_4_only.php Sat Sep 3 13:11:32 2005
@@ -1,7 +1,7 @@
<?php
head(false,false,"Statistics","Functions new to php 4 that where not available in php 3");
print( "<table><tr bgcolor=\"$bgcolor\"><th>function</th><th>file</th></tr>\n");
-$result=mysql_query("SELECT f1.function AS fname
+$result=db_query("SELECT f1.function AS fname
, f1.filename AS file
, f1.lineno AS lineno
FROM funclist f1
@@ -12,12 +12,12 @@
AND f2.function IS NULL
ORDER BY f1.function
");
-$count['notin3']=mysql_num_rows($result);
-while($row=mysql_fetch_array($result)) {
+$count['notin3']=db_numrows($result);
+while($row=db_fetch($result)) {
bg_toggle();
print("<tr bgcolor=\"$bgcolor\"><td>".fpage($row["fname"])."</td><td>".sourceref($row["file"]."#".$row["lineno"])."</td></tr>\n");
}
-mysql_free_result($result);
+db_free($result);
print( "</table>\n");
foot("$outdir/notin3.$ext");
?>
http://cvs.php.net/diff.php/functable/lib/statistics/no_prototype.php?r1=1.2&r2=1.3&ty=u
Index: functable/lib/statistics/no_prototype.php
diff -u functable/lib/statistics/no_prototype.php:1.2 functable/lib/statistics/no_prototype.php:1.3
--- functable/lib/statistics/no_prototype.php:1.2 Thu Oct 23 03:13:07 2003
+++ functable/lib/statistics/no_prototype.php Sat Sep 3 13:11:32 2005
@@ -2,7 +2,7 @@
head(false,false,"Statistics","Functions without Prototype");
print( "<table><tr bgcolor=\"$bgcolor\"><th>function</th><th>file</th><th>PHP 3 proto</th></tr>\n");
-$result=mysql_query("SELECT DISTINCT
+$result=db_query("SELECT DISTINCT
funclist.function AS fname
, funclist.filename AS file
, funclist.lineno AS lineno
@@ -16,9 +16,9 @@
, funclist.function
");
-$count['noproto']=mysql_num_rows($result);
+$count['noproto']=db_numrows($result);
-while($row=mysql_fetch_array($result))
+while($row=db_fetch($result))
{
bg_toggle();
print("<tr bgcolor=\"$bgcolor\"><td>".fpage($row["fname"])."</td><td>".sourceref($row["file"]."#".$row["lineno"])."</td><td>");
@@ -26,7 +26,7 @@
print($proto3[trim($row["fname"])]);
print(" </td></tr>\n");
}
-mysql_free_result($result);
+db_free($result);
print("</table>\n");
foot("$outdir/noproto.$ext");
http://cvs.php.net/diff.php/functable/lib/statistics/not_published.php?r1=1.2&r2=1.3&ty=u
Index: functable/lib/statistics/not_published.php
diff -u functable/lib/statistics/not_published.php:1.2 functable/lib/statistics/not_published.php:1.3
--- functable/lib/statistics/not_published.php:1.2 Thu Oct 23 03:13:07 2003
+++ functable/lib/statistics/not_published.php Sat Sep 3 13:11:32 2005
@@ -1,7 +1,7 @@
<?php
head(false,false,"Statistics","Functions implemented but not made available");
print( "<table><tr bgcolor=\"$bgcolor\"><th>function</th><th>file</th></tr>\n");
-$result=mysql_query("SELECT i.function AS function
+$result=db_query("SELECT i.function AS function
, i.file AS file
, i.lineno AS lineno
FROM funcimp i
@@ -13,13 +13,13 @@
ORDER BY file
, function
");
-$count['notpub']=mysql_num_rows($result);
-while($row=mysql_fetch_array($result)) {
+$count['notpub']=db_numrows($result);
+while($row=db_fetch($result)) {
bg_toggle();
$filename = str_replace("php_5_cvs","php5",$row["file"]);
print("<tr bgcolor=\"$bgcolor\"><td>".fpage($row["function"])."</td><td>".sourceref($filename."#".$row["lineno"])."</td></tr>\n");
}
-mysql_free_result($result);
+db_free($result);
print( "</table>\n");
foot("$outdir/notpub.$ext");
?>
http://cvs.php.net/diff.php/functable/lib/statistics/statistics.php?r1=1.1&r2=1.2&ty=u
Index: functable/lib/statistics/statistics.php
diff -u functable/lib/statistics/statistics.php:1.1 functable/lib/statistics/statistics.php:1.2
--- functable/lib/statistics/statistics.php:1.1 Tue May 28 07:43:04 2002
+++ functable/lib/statistics/statistics.php Sat Sep 3 13:11:32 2005
@@ -15,20 +15,20 @@
head(false,false,"Statistics","Statistics");
-$result=mysql_query("SELECT DISTINCT function
+$result=db_query("SELECT DISTINCT function
FROM funclist
WHERE versionid = 499
");
-$count['php4']=mysql_num_rows($result);
-mysql_free_result($result);
+$count['php4']=db_numrows($result);
+db_free($result);
-$result=mysql_query("SELECT DISTINCT function
+$result=db_query("SELECT DISTINCT function
FROM funclist
WHERE versionid = 499
OR versionid = 399
");
-$count['all']=mysql_num_rows($result);
-mysql_free_result($result);
+$count['all']=db_numrows($result);
+db_free($result);
print( "<p> </p><table><tr bgcolor=\"$bgcolor\"><th> </th><th>functions</th><th>aliases</th><th>total</th></tr>\n");
bg_toggle();
http://cvs.php.net/diff.php/functable/lib/statistics/undocumented_aliases.php?r1=1.2&r2=1.3&ty=u
Index: functable/lib/statistics/undocumented_aliases.php
diff -u functable/lib/statistics/undocumented_aliases.php:1.2 functable/lib/statistics/undocumented_aliases.php:1.3
--- functable/lib/statistics/undocumented_aliases.php:1.2 Thu Oct 23 03:13:07 2003
+++ functable/lib/statistics/undocumented_aliases.php Sat Sep 3 13:11:32 2005
@@ -4,7 +4,7 @@
print( "<table><tr bgcolor=\"$bgcolor\"><th>alias</th><th>file</th><th>orig. function</th></tr>\n");
-$result=mysql_query("SELECT DISTINCT
+$result=db_query("SELECT DISTINCT
funclist.function AS fname
, funclist.filename AS file
, funclist.alias_for AS aname
@@ -17,13 +17,13 @@
ORDER BY funclist.filename
, funclist.function
");
-$count['nodoku_alias']=mysql_num_rows($result);
-while($row=mysql_fetch_array($result))
+$count['nodoku_alias']=db_numrows($result);
+while($row=db_fetch($result))
{
bg_toggle();
print("<tr bgcolor=\"$bgcolor\"><td>".fpage($row["fname"])."</td><td>".sourceref($row["file"]."#".$row["lineno"])."</td><td>".fpage($row["aname"])."</td></tr>\n");
}
-mysql_free_result($result);
+db_free($result);
print( "</table>\n");
foot("$outdir/nodoku_alias.$ext");
http://cvs.php.net/diff.php/functable/lib/statistics/undocumented_functions.php?r1=1.2&r2=1.3&ty=u
Index: functable/lib/statistics/undocumented_functions.php
diff -u functable/lib/statistics/undocumented_functions.php:1.2 functable/lib/statistics/undocumented_functions.php:1.3
--- functable/lib/statistics/undocumented_functions.php:1.2 Thu Oct 23 03:13:07 2003
+++ functable/lib/statistics/undocumented_functions.php Sat Sep 3 13:11:32 2005
@@ -4,7 +4,7 @@
head(false,false,"Statistics","Functions not (yet) Documented");
-$result = mysql_query("SELECT DISTINCT
+$result = db_query("SELECT DISTINCT
funclist.function AS fname
FROM funclist
LEFT JOIN docfile ON funclist.function = docfile.function
@@ -15,10 +15,10 @@
, funclist.function
");
$rows=array();
-while($row=mysql_fetch_array($result)) {
+while($row=db_fetch($result)) {
$rows[$row['fname']] = $row;
}
-mysql_free_result($result);
+db_free($result);
$query = "SELECT DISTINCT
funclist.alias_for AS fname
@@ -31,11 +31,11 @@
, funclist.function
";
-$result = mysql_query($query);
-while($row=mysql_fetch_array($result)) {
+$result = db_query($query);
+while($row=db_fetch($result)) {
unset($rows[$row['fname']]);
}
-mysql_free_result($result);
+db_free($result);
$count['nodoku']=count($rows);
$count['nodoku_reason']=0;