From 8a78064ffcfc254c9fb83d4822655e528db655b3 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Fri, 2 Jan 2009 14:50:09 +0000 Subject: [PATCH] Use newer documentation url for function descriptions and adapt text preparation to that. --- extra/update_pas_mysql_structures.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extra/update_pas_mysql_structures.php b/extra/update_pas_mysql_structures.php index e8472fdf..72fbd892 100644 --- a/extra/update_pas_mysql_structures.php +++ b/extra/update_pas_mysql_structures.php @@ -6,7 +6,7 @@ */ // Gather version information for functions -$ver_cont = file_get_contents('http://dev.mysql.com/doc/refman/5.2/en/func-op-summary-ref.html'); +$ver_cont = file_get_contents('http://dev.mysql.com/doc/refman/6.0/en/func-op-summary-ref.html'); if( $ver_cont ) { // ADDDATE()(v4.1.1) @@ -101,9 +101,11 @@ function getfunctions( $cat, $rootcat='' ) if( $df ) { $description = trim($m3[2]); + $description = preg_replace('#\bURL\:\s+\S+#s', ' ', $description ); $description = preg_replace('#(\s+)#', ' ', $description ); $description = str_replace(' o ', ' ', $description); $description = str_replace("'", "''", $description ); + $description = trim($description ); $description = wordwrap($description,70, " '".$nl." +'" ); } @@ -113,7 +115,7 @@ function getfunctions( $cat, $rootcat='' ) $version = $versions[$name]; } - $fstruc[$name] .= sprintf(" (".$nl + $fstruc[$name] = sprintf(" (".$nl ." Name: '%s';".$nl ." Declaration: '%s';".$nl ." Category: '%s';".$nl