Guest User

Untitled

a guest
Jun 14th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.95 KB | None | 0 0
  1. ? a
  2. ? d
  3. ? d.diff
  4. ? scripts/a
  5. ? scripts/summary
  6. Index: bug.php
  7. ===================================================================
  8. RCS file: /repository/php-bugs-web/bug.php,v
  9. retrieving revision 1.98
  10. diff -u -r1.98 bug.php
  11. --- bug.php 26 Nov 2008 09:56:38 -0000 1.98
  12. +++ bug.php 30 Mar 2009 21:13:52 -0000
  13. @@ -202,7 +202,7 @@
  14. $in['status'] = $RESOLVE_REASONS[$in['resolve']]['status'];
  15. }
  16. if ($in['status'] == 'Closed' && $bug['status'] == 'To be documented') {
  17. - $resolve_message = $FIX_VARIATIONS['fixedcvs']['Documentation problem'];
  18. + $resolve_message = $FIX_VARIATIONS['fixedcvs']['Documentation'];
  19. } elseif (isset($FIX_VARIATIONS[$in['resolve']][$bug['bug_type']])) {
  20. $resolve_message = $FIX_VARIATIONS[$in['resolve']][$bug['bug_type']];
  21. } else {
  22. Index: bugtypes.inc
  23. ===================================================================
  24. RCS file: /repository/php-bugs-web/bugtypes.inc,v
  25. retrieving revision 1.52
  26. diff -u -r1.52 bugtypes.inc
  27. --- bugtypes.inc 25 Aug 2008 18:43:05 -0000 1.52
  28. +++ bugtypes.inc 30 Mar 2009 21:13:52 -0000
  29. @@ -5,9 +5,6 @@
  30.  
  31. '*General Issues' => 'General Issues',
  32. 'Feature/Change Request' => '    Feature/Change Request',
  33. - 'Documentation problem' => '    Documentation problem',
  34. - 'Translation problem' => '    Documentation translation problem',
  35. - 'Doc Build problem' => '    Doc Build (PhD) problem',
  36. 'Website problem' => '    PHP.net Website problem',
  37. 'Systems problem' => '    PHP.net Systems Operation problem',
  38. 'Output Control' => '    Output Control',
  39. @@ -23,6 +20,13 @@
  40. 'PDO related' => '    PDO related',
  41. 'PHAR related' => '    PHAR related',
  42.  
  43. + '*Documentation Issues' => '    Documentation Related',
  44. + 'Documentation' => '        Incorrect Content (en)',
  45. + 'Translations' => '        Incorrect Content (translations)',
  46. + 'Doc Build System' => '        Build (PhD) system',
  47. + 'DocWeb' => '        DocWeb system',
  48. + 'Online Doc Editor' => '        Online Editor',
  49. +
  50. '*Compile Issues' => '    Compile Issues',
  51. 'Compile Failure' => '         Compile Failure',
  52. 'Compile Warning' => '         Compile Warning',
  53. Index: lstats.php
  54. ===================================================================
  55. RCS file: /repository/php-bugs-web/lstats.php,v
  56. retrieving revision 1.23
  57. diff -u -r1.23 lstats.php
  58. --- lstats.php 23 Oct 2008 12:02:34 -0000 1.23
  59. +++ lstats.php 30 Mar 2009 21:13:52 -0000
  60. @@ -18,14 +18,15 @@
  61. }
  62.  
  63. /* Categories which are excluded from bug count */
  64. - $excluded = "'Feature/Change Request', 'Systems problem', 'Website Problem', 'PEAR related', 'PECL related', 'Documentation problem', 'Translation problem', 'PHP-GTK related'";
  65. + $excluded = array('Feature/Change Request', 'Systems problem', 'Website Problem', 'PEAR related', 'PECL related', 'PHP-GTK related');
  66. + $excluded_in = "'" . implode("','", array_merge($excluded, get_documentation_types())) . "'";
  67.  
  68. if ($category != '') {
  69. $query.= " $status AND bug_type='" . mysql_real_escape_string($category). "' ";
  70. } else {
  71. $query.= " status='$status' ";
  72. }
  73. - $query.= "AND bug_type NOT IN($excluded)";
  74. + $query.= "AND bug_type NOT IN($excluded_in)";
  75.  
  76. $result=mysql_unbuffered_query($query);
  77. $row=mysql_fetch_row($result);
  78. Index: include/functions.inc
  79. ===================================================================
  80. RCS file: /repository/php-bugs-web/include/functions.inc,v
  81. retrieving revision 1.262
  82. diff -u -r1.262 functions.inc
  83. --- include/functions.inc 25 Feb 2009 18:37:49 -0000 1.262
  84. +++ include/functions.inc 30 Mar 2009 21:13:52 -0000
  85. @@ -525,7 +525,7 @@
  86.  
  87. function is_phpversion_irrelevant($bugtype)
  88. {
  89. - if (in_array($bugtype, array('Documentation problem','Translation problem','Doc Build problem','DocWeb problem','Website problem','Systems problem'))) {
  90. + if (is_documentation_type($bugtype) || in_array($bugtype, array('Website problem','Systems problem'))) {
  91. return true;
  92. }
  93. return false;
  94. @@ -534,20 +534,12 @@
  95. function get_bugtype_mail($bug_type)
  96. {
  97. global $mail_bugs_to;
  98. -
  99. - if (eregi("documentation", $bug_type)) {
  100. - return array("doc-bugs@lists.php.net", "doc-bugs@lists.php.net");
  101. - }
  102. - elseif (eregi("translation", $bug_type)) {
  103. +
  104. + if (is_documentation_type($bug_type)) {
  105. return array("doc-bugs@lists.php.net", "doc-bugs@lists.php.net");
  106. }
  107. - elseif (eregi("doc build", $bug_type)) {
  108. - return array("doc-bugs@lists.php.net", "doc-bugs@lists.php.net");
  109. - }
  110. - elseif (eregi("docweb", $bug_type)) {
  111. - return array("doc-web@lists.php.net", "doc-web@lists.php.net");
  112. - }
  113. - elseif (eregi("systems", $bug_type)) {
  114. +
  115. + if (eregi("systems", $bug_type)) {
  116. return array("systems@php.net","systems@php.net");
  117. }
  118. elseif (eregi("website", $bug_type)) {
  119. @@ -567,6 +559,23 @@
  120. }
  121. }
  122.  
  123. +function get_documentation_types()
  124. +{
  125. + return array(
  126. + '*Documentation Issues',
  127. + 'Documentation',
  128. + 'Translations',
  129. + 'Doc Build System',
  130. + 'DocWeb',
  131. + 'Online Doc Editor',
  132. + );
  133. +}
  134. +
  135. +function is_documentation_type($bug_type)
  136. +{
  137. + return in_array($bug_type, get_documentation_types());
  138. +}
  139. +
  140. function get_row_color($row)
  141. {
  142. if ($row["bug_type"]=="Feature/Change Request") {
  143. Index: include/resolve.inc
  144. ===================================================================
  145. RCS file: /repository/php-bugs-web/include/resolve.inc,v
  146. retrieving revision 1.60
  147. diff -u -r1.60 resolve.inc
  148. --- include/resolve.inc 23 Oct 2008 12:02:34 -0000 1.60
  149. +++ include/resolve.inc 30 Mar 2009 21:13:52 -0000
  150. @@ -281,28 +281,42 @@
  151.  
  152. Thank you for the report, and for helping us make PHP.net better.',
  153.  
  154. - 'Documentation problem' =>
  155. + 'Documentation issues' =>
  156. 'This bug has been fixed in the documentation\'s XML sources. Since the
  157. online and downloadable versions of the documentation need some time
  158. to get updated, we would like to ask you to be a bit patient.
  159.  
  160. Thank you for the report, and for helping us make our documentation better.',
  161.  
  162. - 'Translation problem' =>
  163. + 'Documentation' =>
  164. 'This bug has been fixed in the documentation\'s XML sources. Since the
  165. online and downloadable versions of the documentation need some time
  166. to get updated, we would like to ask you to be a bit patient.
  167.  
  168. Thank you for the report, and for helping us make our documentation better.',
  169.  
  170. - 'Doc Build problem' =>
  171. + 'Translations' =>
  172. +'This bug has been fixed in the documentation\'s XML sources. Since the
  173. +online and downloadable versions of the documentation need some time
  174. +to get updated, we would like to ask you to be a bit patient.
  175. +
  176. +Thank you for the report, and for helping us make our documentation better.',
  177. +
  178. + 'Doc Build System' =>
  179. 'This bug has been fixed in CVS. Since the websites are not directly
  180. updated from the CVS server, the fix might need some time to spread
  181. across the globe to all mirror sites, including PHP.net itself.
  182.  
  183. Thank you for the report, and for helping us make PHP.net better.',
  184.  
  185. - 'DocWeb problem' =>
  186. + 'Online Doc Editor' =>
  187. +'This bug has been fixed in CVS. Since the websites are not directly
  188. +updated from the CVS server, the fix might need some time to spread
  189. +to the Online Doc Editor.
  190. +
  191. +Thank you for the report, and for helping us make PHP.net better.',
  192. +
  193. + 'DocWeb' =>
  194. 'This bug has been fixed in CVS. Since the PHP Documentation Tools website
  195. is updated from the CVS repository at a regular interval, the fix might need
  196. some time to take effect.
Add Comment
Please, Sign In to add comment