ID:               31069
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jody_leigh_salt at yahoo dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         Zend Engine 2 problem
 Operating System: XP
 PHP Version:      5.0.2
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See #31068


Previous Comments:
------------------------------------------------------------------------

[2004-12-13 15:32:47] jody_leigh_salt at yahoo dot co dot uk

Edited submission as I feel as it can be better catagorised

------------------------------------------------------------------------

[2004-12-13 15:18:10] jody_leigh_salt at yahoo dot co dot uk

Description:
------------
Can't call variable objects. Where as in PHP 4 you can!!

Reproduce code:
---------------
class bug_test {
function bug_test() {
//create a test var
$this->test_var = 'hello world';
}
function echo_test_var() {
echo $this->test_var;
}
function say_hello() {
$object = 'this';
$$object->echo_test_var();
}
}

//let show this bug!!
$test = new bug_test();
$test->say_hello();

Expected result:
----------------
Should print "hello world to screen"

Actual result:
--------------
Notice: Undefined variable: this in c:\www\php_newrust\bug.php on line
20

Fatal error: Call to a member function echo_test_var() on a non-object
in c:\www\php_newrust\bug.php on line 20


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31069&edit=1

Reply via email to