Home » Structures » Tree » Bug #8508
call a class method with no scope
Details
| Submitted | 2006-08-18 20:22 UTC |
|---|---|
| From | easily_the_best at hotmail dot com |
| Assigned | dufuz |
| Status | Duplicate |
| Package | Tree |
| PHP Version | 5.0.4 |
| OS | GNU/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 );
}