Index: vers.php =================================================================== RCS file: /repository/functable/vers.php,v retrieving revision 1.2 diff -u -r1.2 vers.php --- vers.php 26 Nov 2001 18:31:18 -0000 1.2 +++ vers.php 27 May 2005 07:23:33 -0000 @@ -21,4 +21,14 @@ $id++; } +$id=500; +$fp=fopen("version5.tags","r"); +while($line=fgets($fp,100)) { + $line=trim($line); + if(!$line) break; + echo " update funclist set versionid=$id where version='$line';\n"; + echo " update funcimp set versionid=$id where version='$line';\n"; + $id++; +} + ?> Index: lib/doc_versions.php =================================================================== RCS file: /repository/functable/lib/doc_versions.php,v retrieving revision 1.4 diff -u -r1.4 doc_versions.php --- lib/doc_versions.php 3 Apr 2005 03:14:56 -0000 1.4 +++ lib/doc_versions.php 27 May 2005 07:23:09 -0000 @@ -3,6 +3,9 @@ $max3 = array(); $min4 = array(); $max4 = array(); + $min5 = array(); + $max5 = array(); + $pecl = array(); $func = array(); $ver = array(); $doc_version = array(); @@ -116,7 +119,19 @@ } if(isset($min5[$key])) { - $vers[5] = "PHP 5"; + $min = $min5[$key]-500; + $max = $max5[$key]-500; + $vers[5]="PHP 5"; + if($min==0) { + if($max==99) { ; } + else { $vers[5].=" <= ".$ver[$max+500];} + } else if($min==99){ + $vers[5]="PHP 5 CVS only"; + } else { + if($max==99) { $vers[5].=" >= ".$ver[$min+500]; } + else if ($min==$max) {$vers[5].=$ver[$min+500]." only";} + else { $vers[5]=$ver[$min+500]." - ".$ver[$max+500]." only";} + } } if (isset($pecl[$key]) && !isset($min5[$key])) {