Bug #2580 [NEW]: HTML_BBCodeParser example ini file needs quoted square brackets

From: Date: Thu, 21 Oct 2004 02:25:43 +0000
Subject: Bug #2580 [NEW]: HTML_BBCodeParser example ini file needs quoted square brackets
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-3269@lists.php.net to get a copy of this message
From: stoyan at videotron dot ca Operating system: Win2K PHP version: 5.0.1 Package: Bug System Bug Type: Bug Bug description: HTML_BBCodeParser example ini file needs quoted square brackets Description: ------------ The example that goes together with the BBCodeParser package didn't work for me, because of a square bracket as a value in the suggested ini file. I quoted the bracket and it was fine. I tested with php 5.something on Windows, I don't know which php versions/OS are affected. But I think just quoting a value in an ini file won't break anything else, so it's safe that way. And thanks for the great package! Reproduce code: --------------- Proposed patch generated by cvs diff ? HTML_BBCodeParser.diff Index: BBCodeParser/example/BBCodeParser.ini =================================================================== RCS file: /repository/pear/HTML_BBCodeParser/BBCodeParser/example/BBCodeParser.ini,v retrieving revision 1.2 diff -u -r1.2 BBCodeParser.ini --- BBCodeParser/example/BBCodeParser.ini 13 Jan 2004 13:23:44 -0000 1.2 +++ BBCodeParser/example/BBCodeParser.ini 14 Oct 2004 15:38:40 -0000 @@ -9,10 +9,10 @@ quotewhat = all ; the opening tag character -open = [ +open = "[" ; the closing tag character -close = ] +close = "]" ; possible values: true|false ; use xml style closing tags for single html tags (<img> or <img />) Actual result: -------------- Error parsing the ini file. -- Edit bug report at http://pear.php.net/bugs/bug.php?id=2580&edit=1 --

« previous php.pear.webmaster (#3269) next »