PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Structures » Tree » Bug #8508

call a class method with no scope

Details

Submitted2006-08-18 20:22 UTC
Fromeasily_the_best at hotmail dot com
Assigneddufuz
StatusDuplicate
PackageTree
PHP Version5.0.4
OSGNU/Linux
Roadmaps(Not assigned)

Comments

[2006-08-18 20:22 UTC] easily_the_best at hotmail dot com

Description:
------------
Calling a class method in __construct when __construct not defined statically. Needs to be called in object context.

Current version:

/**
*
*
* @access public
* @version 2002/03/02
* @author Wolfram Kriesing <wolfram@kriesing.de>
* @param
* @return
*/
function __construct( $dsn , $options=array() )
{
Tree_Dynamic_DBnested( $dsn , $options );
}

Recommend:

/**
*
*
* @access public
* @version 2002/03/02
* @author Wolfram Kriesing <wolfram@kriesing.de>
* @param
* @return
*/
function __construct( $dsn , $options=array() )
{
$this->Tree_Dynamic_DBnested( $dsn , $options );
}