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

Bug #3557 Using func mode generates warnings when using "function xmltag_()"
Submitted: 2005-02-22 12:43 UTC Modified: 2006-12-17 05:04 UTC
From: cmoehrke at netviser dot de Assigned: schst
Status: Closed Package: XML_Parser
PHP Version: 5.0.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-02-22 12:43 UTC] cmoehrke at netviser dot de
Description: ------------ Using a default function names xmltag_ results in Warnings Reproduce code: --------------- class myHandler extends XML_Parser { protected function xmltag () { echo "start"; return true; } protected function xmltag_ () { echo "stop"; return true; } } Expected result: ---------------- No Notice :-) Actual result: -------------- Notice: Undefined variable: attribs in /usr/local/php/pear/XML/Parser.php on line 598 Line 598 is: call_user_func(array(&$this->_handlerObj, 'xmltag_'), $xp, $elem, $attribs); $attribs does not exist in this method. This line was copied from the method above

Comments

 [2005-02-25 11:52 UTC] schst
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.