PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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 );
}