|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57316 extending make_ticket_links() matched words
Submitted: 2006-10-21 18:14 UTC Modified: 2007-02-24 13:58 UTC
From: l dot alberton at quipo dot it Assigned: mj (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: 5.1.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 - 27 = ?
Subscribe to this entry?

 [2006-10-21 18:14 UTC] l dot alberton at quipo dot it
Attached, a patch to pearweb/include/pear-format-html.php
containing a change to the regexp in make_ticket_links()
to match these cases:

bugfix XXX
bug XXX
req XXX
request XXX

At the moment, only these are supported:

bug XXX
request XXX 

Test script:
--- /tmp/pear-format-html.1.191.php	Sat Oct 21 12:18:11 2006
+++ /CVS_repository/pearweb/include/pear-format-html.php	Sat Oct 21 12:18:02 2006
@@ -1142,10 +1142,10 @@
 function make_ticket_links($text)
-    $text = preg_replace('/(?<=php)\s*(bug|request)\s+#?([0-9]+)/i',
+    $text = preg_replace('/(?<=php)\s*(bug(?:fix)?|req(?:uest)?)\s+#?([0-9]+)/i',
                          ' <a href="\\2">\\1 \\2</a>',
-    $text = preg_replace('/(?<![>a-z])(bug|request)\s+#?([0-9]+)/i',
+    $text = preg_replace('/(?<![>a-z])(bug(?:fix)?|req(?:uest)?)\s+#?([0-9]+)/i',
                          '<a href="/bugs/\\2">\\0</a>', $text);
     return $text;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-24 10:05 UTC]
I'll make sure that this gets in.
 [2007-02-24 10:38 UTC]
This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on by the end of next Sunday (CET).

If this was a problem with the website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

 [2007-02-24 13:58 UTC]
testing request 9127, bugfix 9127, bug 9127, req 9127
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 15 20:01:23 2021 UTC