OK, will try. Does this work in the CVS version? <?php error_reporting(E_ALL); class A { public $_t = 'something'; public function __get($name) { $getter='get'.$name; if(method_exists($this,$getter)) { // getting a property return $this->$getter(); } } public function getTest() { return 'OK'; } } $result=''; $one = new A(); var_dump($one); echo "<BR>Test \$one->getTest(): "; echo $one->getTest(); echo "<BR>Test \$one->Test: "; echo $one->Test; echo "<BR>Test with eval: "; eval ('$result = $one->Test; '); echo $result; echo "<BR>Testing done."; On 3/2/06, Rasmus Lerdorf <rasmus@xxxxxxxxxxx> wrote: > steve wrote: > > I can't get APC 3.0.8 to work on anything, at all. On Windows, it > > crashes the server, and on Linux, it can't handle objects. For > > example: > > > > <?php > > > > class abc { > > } > > > > $a = new abc; > > > > var_dump($a); > > > > ?> > > > > Gives: > > > > NULL > > > > Any idea on what is going on? > > Use the CVS version. I need to push a new version out soon. > > cvs -d :pserver:cvsread@xxxxxxxxxxx:/repository login > Password: phpfi > cvs -d :pserver:cvsread@xxxxxxxxxxx:/repository co pecl/apc > cd pecl/apc > phpize > ./configure --enable-apc-mmap --with-apxs=/usr/local/bin/apxs \ > --with-php-config=/usr/local/bin/php-config > make > make install > > (and restart your web server) > > -Rasmus > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php