cvs: functable / genfunclist update.all /lib doc_versions.php
[email protected] ("Hartmut Holzgraefe")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvshholzgra1112498097@cvsserver> |
hholzgra Sat Apr 2 22:14:57 2005 EDT
Modified files:
/functable genfunclist update.all
/functable/lib doc_versions.php
Log:
preliminary PECL support
http://cvs.php.net/diff.php/functable/genfunclist?r1=1.13&r2=1.14&ty=u
Index: functable/genfunclist
diff -u functable/genfunclist:1.13 functable/genfunclist:1.14
--- functable/genfunclist:1.13 Thu Oct 23 03:10:15 2003
+++ functable/genfunclist Sat Apr 2 22:14:56 2005
@@ -5,7 +5,7 @@
# for the releases we do not replace informations
# already available
-for version in $versions php_3_cvs php_4_cvs php_5_cvs
+for version in $versions php_3_cvs php_4_cvs php_5_cvs pecl_cvs
do
echo -n "parsing version $version ... "
@@ -53,9 +53,11 @@
update funclist set versionid=399 where version='php_3_cvs';
update funclist set versionid=499 where version='php_4_cvs';
update funclist set versionid=599 where version='php_5_cvs';
+ update funclist set versionid=10099 where version='pecl_cvs';
update funcimp set versionid=399 where version='php_3_cvs';
update funcimp set versionid=499 where version='php_4_cvs';
update funcimp set versionid=599 where version='php_5_cvs';
+ update funcimp set versionid=10099 where version='pecl_cvs';
delete from funclist where function like "\t%";
delete from funclist where function like "";
delete from funclist where alias_for='warn_not_available';
http://cvs.php.net/diff.php/functable/update.all?r1=1.12&r2=1.13&ty=u
Index: functable/update.all
diff -u functable/update.all:1.12 functable/update.all:1.13
--- functable/update.all:1.12 Thu Oct 23 03:13:54 2003
+++ functable/update.all Sat Apr 2 22:14:56 2005
@@ -87,6 +87,15 @@
cvs -d ":pserver:[email protected]:/repository" get -d php_5_cvs -r HEAD php-src
fi
+ # getting PECL snapshot
+ echo updating PECL cvs
+ if [ -d pecl_cvs ]
+ then
+ (cd pecl_cvs; cvs update 2>&1 | grep -v "^. pecl_cvs" | grep -v Updating)
+ else
+ cvs -d ":pserver:[email protected]:/repository" get -d pecl_cvs pecl
+ fi
+
# getting current manual snapshot
echo updating phpdoc cvs
if [ -d phpdoc ]
http://cvs.php.net/diff.php/functable/lib/doc_versions.php?r1=1.3&r2=1.4&ty=u
Index: functable/lib/doc_versions.php
diff -u functable/lib/doc_versions.php:1.3 functable/lib/doc_versions.php:1.4
--- functable/lib/doc_versions.php:1.3 Fri Apr 16 12:38:57 2004
+++ functable/lib/doc_versions.php Sat Apr 2 22:14:56 2005
@@ -66,6 +66,19 @@
}
mysql_free_result($result);
+ $result = mysql_query("SELECT function
+ FROM funclist
+ WHERE versionid >= 10000
+ AND versionid < 10100
+ GROUP BY function
+ ");
+ if(!$result) { echo mysql_error(); exit; }
+ while ($row=mysql_fetch_array($result)) {
+ $func[$row["function"]] = true;
+ $pecl[$row["function"]] = true;
+ }
+ mysql_free_result($result);
+
foreach($func as $key => $dummy) {
$vers = array();
@@ -80,7 +93,7 @@
} else if($min==99){
$vers[3].=" CVS only";
} else {
- if($max==99) { $vers[3].=">= ".$ver[$min+300]; }
+ if($max==99) { $vers[3].=" >= ".$ver[$min+300]; }
else if ($min==$max) {$vers[3].=$ver[$min+300]." only";}
else { $vers[3]=$ver[$min+300]." - ".$ver[$max+300]." only";}
}
@@ -89,14 +102,14 @@
if(isset($min4[$key])) {
$min = $min4[$key]-400;
$max = $max4[$key]-400;
- $vers[4]="PHP 4 ";
+ $vers[4]="PHP 4";
if($min==0) {
if($max==99) { ; }
else { $vers[4].=" <= ".$ver[$max+400];}
} else if($min==99){
$vers[4]="PHP 4 CVS only";
} else {
- if($max==99) { $vers[4].=">= ".$ver[$min+400]; }
+ if($max==99) { $vers[4].=" >= ".$ver[$min+400]; }
else if ($min==$max) {$vers[4].=$ver[$min+400]." only";}
else { $vers[4]=$ver[$min+400]." - ".$ver[$max+400]." only";}
}
@@ -106,6 +119,10 @@
$vers[5] = "PHP 5";
}
+ if (isset($pecl[$key]) && !isset($min5[$key])) {
+ $vers["pecl"] = "PECL";
+ }
+
$doc_version[$key] = join(", ", $vers);
}