Warning: Call-time pass-by-reference in XML/Parser.php

From: Date: Thu, 13 Sep 2001 16:20:51 +0000
Subject: Warning: Call-time pass-by-reference in XML/Parser.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1903@lists.php.net to get a copy of this message
I get a "Warning: Call-time pass-by-reference has been deprecated[...]" in XML/Parser.php (line 254). This is where the problem is:
    call_user_method($elem, $this, $xp, $elem, &$attribs);
Is it possible to change this? Maybe to something like this:
    $this->$elem($xp, $elem, $attribs);
and then explane that the user functions should be declared as
    function elemName($xp, $elem, &$attribs);
if the pass-by-reference of the attributes is nescessary(?) -Tobias-

« previous php.pear.dev (#1903) next »