#23669 [NEW]: Segment fault occurres when calling PHP CGI as direcotry index

From: Date: Sat, 17 May 2003 05:31:21 +0000
Subject: #23669 [NEW]: Segment fault occurres when calling PHP CGI as direcotry index
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39830@lists.php.net to get a copy of this message
From: m5issige at mr dot hitachi-medical dot co dot jp Operating system: SunOS 5.6 PHP version: 4.3.2RC3 PHP Bug Type: CGI related Bug description: Segment fault occurres when calling PHP CGI as direcotry index 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 -- Edit bug report at http://bugs.php.net/?id=23669&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23669&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23669&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23669&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23669&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23669&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23669&r=support Expected behavior: http://bugs.php.net/fix.php?id=23669&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23669&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23669&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23669&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23669&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23669&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23669&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23669&r=gnused

« previous php.bugs (#39830) next »