Re: APC and PHP 5.1.2
| From: | steve | Date: | Thu, 02 Mar 2006 22:05:58 +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-231376@lists.php.net to get a copy of this message | ||
OK, got it and installed it (checked the output of phpinfo to
confirm), and I get this on both the first load (uncached) and later
loads (cached):
NULL
Test $one->getTest():
With an error in the error log telling me I'm a dope for dereferencing
a null object.
Why does the weird stuff always happen to me?
Without APC it runs fine. I'm using Fastcgi version if that matters.
-steve--
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
>