#38227 [Opn]: Memory leak after apache reconfigure
ID: 38227 User updated by: adsh at univ dot kiev dot ua Reported By: adsh at univ dot kiev dot ua Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.11, 5.5 PHP Version: 4.4.2 New Comment: Apache without PHP: apachectl start ps aux | grep httpd | awk '{ print $5}' 3948 3948 3948 3948 3948 3948 1508 apachectl graceful (10 times) ps aux | grep httpd | awk '{ print $5}' 3948 3948 3948 3948 3948 3948 1468 apachectl graceful (10 times) ps aux | grep httpd | awk '{ print $5}' 3948 3948 3948 3948 3948 3948 1508 Previous Comments: ---- [2006-07-26 19:15:05] adsh at univ dot kiev dot ua Description: Memory leak after apachectl graceful. Reproduce code: --- httpd -v Server version: Apache/2.0.58 Server built: May 7 2006 20:48:38 httpd -l Compiled in modules: core.c mod_access.c mod_auth.c mod_include.c mod_log_config.c mod_env.c mod_setenvif.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_cgi.c mod_negotiation.c mod_dir.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_so.c apachectl start ps aux | grep httpd | awk '{ print $5}' 8600 8624 8624 8624 8624 8624 1508 apachectl graceful (10 times) ps aux | grep httpd | awk '{ print $5}' 8892 8916 8916 8916 8916 8916 1508 apachectl graceful (10 times) ps aux | grep httpd | awk '{ print $5}' 9192 9216 9216 9216 9216 9216 1508 -- Edit this bug report at http://bugs.php.net/?id=38227&edit=1
#38227 [NEW]: Memory leak after apache reconfigure
From: adsh at univ dot kiev dot ua Operating system: FreeBSD 4.11, 5.5 PHP version: 4.4.2 PHP Bug Type: Apache2 related Bug description: Memory leak after apache reconfigure Description: Memory leak after apachectl graceful. Reproduce code: --- httpd -v Server version: Apache/2.0.58 Server built: May 7 2006 20:48:38 httpd -l Compiled in modules: core.c mod_access.c mod_auth.c mod_include.c mod_log_config.c mod_env.c mod_setenvif.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_cgi.c mod_negotiation.c mod_dir.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_so.c apachectl start ps aux | grep httpd | awk '{ print $5}' 8600 8624 8624 8624 8624 8624 1508 apachectl graceful (10 times) ps aux | grep httpd | awk '{ print $5}' 8892 8916 8916 8916 8916 8916 1508 apachectl graceful (10 times) ps aux | grep httpd | awk '{ print $5}' 9192 9216 9216 9216 9216 9216 1508 -- Edit bug report at http://bugs.php.net/?id=38227&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38227&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38227&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38227&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38227&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38227&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38227&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=38227&r=needscript Try newer version:http://bugs.php.net/fix.php?id=38227&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38227&r=support Expected behavior:http://bugs.php.net/fix.php?id=38227&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38227&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38227&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38227&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38227&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38227&r=dst IIS Stability:http://bugs.php.net/fix.php?id=38227&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38227&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38227&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38227&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=38227&r=mysqlcfg
#35186 [Com]: getcwd() returns "/" when using with mod_rewrite
ID: 35186 Comment by: adsh at univ dot kiev dot ua Reported By: samm at os2 dot kiev dot ua Status: Feedback Bug Type: Apache2 related Operating System: FreeBSD 6 PHP Version: 5CVS, 4CVS (2005-11-11) (snap) New Comment: I test php4-STABLE-200511172154/libs/libphp4.so. Problem fixed. Thanks. Previous Comments: [2005-11-17 23:30:44] [EMAIL PROTECTED] Download a snap in the morning, the fix didn't get into this snapshot (Ilia has committed it only 1.5 hours ago). [2005-11-17 23:19:50] samm at os2 dot kiev dot ua Tested with php5-200511171930 - nothing changed, bug is still present :( [2005-11-17 22:11:40] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Hopefully fixed in CVS. Please test it once again and confirm. [2005-11-17 12:47:50] samm at os2 dot kiev dot ua Just to make you absolutely sure i repeat this tests with latest php5 cvs snapshot (php5-200511170930). Configure string was "./configure --with-apxs2=/usr/local/sbin/apxs". $ grep php httpd.conf LoadModule php5_module /usr/home/samm/src/php/php5-200511170930/libs/libphp5.so DirectoryIndex index.php index.html index.html.var AddType application/x-httpd-php .php .phtml test.php content: You can see result of this script, which i uploaded to my server: test.php output when requested as test.html: http://www.uba.ua/test/phptest/test.html.out.html test.php output when requested as test.php: http://www.uba.ua/test/phptest/test.php.out.html I hope, this help you and you will not ask me again if i use latest php ;-) [2005-11-17 10:59:45] samm at os2 dot kiev dot ua Yes, i tried with latest PHP too. See "I check this with php5-200511102130 - the bug is still present.". The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35186 -- Edit this bug report at http://bugs.php.net/?id=35186&edit=1
#35186 [Com]: getcwd() returns "/" when using with mod_rewrite
ID: 35186 Comment by: adsh at univ dot kiev dot ua Reported By: samm at os2 dot kiev dot ua Status: Open Bug Type: Apache2 related Operating System: FreeBSD 6 PHP Version: 5CVS, 4CVS (2005-11-11) (snap) New Comment: I have blank reply in 5 attempts with instructions in the 1-st message. telnet www.server.kiev.ua 80 Trying 193.xxx.xxx.xxx... Connected to www.server.kiev.ua. Escape character is '^]'. GET http://www.server.kiev.ua/test/test.html HTTP/1.0 HTTP/1.0 200 OK Date: Mon, 14 Nov 2005 19:42:58 GMT Server: Apache/2.0.55 (FreeBSD) X-Powered-By: PHP/4.4.2-dev Content-Length: 0 Connection: close Content-Type: text/html; charset=windows-1251 Connection closed by foreign host. php4-STABLE-200511131945, FreeBSD 4.11 Previous Comments: [2005-11-11 08:04:02] samm at os2 dot kiev dot ua I played with different version of the sapi_apache2.c and found that last working version was 1.1.2.40 and first failed was 1.1.2.40.2.5 . I was unable to check versions between this, because they failed to work with mod_rewrite giving no output at all. I hope, this help you. [2005-11-11 06:27:55] samm at os2 dot kiev dot ua HAVE_BROKEN_GETCWD is undefined /* Define if system has broken getcwd */ /* #undef HAVE_BROKEN_GETCWD */ And i used last LoadModule item for the php4_module in the httpd.conf: LoadModule php4_module /usr/home/samm/src/php4-STABLE-200511101949/libs/libphp4.so Also i have AddType application/x-httpd-php .php .phtml to enable parsing of php. [2005-11-11 00:44:11] [EMAIL PROTECTED] And what is HAVE_BROKEN_GETCWD set to in the generated main/php_config.h file? [2005-11-11 00:35:26] [EMAIL PROTECTED] How have you enabled PHP in your httpd.conf? (what loadmodule/etc. lines you added) [2005-11-11 00:32:19] [EMAIL PROTECTED] The only file changed was sapi/apache2handler/sapi_apache2.c The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35186 -- Edit this bug report at http://bugs.php.net/?id=35186&edit=1
#35207 [Fbk->Opn]: mod_rewrite not working properly
ID: 35207 User updated by: adsh at univ dot kiev dot ua Reported By: adsh at univ dot kiev dot ua -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.11 PHP Version: 4.4.1 New Comment: 1. I understand. Such link work fine in both cases (rewrite is On or Off): http://adsh.ukrweb.net/blog/blog.php?id=15 2. mod_rewrite is On. There is not #3518 bug. I recompile and test libphp4.so version 4.1.x, 4.2.x, 4.3.x, 4.4.0. Bug is only with version >= 4.4.1. Previous Comments: [2005-11-14 18:53:40] [EMAIL PROTECTED] >1. If I disable mod_rewrite I have standart 404 error: Obviously you need to change the URL to the real one to execute the script. >2. I add var_dump(getcwd()); at the top of index.php. This is with mod_rewrite On or Off? Isn't the bug http://bugs.php.net/bug.php?id=35186 the same issue? [2005-11-14 18:39:06] adsh at univ dot kiev dot ua 1. If I disable mod_rewrite I have standart 404 error: The requested URL /blog/article/15/ was not found on this server. 2. I add var_dump(getcwd()); at the top of index.php. Result in browser: string(29) "/home/adsh.ukrweb.net/blog" There are no errors in apache error log for this request. [2005-11-14 10:08:44] [EMAIL PROTECTED] Why did you decide it happens only when mod_rewrite is On? Please add this line: var_dump(getcwd()); before the include(); and paste it's output here. ---- [2005-11-14 00:49:12] adsh at univ dot kiev dot ua If I replace libphp4.so to version 4.4.0 all work fine! I don't use absolute paths. mod_rewrite is on - You can test this URL (mod_rewrite referer protection): http://adsh.ukrweb.net/blog/upload/isa_server_2000.jpg You can see more info in this ULR: http://servous.se/punbb/viewtopic.php?pid=1329 [2005-11-14 00:41:02] [EMAIL PROTECTED] The error message is quite descriptive. Did you try to see if the file "inc/config.php" is really there? Did you try to use absolute paths? Why did you decide it happens only when mod_rewrite is On? Try to give some more info about the issue. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35207 -- Edit this bug report at http://bugs.php.net/?id=35207&edit=1
#35207 [Fbk->Opn]: mod_rewrite not working properly
ID: 35207 User updated by: adsh at univ dot kiev dot ua Reported By: adsh at univ dot kiev dot ua -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.11 PHP Version: 4.4.1 New Comment: 1. If I disable mod_rewrite I have standart 404 error: The requested URL /blog/article/15/ was not found on this server. 2. I add var_dump(getcwd()); at the top of index.php. Result in browser: string(29) "/home/adsh.ukrweb.net/blog" There are no errors in apache error log for this request. Previous Comments: [2005-11-14 10:08:44] [EMAIL PROTECTED] Why did you decide it happens only when mod_rewrite is On? Please add this line: var_dump(getcwd()); before the include(); and paste it's output here. [2005-11-14 00:49:12] adsh at univ dot kiev dot ua If I replace libphp4.so to version 4.4.0 all work fine! I don't use absolute paths. mod_rewrite is on - You can test this URL (mod_rewrite referer protection): http://adsh.ukrweb.net/blog/upload/isa_server_2000.jpg You can see more info in this ULR: http://servous.se/punbb/viewtopic.php?pid=1329 [2005-11-14 00:41:02] [EMAIL PROTECTED] The error message is quite descriptive. Did you try to see if the file "inc/config.php" is really there? Did you try to use absolute paths? Why did you decide it happens only when mod_rewrite is On? Try to give some more info about the issue. ---- [2005-11-14 00:01:04] adsh at univ dot kiev dot ua A recompile libphp4.so to version php4-STABLE-200511131945 (4.4.2-dev). No results, the same error: URL to test: http://adsh.ukrweb.net/blog/article/15/ Errors: [Mon Nov 14 00:51:15 2005] [error] [client 212.9.224.211] PHP Warning: main(inc/config.php): failed to open stream: No such file or directory in /home/adsh.ukrweb.net/blog/inc/tpl_header_blog.php on line 16, referer: http://adsh.ukrweb.net/blog/ [Mon Nov 14 00:51:15 2005] [error] [client 212.9.224.211] PHP Fatal error: main(): Failed opening required 'inc/config.php' (include_path='.:/home/test/php') in /home/adsh.ukrweb.net/blog/inc/tpl_header_blog.php on line 16, referer: http://adsh.ukrweb.net/blog/ include_path is set in php.ini for some other scrips. With version 4.4.0 I nave no any rewrite errors. [2005-11-13 23:17:43] [EMAIL PROTECTED] Please use a snapshot from http://snaps.php.net - we can't support versions with external modifications The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35207 -- Edit this bug report at http://bugs.php.net/?id=35207&edit=1
#35207 [Fbk->Opn]: mod_rewrite not working properly
ID: 35207 User updated by: adsh at univ dot kiev dot ua Reported By: adsh at univ dot kiev dot ua -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.11 PHP Version: 4.4.1 New Comment: If I replace libphp4.so to version 4.4.0 all work fine! I don't use absolute paths. mod_rewrite is on - You can test this URL (mod_rewrite referer protection): http://adsh.ukrweb.net/blog/upload/isa_server_2000.jpg You can see more info in this ULR: http://servous.se/punbb/viewtopic.php?pid=1329 Previous Comments: [2005-11-14 00:41:02] [EMAIL PROTECTED] The error message is quite descriptive. Did you try to see if the file "inc/config.php" is really there? Did you try to use absolute paths? Why did you decide it happens only when mod_rewrite is On? Try to give some more info about the issue. [2005-11-14 00:01:04] adsh at univ dot kiev dot ua A recompile libphp4.so to version php4-STABLE-200511131945 (4.4.2-dev). No results, the same error: URL to test: http://adsh.ukrweb.net/blog/article/15/ Errors: [Mon Nov 14 00:51:15 2005] [error] [client 212.9.224.211] PHP Warning: main(inc/config.php): failed to open stream: No such file or directory in /home/adsh.ukrweb.net/blog/inc/tpl_header_blog.php on line 16, referer: http://adsh.ukrweb.net/blog/ [Mon Nov 14 00:51:15 2005] [error] [client 212.9.224.211] PHP Fatal error: main(): Failed opening required 'inc/config.php' (include_path='.:/home/test/php') in /home/adsh.ukrweb.net/blog/inc/tpl_header_blog.php on line 16, referer: http://adsh.ukrweb.net/blog/ include_path is set in php.ini for some other scrips. With version 4.4.0 I nave no any rewrite errors. [2005-11-13 23:17:43] [EMAIL PROTECTED] Please use a snapshot from http://snaps.php.net - we can't support versions with external modifications -------- [2005-11-13 23:10:14] adsh at univ dot kiev dot ua I can do it when FreeBSD port been updated: http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php4/ [2005-11-13 18:10:55] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35207 -- Edit this bug report at http://bugs.php.net/?id=35207&edit=1
#35207 [Fbk->Opn]: mod_rewrite not working properly
ID: 35207 User updated by: adsh at univ dot kiev dot ua Reported By: adsh at univ dot kiev dot ua -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.11 PHP Version: 4.4.1 New Comment: A recompile libphp4.so to version php4-STABLE-200511131945 (4.4.2-dev). No results, the same error: URL to test: http://adsh.ukrweb.net/blog/article/15/ Errors: [Mon Nov 14 00:51:15 2005] [error] [client 212.9.224.211] PHP Warning: main(inc/config.php): failed to open stream: No such file or directory in /home/adsh.ukrweb.net/blog/inc/tpl_header_blog.php on line 16, referer: http://adsh.ukrweb.net/blog/ [Mon Nov 14 00:51:15 2005] [error] [client 212.9.224.211] PHP Fatal error: main(): Failed opening required 'inc/config.php' (include_path='.:/home/test/php') in /home/adsh.ukrweb.net/blog/inc/tpl_header_blog.php on line 16, referer: http://adsh.ukrweb.net/blog/ include_path is set in php.ini for some other scrips. With version 4.4.0 I nave no any rewrite errors. Previous Comments: [2005-11-13 23:17:43] [EMAIL PROTECTED] Please use a snapshot from http://snaps.php.net - we can't support versions with external modifications ---- [2005-11-13 23:10:14] adsh at univ dot kiev dot ua I can do it when FreeBSD port been updated: http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php4/ [2005-11-13 18:10:55] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ---- [2005-11-13 03:15:51] adsh at univ dot kiev dot ua Example: Link http://adsh.ukrweb.net/blog/category/3/ - generate empty page. ---- [2005-11-13 03:10:19] adsh at univ dot kiev dot ua Description: After I update PHP from version 4.4.0 to version 4.4.1 (FreeBSD port mod_php4-4.4.1_1,1 with Apache 2.0.55) URL rewrite not working properly: http://servous.se/punbb/viewtopic.php?pid=1329 Bug is not complite fixed in this topic: http://bugs.php.net/bug.php?id=35059 -- Edit this bug report at http://bugs.php.net/?id=35207&edit=1
#35207 [Fbk->Opn]: mod_rewrite not working properly
ID: 35207 User updated by: adsh at univ dot kiev dot ua Reported By: adsh at univ dot kiev dot ua -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.11 PHP Version: 4.4.1 New Comment: I can do it when FreeBSD port been updated: http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php4/ Previous Comments: [2005-11-13 18:10:55] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-11-13 03:15:51] adsh at univ dot kiev dot ua Example: Link http://adsh.ukrweb.net/blog/category/3/ - generate empty page. [2005-11-13 03:10:19] adsh at univ dot kiev dot ua Description: After I update PHP from version 4.4.0 to version 4.4.1 (FreeBSD port mod_php4-4.4.1_1,1 with Apache 2.0.55) URL rewrite not working properly: http://servous.se/punbb/viewtopic.php?pid=1329 Bug is not complite fixed in this topic: http://bugs.php.net/bug.php?id=35059 -- Edit this bug report at http://bugs.php.net/?id=35207&edit=1
#35207 [Opn]: mod_rewrite not working properly
ID: 35207 User updated by: adsh at univ dot kiev dot ua Reported By: adsh at univ dot kiev dot ua Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.11 PHP Version: 4.4.1 New Comment: Example: Link http://adsh.ukrweb.net/blog/category/3/ - generate empty page. Previous Comments: [2005-11-13 03:10:19] adsh at univ dot kiev dot ua Description: After I update PHP from version 4.4.0 to version 4.4.1 (FreeBSD port mod_php4-4.4.1_1,1 with Apache 2.0.55) URL rewrite not working properly: http://servous.se/punbb/viewtopic.php?pid=1329 Bug is not complite fixed in this topic: http://bugs.php.net/bug.php?id=35059 -- Edit this bug report at http://bugs.php.net/?id=35207&edit=1
#35207 [NEW]: mod_rewrite not working properly
From: adsh at univ dot kiev dot ua Operating system: FreeBSD 4.11 PHP version: 4.4.1 PHP Bug Type: Apache2 related Bug description: mod_rewrite not working properly Description: After I update PHP from version 4.4.0 to version 4.4.1 (FreeBSD port mod_php4-4.4.1_1,1 with Apache 2.0.55) URL rewrite not working properly: http://servous.se/punbb/viewtopic.php?pid=1329 Bug is not complite fixed in this topic: http://bugs.php.net/bug.php?id=35059 -- Edit bug report at http://bugs.php.net/?id=35207&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35207&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35207&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35207&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=35207&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=35207&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35207&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35207&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35207&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35207&r=support Expected behavior: http://bugs.php.net/fix.php?id=35207&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35207&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35207&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=35207&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35207&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=35207&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35207&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35207&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35207&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35207&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35207&r=mysqlcfg