#40419 [NEW]: Trailing Slash in CGI request don't work
From: samuele dot diella at gmail dot com
Operating system: Slackware 10.2
PHP version: 5.2.1
PHP Bug Type: CGI related
Bug description: Trailing Slash in CGI request don't work
Description:
------------
In php-5.2.1 compiled as CGI under Apache 1.3.37, when i enter an url with
a trailing slash, with no params after, i get a "No input file
specified.".
If i don't write the slash, or if i write a single character after the
slash, the request is handled correctly.
es.:
http://www.myserver.com/phpinfo.php5 --->
works
http://www.myserver.com/phpinfo.php5/ ---> No
input file specified.
http://www.myserver.com/phpinfo.php5/test
---> works
In php-5.2.0, compiled with the same config, the request is handled
correctly.
This is my config line:
./configure --prefix=/usr --with-xsl --sysconfdir=/etc
--enable-discard-path --with-config-file-path=/etc/apache/php5
--enable-safe-mode --with-openssl --with-mhash --enable-bcmath --with-bz2
--with-pic --enable-calendar --enable-ctype --with-gdbm --with-db3
--with-imap-ssl=/usr/local/lib/c-client
--with-imap=/usr/local/lib/c-client --enable-dbase --enable-ftp
--with-iconv --with-dom --with-exif --enable-exif --with-gd
--enable-gd-native-ttf --with-freetype-dir=/usr --with-t1lib=/usr
--with-jpeg-dir=/usr --with-png --with-gmp --enable-mbstring
--with-curl=/usr --with-pcre-regex=/usr --with-mysql
--with-mysql-sock=/var/run/mysql --with-mysqli --with-gettext=shared,/usr
--with-expat-dir=/usr --with-xml --with-tsrm-pthreads --with-mm=/usr
--enable-trans-sid --enable-shmop --enable-sockets --with-regex=php
--with-mime-magic --enable-sysvsem --enable-sysvshm --enable-yp
--enable-memory-limit --enable-shared --disable-debug --with-zlib=/usr
--with-mcrypt --with-ttf --enable-force-cgi-redirect
This is my Apache configuration:
AddType application/x-httpd-php5 .php5
Action application/x-httpd-php5 "/cgi-bin/php5"
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
I tryed many configuration options in php.ini and in configure command,
but i was not able to get it works as before.
--
Edit bug report at http://bugs.php.net/?id=40419&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40419&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40419&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40419&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40419&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40419&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40419&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40419&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40419&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40419&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40419&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40419&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40419&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40419&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40419&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40419&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40419&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40419&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40419&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40419&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40419&r=mysqlcfg
Thread (16 messages)
- samuele dot diella at gmail dot com
- hacker at ee dot ethz dot ch#40419 [Com]: Trailing Slash in CGI request don't work
- jankorichter at yahoo dot de#40419 [Com]: Trailing Slash in CGI request don't work
- bugs at spuetz dot ath dot cx#40419 [Com]: Trailing Slash in CGI request don't work
- bugs at spuetz dot ath dot cx#40419 [Com]: Trailing Slash in CGI request don't work
- jankorichter at yahoo dot de#40419 [Com]: Trailing Slash in CGI request don't work
- dmitry@php.net#40419 [Opn->Fbk]: Trailing Slash in CGI request don't work
- jankorichter at yahoo dot de#40419 [Com]: Trailing Slash in CGI request don't work
- bugs at spuetz dot ath dot cx#40419 [Com]: Trailing Slash in CGI request don't work
- nlopess@php.net#40419 [NoF->Asn]: Trailing Slash in CGI request don't work
- dmitry@php.net#40419 [Asn->Fbk]: Trailing Slash in CGI request don't work
- bugs at spuetz dot ath dot cx#40419 [Com]: Trailing Slash in CGI request don't work
- jankorichter at yahoo dot de#40419 [Com]: Trailing Slash in CGI request don't work
- tony2001@php.net#40419 [Fbk->Asn]: Trailing Slash in CGI request don't work
- dmitry@php.net#40419 [Asn->Csd]: Trailing Slash in CGI request don't work
- dmitry@php.net#40419 [Csd]: Trailing Slash in CGI request don't work