Re: [PHP4BETA] Small question about COM syntax

From: Date: Sun, 21 Nov 1999 02:30:09 +0000
Subject: Re: [PHP4BETA] Small question about COM syntax
Groups: php.version4 
Request: Send a blank email to php-version4+get-6611@lists.php.net to get a copy of this message
"Taras Tielkes" writes: > $test = new COM("SmallCls"); > print $test->getClass()->toString(); // Gives parse error This appears to be a limitation of the zend parser. Playing around with Java: $test = new Java("java.util.Date"); print $test->getClass()->toString(); // Gives parse error print $test->class->toString(); // Sat Nov 20 21:26:00 EST 1999 $temp = $test->class; print $temp->toString(); // class java.util.Date Only the last answer is correct. The middle one looks like a bug. My preference would be that the first one be treated like a bug too. P.S. Your example looks suspiciously like Java to me...

« previous php.version4 (#6611) next »