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

Bug #3557 Using func mode generates warnings when using "function xmltag_()"
Submitted: 2005-02-22 17:43 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  
Comments Add Comment Add patch


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:
MUST BE VALID
Solve the problem : 48 + 3 = ?

 
 [2005-02-22 17: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 16:52 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!