Re: [PHP-DEV] Memory leak in include()/require() ?

2013-05-17 Thread Peter Wang
More information about this bug: To stably re-produce the bug, we need create 2 files. // file1.php, can be empty // leak.php wrote: > Hi, > > I found that the memory leak is actually related to APC, > even with the latest version of PHP (5.3.25) and latest version of APC > (3.1.13), > the memo

Re: [PHP-DEV] Memory leak in include()/require() ?

2013-05-17 Thread Peter Wang
Hi, Thanks for your information. I also tested the latest stable version of APC (3.1.9), which has the same problem. On Fri, May 17, 2013 at 9:42 AM, Leigh wrote: > > > > I found that the memory leak is actually related to APC, > > > > even with the lat

Re: [PHP-DEV] Memory leak in include()/require() ?

2013-05-16 Thread Peter Wang
Hi, the bug report is here: https://bugs.php.net/bug.php?id=64859 thanks. On Thu, May 16, 2013 at 8:57 PM, Stas Malyshev wrote: > Hi! > > > I found that the memory leak is actually related to APC, > > even with the latest version of PHP (5.3.25) and latest version of APC > > (3.1.13), > > Plea

Re: [PHP-DEV] Memory leak in include()/require() ?

2013-05-16 Thread Peter Wang
Hi, I found that the memory leak is actually related to APC, even with the latest version of PHP (5.3.25) and latest version of APC (3.1.13), the memory leak is still there, to re-produce the bug, just run this script and watch the memory usage of the php process (please run with: php -d apc.enabl

Re: [PHP-DEV] Memory leak in include()/require() ?

2013-05-16 Thread Peter Wang
I didn't find the history comments of that bug, now I see it, anyway, thanks a lot, sorry for the noise. On Thu, May 16, 2013 at 11:40 AM, Stas Malyshev wrote: > Hi! > > > hi, did anyone come across the memory leak of require()/include(), > > I just saw this bug report: https://bugs.php.net/bug.

[PHP-DEV] Memory leak in include()/require() ?

2013-05-16 Thread peter wang
hi, did anyone come across the memory leak of require()/include(), I just saw this bug report: https://bugs.php.net/bug.php?id=47038, but it was closed with nothing explained. the php version I used: php --version PHP 5.3.6-13ubuntu3.9 with Suhosin-Patch (cli) (built: Sep 12 2012 19:00:27) Copy

[PHP-DEV] is there any way to get realpath cache hit ratio of php?

2009-08-11 Thread Peter Wang
hi, Is there any way to get realpath cache hit ratio of php? realpath_cache_size integer Determines the size of the realpath cache to be used by PHP. This value should be increased on systems where PHP opens many files, to reflect the quantity of the file operations performed. realpath_cache_t

[PHP-DEV] Is there any considerations for not putting php scripts in tmpfs?

2009-08-10 Thread Peter Wang
Hi internals, sorry if it is a wrong lists for this question. I have read many articles/messages about using tmpfs store temp files, for example, php session data, smarty compied templates and so on. An obvious reason for that is: it doesn't matter about data loss caused by machine restart/power

Re: [PHP-DEV] PHP CLI and opcode caches

2009-07-14 Thread Peter Wang
Thomas Koch writes: http://www.php.net/manual/en/apc.configuration.php#ini.apc.enable-cli is that what you want? > Hi, > > I have some PHP scripts to be run as daemons or as gearman workers. Now it > would be fine, if PHP could make use of an opcode cache also for CLI scripts. > > Is anybody a

[PHP-DEV] A question about ap_content_length_filter()

2009-06-09 Thread Peter Wang
hi, all. test the php code above, when request with "/v.php?s=8000", I got HTTP/1.1 200 OK Date: Tue, 09 Jun 2009 11:41:54 GMT Server: Apache Content-Length: 8000 Connection: close Content-Type: text/plain it's fine, but while request with "/v.php?s=8001", i got: HTTP/1.1 200 OK Date: Tue,