[git] web/doc-editor.git branch master updated. 895b94d
| From: | yannick@php.net | Date: | Sun, 12 Feb 2012 21:06:26 +0000 |
| Subject: | [git] web/doc-editor.git branch master updated. 895b94d | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9584@lists.php.net to get a copy of this message | ||
The branch, master on web/doc-editor.git has been updated
via 895b94d68fbe8f5c606488cb2d96cdfc49093ffb (commit)
from 57f9013f5f1d42b675e3067012c6cf6cc1207b5f (commit)
http://git.php.net/?p=web/doc-editor.git;a=log;h=895b94d68fbe8f5c606488cb2d96cdfc49093ffb;hp=57f9013f5f1d42b675e3067012c6cf6cc1207b5f
Summary of changes:
php/ToolsError.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
-- Log ----------------------------------------
commit 895b94d68fbe8f5c606488cb2d96cdfc49093ffb
Author: Yannick Torrès <yannick.torres@gmail.com>
Date: Sun Feb 12 21:59:10 2012 +0100
Fix errorFieldsynopsisVarnameValue
diff --git a/php/ToolsError.php b/php/ToolsError.php
index 4e18f0f..d97c2f1 100644
--- a/php/ToolsError.php
+++ b/php/ToolsError.php
@@ -1320,7 +1320,7 @@ class ToolsError
$reg1 = '/<classsynopsis>(\s.*?)<\/classsynopsis>/s';
$reg2 =
'/<ooclass><classname>(.*?)<\/classname><\/ooclass>/s';
- $reg3 =
'/<fieldsynopsis>\s*?<modifier>(.*?)<\/modifier>\s*?<type>(.*?)<\/type>\s*?<varname(.*?)>(.*?)<\/varname>\s*?<initializer>(.*?)<\/initializer>\s*?<\/fieldsynopsis>/s';
+ $reg3 =
'/<fieldsynopsis>\s*?<modifier>(.*?)<\/modifier>\s*?<type>(.*?)<\/type>\s*?<varname(.*?)>(.*?)<\/varname>\s*?(<initializer>(.*?)<\/initializer>\s*?)?<\/fieldsynopsis>/s';
$match = $en_classsynopsis = array();
preg_match_all($reg1, $this->en_content, $match);
@@ -1338,7 +1338,7 @@ class ToolsError
$en_classsynopsis[$i]['fieldsynopsis']['type'] =
$match2[2];
$en_classsynopsis[$i]['fieldsynopsis']['varname']['attr']
= $match2[3];
$en_classsynopsis[$i]['fieldsynopsis']['varname']['value'] =
$match2[4];
- $en_classsynopsis[$i]['fieldsynopsis']['initializer'] =
$match2[5];
+ $en_classsynopsis[$i]['fieldsynopsis']['initializer'] =
$match2[6];
}
@@ -1359,7 +1359,7 @@ class ToolsError
$lang_classsynopsis[$i]['fieldsynopsis']['type'] =
$match2[2];
$lang_classsynopsis[$i]['fieldsynopsis']['varname']['attr'] =
$match2[3];
$lang_classsynopsis[$i]['fieldsynopsis']['varname']['value'] =
$match2[4];
- $lang_classsynopsis[$i]['fieldsynopsis']['initializer'] =
$match2[5];
+ $lang_classsynopsis[$i]['fieldsynopsis']['initializer'] =
$match2[6];
}
Thank you for your contribution.