cvs: phpdoc /scripts switch-to-newstyle.php
| From: | Mehdi Achour | Date: | Mon, 15 Jan 2007 21:08:52 +0000 |
| Subject: | cvs: phpdoc /scripts switch-to-newstyle.php | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969374821@lists.php.net to get a copy of this message | ||
didou Mon Jan 15 21:08:52 2007 UTC
Modified files:
/phpdoc/scripts switch-to-newstyle.php
Log:
reset matches..
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/switch-to-newstyle.php?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/scripts/switch-to-newstyle.php
diff -u phpdoc/scripts/switch-to-newstyle.php:1.3 phpdoc/scripts/switch-to-newstyle.php:1.4
--- phpdoc/scripts/switch-to-newstyle.php:1.3 Mon Jan 15 19:44:58 2007
+++ phpdoc/scripts/switch-to-newstyle.php Mon Jan 15 21:08:52 2007
@@ -16,7 +16,7 @@
| Authors: Mehdi Achour <didou@php.net> |
+----------------------------------------------------------------------+
-$Id: switch-to-newstyle.php,v 1.3 2007/01/15 19:44:58 philip Exp $
+$Id: switch-to-newstyle.php,v 1.4 2007/01/15 21:08:52 didou Exp $
*/
if (PHP_SAPI !== 'cli') {
@@ -81,11 +81,12 @@
</refsect1>',
$new);
-
+ $result = array();
// Write parameters and return values
preg_match('@<methodsynopsis>((.|\n)*)</methodsynopsis>@m', $old, $result);
if (count($result)) {
+ $params = array();
preg_match_all('@<parameter>([^<]*)</parameter>@', $result[1],
$params);
if (count($params) && count($params[1])) {
$buffer = '</refsect1>
@@ -132,4 +133,4 @@
echo "Modified file information:\n";
echo "Old --> New: {$counts['old']}\n";
-echo "Already New: {$counts['new']}\n";
\ No newline at end of file
+echo "Already New: {$counts['new']}\n";