Hi, I see a lot of memory leaks in ext filter when run php as FastCGI. The valgrind output follows.
==2482== 554 bytes in 27 blocks are definitely lost in loss record 37 of 56 ==2482== at 0x4005400: malloc (vg_replace_malloc.c:149) ==2482== by 0x82EE250: _emalloc (zend_alloc.c:1644) ==2482== by 0x82EE6AB: _estrndup (zend_alloc.c:1767) ==2482== by 0x80FCC05: php_sapi_filter (filter.c:389) ==2482== by 0x8382B4C: cgi_php_import_environment_variables (cgi_main.c:509) ==2482== by 0x82C87B0: php_auto_globals_create_env (php_variables.c:788) ==2482== by 0x82C7F83: php_hash_environment (php_variables.c:673) ==2482== by 0x82B8E76: php_request_startup (main.c:1126) ==2482== by 0x83846CB: main (cgi_main.c:1634) The easyst way to reproduce/debug is run PHP as separate process (php -b <socket>) and configure FastCGI module to use external server on the socket. I am not sure that ext/filter is doing its work in right way. CGI and FastCGI register the same variables in ENV and SERVER arrays. But they really register varaible only once then duplicate array. Thanks. Dmitry. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php