[PHP-DEV] Bug #14084 Updated: Recursive call of index.php/test=2

2001-11-16 Thread francis

ID: 14084
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Apache related
Operating System: Redhat 7.1
PHP Version: 4.0.6
New Comment:


Thanks you for your reponse.  I will post a question on 
[EMAIL PROTECTED] for a solution to block that.



Previous Comments:


[2001-11-16 10:46:48] [EMAIL PROTECTED]

still not a php problem, *and* intended behaviour

if only part of a URL path exists on the server
and points to a file (not directory) 
the web server will call that file and pass
the rest of the URL as $PATH_INFO

so /index.php/test=2 calls /index.php with $PATH_INFO="test=2"

for  the browser will 
strip of what it thinks to be the filename
(as it does not know anything about the server
file system), that is anything after the last 
'/', ending up with "/index.php/", and adds
the relative path from the src attribute
so requesting "/index.php/image1.gif"
which is again treated by the webserver as
a request to /index.php with $PATH_INFO
="image.gif" this time






[2001-11-16 10:38:14] [EMAIL PROTECTED]

erm, ofcourse this doesn't work. / is not a valid URL separator.
Ask for support questions on the [EMAIL PROTECTED] mailinglist.
Not a PHP bug > Bogus.



[2001-11-16 10:34:13] [EMAIL PROTECTED]


When we open this url : http://localhost/index.php/test=2

Yep index.php/test=2 not index.php?test=2

Apache open the page index.php one time for every broke link he find in the index.php 
page.  Example :



Simple PHP test page

  Simple PHP test page
  
  
  




Images are broke because the path http://localhost/index.php/image1.gif does not 
exist.  In this case, Apache open 4 times the page index.php.

Here the listing of the log table :

sl_timesl_url
1005924055 /index.php/test=2
1005924055 /index.php/image1.gif
1005924055 /index.php/image2.gif
1005924055 /index.php/image3.gif

We have the same problem on 3 differents servers.

Compilation script :

'./configure' '--with-mysql=/virtual/mysql' '--enable-bcmath' '--with-gd' 
'--with-dbase' '--with-curl' '--with-xml' '--with-pgsql=/virtual/postgres/' 
'--with-imap' '--with-apxs=/virtual/apachedev/bin/apxs'

Apache version :

1.3.20

Php version :

4.0.6 and 4.2.0-dev






Edit this bug report at http://bugs.php.net/?id=14084&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14084 Updated: Recursive call of index.php/test=2

2001-11-16 Thread hholzgra

ID: 14084
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Apache related
Operating System: Redhat 7.1
PHP Version: 4.0.6
New Comment:

still not a php problem, *and* intended behaviour

if only part of a URL path exists on the server
and points to a file (not directory) 
the web server will call that file and pass
the rest of the URL as $PATH_INFO

so /index.php/test=2 calls /index.php with $PATH_INFO="test=2"

for  the browser will 
strip of what it thinks to be the filename
(as it does not know anything about the server
file system), that is anything after the last 
'/', ending up with "/index.php/", and adds
the relative path from the src attribute
so requesting "/index.php/image1.gif"
which is again treated by the webserver as
a request to /index.php with $PATH_INFO
="image.gif" this time




Previous Comments:


[2001-11-16 10:38:14] [EMAIL PROTECTED]

erm, ofcourse this doesn't work. / is not a valid URL separator.
Ask for support questions on the [EMAIL PROTECTED] mailinglist.
Not a PHP bug > Bogus.



[2001-11-16 10:34:13] [EMAIL PROTECTED]


When we open this url : http://localhost/index.php/test=2

Yep index.php/test=2 not index.php?test=2

Apache open the page index.php one time for every broke link he find in the index.php 
page.  Example :



Simple PHP test page

  Simple PHP test page
  
  
  




Images are broke because the path http://localhost/index.php/image1.gif does not 
exist.  In this case, Apache open 4 times the page index.php.

Here the listing of the log table :

sl_timesl_url
1005924055 /index.php/test=2
1005924055 /index.php/image1.gif
1005924055 /index.php/image2.gif
1005924055 /index.php/image3.gif

We have the same problem on 3 differents servers.

Compilation script :

'./configure' '--with-mysql=/virtual/mysql' '--enable-bcmath' '--with-gd' 
'--with-dbase' '--with-curl' '--with-xml' '--with-pgsql=/virtual/postgres/' 
'--with-imap' '--with-apxs=/virtual/apachedev/bin/apxs'

Apache version :

1.3.20

Php version :

4.0.6 and 4.2.0-dev






Edit this bug report at http://bugs.php.net/?id=14084&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14084 Updated: Recursive call of index.php/test=2

2001-11-16 Thread derick

ID: 14084
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Apache related
Operating System: Redhat 7.1
PHP Version: 4.0.6
New Comment:

erm, ofcourse this doesn't work. / is not a valid URL separator.
Ask for support questions on the [EMAIL PROTECTED] mailinglist.
Not a PHP bug > Bogus.

Previous Comments:


[2001-11-16 10:34:13] [EMAIL PROTECTED]


When we open this url : http://localhost/index.php/test=2

Yep index.php/test=2 not index.php?test=2

Apache open the page index.php one time for every broke link he find in the index.php 
page.  Example :



Simple PHP test page

  Simple PHP test page
  
  
  




Images are broke because the path http://localhost/index.php/image1.gif does not 
exist.  In this case, Apache open 4 times the page index.php.

Here the listing of the log table :

sl_timesl_url
1005924055 /index.php/test=2
1005924055 /index.php/image1.gif
1005924055 /index.php/image2.gif
1005924055 /index.php/image3.gif

We have the same problem on 3 differents servers.

Compilation script :

'./configure' '--with-mysql=/virtual/mysql' '--enable-bcmath' '--with-gd' 
'--with-dbase' '--with-curl' '--with-xml' '--with-pgsql=/virtual/postgres/' 
'--with-imap' '--with-apxs=/virtual/apachedev/bin/apxs'

Apache version :

1.3.20

Php version :

4.0.6 and 4.2.0-dev






Edit this bug report at http://bugs.php.net/?id=14084&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]