Bizarre Assignment Issue

From: Date: Fri, 21 Feb 2003 21:46:25 +0000
Subject: Bizarre Assignment Issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136564@lists.php.net to get a copy of this message
I am experiencing some very odd behavior in my classes that I don't know how to work around. Apparently, PHP is getting my variables 'confused' with each other and assigning/returning the wrong data. My class design is as follows: class TestClass { var $TestLog; var $Data1; var $Data2; function TestClass() { $this->$Data1 = 234; $this->$TestLog = "HELLO"; $this->$Data2 = "wehre"; } function Report() { return $this->$TestLog; } } and this class is being used in the following manner: $test = new TestClass; echo $test->Report(); You would expect the output to read 'HELLO', but instead it reads 'wehre'. I'm totally confused ¿¿?? Any ideas? Thank you! Steven J. Walker Walker Effects www.walkereffects.com steve@walkereffects.com On Friday, February 21, 2003, at 01:32 PM, ML wrote:
I am unable to send emails, and there are no errors being generated or populated in the $php_errormsg variable, since I enabled track errors in the php.ini. So I have no idea why the mail send is failing. Am I supposed to specify a mail server to use for sending mail? My sendmail was setup automatically in my Redhat Setup and I have not touched its configuration options...is there something I need to change? The sendmail path that is shown in the phpinfo() function display is correct. Any feedback would be greatly appreciated. Thanks! -M L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#136564) next »