Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.4

Bug #484 $_SERVER["PHP_SELF"] or $_SERVER['PHP_SELF'] in text generates notice
Submitted: 2003-12-23 10:52 UTC
From: davey Assigned: sjr
Status: Closed Package: HTML_BBCodeParser
PHP Version: 4.3.4 OS: FreeBSD 4.9
Roadmaps: (Not assigned)    
Subscription  


 [2003-12-23 10:52 UTC] davey
Description: ------------ http://pear.php.net/pepr/pepr-proposal-show.php?id=12 - if you highlight the black box at the top, you will see the following notice: Notice: Undefined offset: 1 in /usr/local/lib/php/HTML/BBCodeParser.php on line 386 I have played with the text, and it only occurs when the $_SERVER['PHP_SELF'] (tried with double quotes too, same result) is in the text. The $_SESSION[ASID] does NOT cause the notice. Will work on a test case later. - Davey

Comments

 [2004-01-10 00:59 UTC] sjr at php dot net
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. this is fixed in CVS now, maybe need to have a better look at some other code to prevent this from happening (more preg_match instead of strpos and substr)