[PHP-DEV] Bug #11692 Updated: CGI problem with http://myweb/script.php/variable

2001-12-12 Thread yohgaki

ID: 11692
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: LInux
PHP Version: 4.0.6
New Comment:

Why you have --with-apxs=/usr/sbin/apxs while you are using GCI?
I suppose it is not a bug...
If you think this is a bug, please provide the reason



Previous Comments:


[2001-06-26 08:01:35] [EMAIL PROTECTED]

I forgot to write that I call php as CGI wirh Action 
directive in apache.

Regards
-- 
Piotr Gardy, Dzial obslugi serwerow PIK-Net Sieci 
Rozlegle
Toszecka 102, Gliwice Poland, +48 32 338-33-53
e-mail: [EMAIL PROTECTED]





[2001-06-26 07:15:39] [EMAIL PROTECTED]

Hello.

I've php compiled with:
/configure' '--prefix=/usr' '--with-config-file-path=/etc' 
'--disable-debug' '--enable-pic' '--enable-shared' 
'--enable-inline-optimization' 
'--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' 
'--with-regex=system' '--with-gettext' '--with-gd=shared' 
'--with-jpeg-dir=/usr' '--with-png' '--with-zlib' 
'--without-db2' '--without-db3' '--with-gdbm' 
'--enable-debugger' '--enable-magic-quotes' 
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' 
'--enable-sysvshm' '--enable-track-vars' '--enable-yp' 
'--enable-ftp' '--enable-wddx' '--without-mysql' 
'--without-pgsql' '--without-oracle' '--without-oci8' 
'--disable-discard-path' '--with-xml

And now if I call url: http://myweb/script.php/variable 
everything is ok. But If i do this with php as CGI i've 
got 500 error.

This is enviroment variables set by apache:
DOCUMENT_ROOT='/var/www/html'
HTTP_ACCEPT='image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-powerpoint, 
application/vnd.ms-excel, application/msword, 
application/pdf, */*'
HTTP_ACCEPT_ENCODING='gzip, deflate'
HTTP_ACCEPT_LANGUAGE='pl'
HTTP_CONNECTION='Keep-Alive'
HTTP_HOST='trejsrut.silesia.pik-net.pl'
HTTP_USER_AGENT='Mozilla/4.0 (compatible; MSIE 5.01; 
Windows NT 5.0)'
PATH='/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin'
REDIRECT_STATUS='200'
REDIRECT_URL='/tst.php/123/123'
REMOTE_ADDR='213.186.64.5'
REMOTE_HOST='azazel.silesia.pik-net.pl'
REMOTE_PORT='1498'
SCRIPT_FILENAME='/var/www/cgi-bin/php'
SERVER_ADDR='213.186.64.21'
SERVER_ADMIN='[EMAIL PROTECTED]'
SERVER_NAME='trejsrut.silesia.pik-net.pl'
SERVER_PORT='80'
SERVER_SIGNATURE='Apache/1.3.14 Server at 
trejsrut.silesia.pik-net.pl Port 80'
SERVER_SOFTWARE='Apache/1.3.14 (Unix)  (Red-Hat/Linux) 
mod_ssl/2.7.1 OpenSSL/0.9.5a DAV/1.0.2 PHP/4.0.6 
mod_perl/1.24'
GATEWAY_INTERFACE='CGI/1.1'
SERVER_PROTOCOL='HTTP/1.1'
REQUEST_METHOD='GET'
QUERY_STRING=''
REQUEST_URI='/tst.php/123/123'
SCRIPT_NAME='/cgi-bin/php'
PATH_INFO='/tst.php/123/123'
PATH_TRANSLATED='/var/www/html/tst.php/123/123'DOCUMENT_ROOT='/var/www/html'
HTTP_ACCEPT='image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-powerpoint, 
application/vnd.ms-excel, application/msword, 
application/pdf, */*'
HTTP_ACCEPT_ENCODING='gzip, deflate'
HTTP_ACCEPT_LANGUAGE='pl'
HTTP_CONNECTION='Keep-Alive'
HTTP_HOST='trejsrut.silesia.pik-net.pl'
HTTP_USER_AGENT='Mozilla/4.0 (compatible; MSIE 5.01; 
Windows NT 5.0)'
PATH='/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin'
REDIRECT_STATUS='200'
REDIRECT_URL='/tst.php/123/123'
REMOTE_ADDR='213.186.64.5'
REMOTE_HOST='azazel.silesia.pik-net.pl'
REMOTE_PORT='1498'
SCRIPT_FILENAME='/var/www/cgi-bin/php'
SERVER_ADDR='213.186.64.21'
SERVER_ADMIN='[EMAIL PROTECTED]'
SERVER_NAME='trejsrut.silesia.pik-net.pl'
SERVER_PORT='80'
SERVER_SIGNATURE='Apache/1.3.14 Server at 
trejsrut.silesia.pik-net.pl Port 80'
SERVER_SOFTWARE='Apache/1.3.14 (Unix)  (Red-Hat/Linux) 
mod_ssl/2.7.1 OpenSSL/0.9.5a DAV/1.0.2 PHP/4.0.6 
mod_perl/1.24'
GATEWAY_INTERFACE='CGI/1.1'
SERVER_PROTOCOL='HTTP/1.1'
REQUEST_METHOD='GET'
QUERY_STRING=''
REQUEST_URI='/tst.php/123/123'
SCRIPT_NAME='/cgi-bin/php'
PATH_INFO='/tst.php/123/123'
PATH_TRANSLATED='/var/www/html/tst.php/123/123'

If I call php with this variables it's breaking work.
This is strace of this:
munmap(0x40017000, 80794)   = 0
open(/etc/protocols, O_RDONLY)= 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1567, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(4, # /etc/protocols:\n# $Id: protoco..., 4096) = 
1567
close(4)= 0
munmap(0x40017000, 4096)= 0
open(/etc/protocols, O_RDONLY)= 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1567, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000

[PHP-DEV] Bug #11692 Updated: CGI problem with http://myweb/script.php/variable

2001-06-26 Thread pogar

ID: 11692
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: LInux
PHP Version: 4.0.6
Description: CGI problem with http://myweb/script.php/variable

I forgot to write that I call php as CGI wirh Action 
directive in apache.

Regards
-- 
Piotr Gardy, Dzial obslugi serwerow PIK-Net Sieci 
Rozlegle
Toszecka 102, Gliwice Poland, +48 32 338-33-53
e-mail: [EMAIL PROTECTED]



Previous Comments:
---

[2001-06-26 07:15:39] [EMAIL PROTECTED]
Hello.

I've php compiled with:
/configure' '--prefix=/usr' '--with-config-file-path=/etc' 
'--disable-debug' '--enable-pic' '--enable-shared' 
'--enable-inline-optimization' 
'--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' 
'--with-regex=system' '--with-gettext' '--with-gd=shared' 
'--with-jpeg-dir=/usr' '--with-png' '--with-zlib' 
'--without-db2' '--without-db3' '--with-gdbm' 
'--enable-debugger' '--enable-magic-quotes' 
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' 
'--enable-sysvshm' '--enable-track-vars' '--enable-yp' 
'--enable-ftp' '--enable-wddx' '--without-mysql' 
'--without-pgsql' '--without-oracle' '--without-oci8' 
'--disable-discard-path' '--with-xml

And now if I call url: http://myweb/script.php/variable 
everything is ok. But If i do this with php as CGI i've 
got 500 error.

This is enviroment variables set by apache:
DOCUMENT_ROOT='/var/www/html'
HTTP_ACCEPT='image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-powerpoint, 
application/vnd.ms-excel, application/msword, 
application/pdf, */*'
HTTP_ACCEPT_ENCODING='gzip, deflate'
HTTP_ACCEPT_LANGUAGE='pl'
HTTP_CONNECTION='Keep-Alive'
HTTP_HOST='trejsrut.silesia.pik-net.pl'
HTTP_USER_AGENT='Mozilla/4.0 (compatible; MSIE 5.01; 
Windows NT 5.0)'
PATH='/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin'
REDIRECT_STATUS='200'
REDIRECT_URL='/tst.php/123/123'
REMOTE_ADDR='213.186.64.5'
REMOTE_HOST='azazel.silesia.pik-net.pl'
REMOTE_PORT='1498'
SCRIPT_FILENAME='/var/www/cgi-bin/php'
SERVER_ADDR='213.186.64.21'
SERVER_ADMIN='[EMAIL PROTECTED]'
SERVER_NAME='trejsrut.silesia.pik-net.pl'
SERVER_PORT='80'
SERVER_SIGNATURE='Apache/1.3.14 Server at 
trejsrut.silesia.pik-net.pl Port 80'
SERVER_SOFTWARE='Apache/1.3.14 (Unix)  (Red-Hat/Linux) 
mod_ssl/2.7.1 OpenSSL/0.9.5a DAV/1.0.2 PHP/4.0.6 
mod_perl/1.24'
GATEWAY_INTERFACE='CGI/1.1'
SERVER_PROTOCOL='HTTP/1.1'
REQUEST_METHOD='GET'
QUERY_STRING=''
REQUEST_URI='/tst.php/123/123'
SCRIPT_NAME='/cgi-bin/php'
PATH_INFO='/tst.php/123/123'
PATH_TRANSLATED='/var/www/html/tst.php/123/123'DOCUMENT_ROOT='/var/www/html'
HTTP_ACCEPT='image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-powerpoint, 
application/vnd.ms-excel, application/msword, 
application/pdf, */*'
HTTP_ACCEPT_ENCODING='gzip, deflate'
HTTP_ACCEPT_LANGUAGE='pl'
HTTP_CONNECTION='Keep-Alive'
HTTP_HOST='trejsrut.silesia.pik-net.pl'
HTTP_USER_AGENT='Mozilla/4.0 (compatible; MSIE 5.01; 
Windows NT 5.0)'
PATH='/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin'
REDIRECT_STATUS='200'
REDIRECT_URL='/tst.php/123/123'
REMOTE_ADDR='213.186.64.5'
REMOTE_HOST='azazel.silesia.pik-net.pl'
REMOTE_PORT='1498'
SCRIPT_FILENAME='/var/www/cgi-bin/php'
SERVER_ADDR='213.186.64.21'
SERVER_ADMIN='[EMAIL PROTECTED]'
SERVER_NAME='trejsrut.silesia.pik-net.pl'
SERVER_PORT='80'
SERVER_SIGNATURE='Apache/1.3.14 Server at 
trejsrut.silesia.pik-net.pl Port 80'
SERVER_SOFTWARE='Apache/1.3.14 (Unix)  (Red-Hat/Linux) 
mod_ssl/2.7.1 OpenSSL/0.9.5a DAV/1.0.2 PHP/4.0.6 
mod_perl/1.24'
GATEWAY_INTERFACE='CGI/1.1'
SERVER_PROTOCOL='HTTP/1.1'
REQUEST_METHOD='GET'
QUERY_STRING=''
REQUEST_URI='/tst.php/123/123'
SCRIPT_NAME='/cgi-bin/php'
PATH_INFO='/tst.php/123/123'
PATH_TRANSLATED='/var/www/html/tst.php/123/123'

If I call php with this variables it's breaking work.
This is strace of this:
munmap(0x40017000, 80794)   = 0
open(/etc/protocols, O_RDONLY)= 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1567, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(4, # /etc/protocols:n# $Id: protoco..., 4096) = 
1567
close(4)= 0
munmap(0x40017000, 4096)= 0
open(/etc/protocols, O_RDONLY)= 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1567, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(4, # /etc/protocols:n# $Id: protoco..., 4096) = 
1567
close(4)= 0
munmap(0x40017000, 4096)= 0
brk(0x817e000)  = 0x817e000
brk(0x817f000)  = 0x817f000