cvs: functable / table.php

From: Date: Thu, 12 Oct 2000 09:39:55 +0000
Subject: cvs: functable / table.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2030@lists.php.net to get a copy of this message
hholzgra Thu Oct 12 02:39:55 2000 EDT Modified files: /functable table.php Log: will now show reasons why functions from php 3 are not available in php 4 Index: functable/table.php diff -u functable/table.php:1.4 functable/table.php:1.5 --- functable/table.php:1.4 Wed Oct 11 10:42:16 2000 +++ functable/table.php Thu Oct 12 02:39:54 2000 @@ -1022,16 +1022,29 @@ # {{{ functions in php 3 but not php 4 +include "deprecate.php"; + 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></tr>\n"); +print( "<table><tr bgcolor=\"$bgcolor\"><th>function</th><th>file</th><th>reason</th></tr>\n"); $result=mysql_query("select f1.function as fname,f1.filename as file, f1.lineno as lineno " ."from funclist f1 left join funclist f2 " ."on (f1.function=f2.function and f2.versionid=499) " ."where f1.versionid=399 and f2.function is null order by f1.filename,f1.function"); $count['notin4']=mysql_num_rows($result); +$count['notin4withreason']=0; while($row=mysql_fetch_array($result)) { bg_toggle(); - print("<tr bgcolor=\"$bgcolor\"><td>".fpage($row["fname"])."</td><td>".sourceref($row["file"]."#".$row["lineno"])."</td></tr>\n"); + print("<tr bgcolor=\"$bgcolor\">"); + print("<td>".fpage($row["fname"])."</td>"); + print("<td>".sourceref($row["file"]."#".$row["lineno"])."</td>"); + print("<td>"); + if(isset($deprecate[$row["fname"]])) { + echo $deprecate[$row["fname"]]; + $count['notin4withreason']++; + } else { + echo "&nbsp;"; + } + print("</td></tr>\n"); } mysql_free_result($result); print( "</table>\n"); @@ -1128,7 +1141,7 @@ print( "<li><a href=\"noproto.$ext\">$count[noproto] functions without prototype (PHP 4)</a><p>\n"); print( "<li><a href=\"nodoku.$ext\">$count[nodoku] functions without documentation (PHP 4)</a><p>\n"); print( "<li><a href=\"nodoku_alias.$ext\">$count[nodoku_alias] aliases without documentation (PHP 4)</a><p>\n"); -print( "<li><a href=\"notin4.$ext\">$count[notin4] function in PHP 3 but not in PHP 4</a><p>\n"); +print( "<li><a href=\"notin4.$ext\">$count[notin4] function in PHP 3 but not in PHP 4 ($count[notin4withreason] with a reason)</a><p>\n"); print( "<li><a href=\"notin3.$ext\">$count[notin3] function in PHP 4 but not in PHP 3</a><p>\n"); print( "<li><a href=\"notpub.$ext\">$count[notpub] functions implemented in PHP 4 but not made available</a><p>\n");

« previous php.cvs (#2030) next »