ID: 8104
Updated by: sniper
Old-Status: Duplicate
Status: Bogus
Bug Type: Class/Object related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 

submitted twice (other one closed) please ignore this email.

Previous Comments:

[2000-12-04 17:25:25] [EMAIL PROTECTED]
Duplicate of 8105


[2000-12-04 17:19:17] [EMAIL PROTECTED]
When I have an object that I register to a session, it first describes the variable 
name, then the name of the class from which it was instantiated, and finally the 
property names and values for any of that objects properties.

A problem  exists when you try to register an object which has a different one nested 
within it.  In this case, no mention of the inner object is registered, and the next 
time you attempt to call it, you get an error message of trying to call a method of a 
undeclared object.

file class.test.php
class inner {

        function get_name($first_name,$last_name) {
                $return $first_name." ".$last_name;

class outer extends inner {
        var fname;
        var lname;      

        function outer ($fname,$lname) {

        function x() {
                return $this->inner->get_name($this->fname,$this->lname);
file test1.html:

$testClass=new outer("jon","smith");

file test2.html:

echo "FIRST_NAME: ".$testClass->fname."<br>";
echo "LAST_NAME: ".$testClass->lname."<br>";
echo "FULL_NAME: ".$testClass->x()."<br>";


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to