|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-17 03:47 UTC] moriyoshi@php.net
[2003-05-17 13:57 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 07:00:01 2025 UTC |
When calling PHP script as directory index, it will be terminated with segment fault in file cgi_main.c at line 709. sapi/cgi/cgi_main.c: 708 if (stat( script_path_translated, &st ) == -1 ) { 709 char *pt = estrdup(script_path_translated); 710 int len = strlen(pt); 711 char *ptr; Test script: <?php phpinfo(); ?> Apatch setting (in .htaccess): DirectoryIndex index.cgi index.html Then, access to http://myhost.example.com/path/to/parent/directory/of/the/script/ Environment: SunOS 5.6 with Apache 1.2.4 (yep, very old...) Configure: --prefix=$HOME --disable-cli --disable-all --without-mysql --enable-safe-mode --with-pcre-regex --with-regex=php --enable-mbstring --enable-mbregex --enable-zend-multibyte --enable-fastcgi --enable-session (I can not swith to root, so I install PHP into my own directory) Osamu Shigematsu