apc

__PHP_Incomplete_Class_Name wrong

余生长醉 提交于 2019-11-28 09:58:49
We're randomly getting some very strange error logs. They don't happen on every page hit, even with the same parameters/actions/etc, and they don't seem repeatable, each one is different in its crash location, and context. But almost all have incorrect __PHP_Incomplete_Class_Name as the cause. One such error is: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "LoginLogging" of the object you are trying to operate on was loaded before unserialize() gets called or provide a __autoload() function to load the class

How to install apcu in windows

送分小仙女□ 提交于 2019-11-28 05:01:20
How can I install APCu in Windows? I found this . But I need a solution for Windows. I use PHP 5.5.6 (I have the XAMPP package). Robert This short and straight to the point tutorial should help you Install APCu on Windows Assumptions I assume that you know what is APC - Alternative PHP cache You want to install APCu because APC is not compatible anymore with PHP 5.5.x You want to install APCu for wamp, xampp. Mostly windows web development platforms for PHP Instructions Pre: All directory locations might be different for you depending on your wamp installation folder and your PHP/apache

Installing php_apc.dll on wampserver

只谈情不闲聊 提交于 2019-11-28 04:19:33
问题 I need your help. I'm trying to install php_apc.dll into my php directory. So far this is what i've done: I copied php_apc.dll to c:\wamp\bin\php\php5.3.0\ext. I've also restarted the server several times. But when i checked http://localhost/?phpinfo=1 There wasnt any evidence of APC Extension Installation. Please what i'm i doing wrong? I'll be most delighted with your answers, comments and suggestions. Thank you. 回答1: Read the tutorial How to install APC on Wamp. It seems you didnt add

best way to obtain a lock in php

一世执手 提交于 2019-11-28 03:24:42
I'm trying to update a variable in APC, and will be many processes trying to do that. APC doesn't provide locking functionality, so I'm considering using other mechanisms... what I've found so far is mysql's GET_LOCK(), and php's flock(). Anything else worth considering? Update: I've found sem_acquire, but it seems to be a blocking lock. harry /* CLASS ExclusiveLock Description ================================================================== This is a pseudo implementation of mutex since php does not have any thread synchronization objects This class uses flock() as a base to provide locking

sudo pecl install apc returns error

孤者浪人 提交于 2019-11-27 13:24:11
问题 I run the command: sudo pecl install apc The file gets downloaded, the configuration succeeds, then make is launched and I get the following error. /usr/include/php5/ext/pcre/php_pcre.h:29: fatal error: pcre.h: No such file or directory Is there a way to fix it? 回答1: PCRE is a dependency for installing APC. You can install it pretty quick with yum install pcre-devel or apt-get install libpcre3-dev once it's installed, re-run sudo pecl install apc 回答2: sudo apt-get install libpcre3-dev is the

PHP5 performance comparison, Windows and Linux

余生长醉 提交于 2019-11-27 12:34:01
问题 I have a question about Symfony2 performance. I have been developing with Symfony2 under Ubuntu 11.04 for a few weeks now, Apache 2.2.17, PHP 5.3.5, APC 3.1.9, no xDebug On the dev environment, the time given on the Symfony2 toolbar was never above 70 ms. Today, I've tried to install my app on a Windows 7 environment : Wampserver 2.2, PHP 5.3.8, Apache 2.2.21, APC 3.1.7, no xDebug The computer on the windows environment is much better than the one on ubuntu (SSD, Quad core, etc). And when I

Apache 2.4 + PHP-FPM and Authorization headers

陌路散爱 提交于 2019-11-27 03:39:36
Summary: Apache 2.4's mod_proxy does not seem to be passing the Authorization headers to PHP-FPM. Is there any way to fix this? Long version: I am running a server with Apache 2.4 and PHP-FPM. I am using APC for both opcode caching and user caching. As recommended by the Internet, I am using Apache 2.4's mod_proxy_fcgi to proxy the requests to FPM, like this: ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/foo/bar/$1 The setup works fine, except one thing: APC's bundled apc.php, used to monitor the status of APC does not allow me to log in (required for looking at user cache entries). When I

__PHP_Incomplete_Class_Name wrong

孤人 提交于 2019-11-27 03:18:44
问题 We're randomly getting some very strange error logs. They don't happen on every page hit, even with the same parameters/actions/etc, and they don't seem repeatable, each one is different in its crash location, and context. But almost all have incorrect __PHP_Incomplete_Class_Name as the cause. One such error is: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "LoginLogging" of the object you are trying to

How to install apcu in windows

こ雲淡風輕ζ 提交于 2019-11-27 00:44:51
问题 How can I install APCu in Windows? I found this. But I need a solution for Windows. I use PHP 5.5.6 (I have the XAMPP package). 回答1: This short and straight to the point tutorial should help you Install APCu on Windows Assumptions I assume that you know what is APC - Alternative PHP cache You want to install APCu because APC is not compatible anymore with PHP 5.5.x You want to install APCu for wamp, xampp. Mostly windows web development platforms for PHP Instructions Pre: All directory

best way to obtain a lock in php

半腔热情 提交于 2019-11-27 00:02:27
问题 I'm trying to update a variable in APC, and will be many processes trying to do that. APC doesn't provide locking functionality, so I'm considering using other mechanisms... what I've found so far is mysql's GET_LOCK(), and php's flock(). Anything else worth considering? Update: I've found sem_acquire, but it seems to be a blocking lock. 回答1: /* CLASS ExclusiveLock Description ================================================================== This is a pseudo implementation of mutex since php