Re: APC and PHP 5.1.2

From: Date: Thu, 02 Mar 2006 21:32:04 +0000
Subject: Re: APC and PHP 5.1.2
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-231370@lists.php.net to get a copy of this message
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@lerdorf.com> 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@cvs.php.net:/repository login > Password: phpfi > cvs -d :pserver:cvsread@cvs.php.net:/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 >

« previous php.general (#231370) next »