lighttpd forum lighty > bug? PHP_SELF always empty

Posted by Simon Lange
on 22.12.2005 20:26
Hi,

since using 1.4.8 i have noticed a strange bug(?). Suddenly PHP_SELF i 
always empty. Usually this is a comon behavour if PHP is used as CLI but 
before 1.4.8 i never had this issue. php and its ini has not been 
changed. Only lighty has been changed.

Any suggestions?!

Best Regards

Simon
Posted by Clemens Gutweiler (Guest)
on 22.12.2005 23:10
> since using 1.4.8 i have noticed a strange bug(?). Suddenly PHP_SELF i 
> always empty. Usually this is a comon behavour if PHP is used as CLI but 
> before 1.4.8 i never had this issue. php and its ini has not been 
> changed. Only lighty has been changed.

from http://lighttpd.net/documentation/fastcgi.html#configuring-php

Configuring PHP
If you want to use PATH_INFO and PHP_SELF in you PHP scripts you have to 
configure php and lighttpd. The php.ini needs the option:

cgi.fix_pathinfo = 1
Posted by Simon Lange
on 23.12.2005 01:28
Clemens Gutweiler wrote:
> 
>> since using 1.4.8 i have noticed a strange bug(?). Suddenly PHP_SELF i 
>> always empty. Usually this is a comon behavour if PHP is used as CLI but 
>> before 1.4.8 i never had this issue. php and its ini has not been 
>> changed. Only lighty has been changed.
> 
> from http://lighttpd.net/documentation/fastcgi.html#configuring-php
> 
> Configuring PHP
> If you want to use PATH_INFO and PHP_SELF in you PHP scripts you have to 
> configure php and lighttpd. The php.ini needs the option:
> 
> cgi.fix_pathinfo = 1

funny, that really did the trick. is this new?! never had this issue 
before and all i did was updating to 1.4.8

regards Simon
Posted by Jan Kneschke
on 24.12.2005 20:47
hostmaster wrote:
> Clemens Gutweiler wrote:
>> 
>>> since using 1.4.8 i have noticed a strange bug(?). Suddenly PHP_SELF i 
>>> always empty. Usually this is a comon behavour if PHP is used as CLI but 
>>> before 1.4.8 i never had this issue. php and its ini has not been 
>>> changed. Only lighty has been changed.
>> 
>> from http://lighttpd.net/documentation/fastcgi.html#configuring-php
>> 
>> Configuring PHP
>> If you want to use PATH_INFO and PHP_SELF in you PHP scripts you have to 
>> configure php and lighttpd. The php.ini needs the option:
>> 
>> cgi.fix_pathinfo = 1
> 
> funny, that really did the trick. is this new?! never had this issue 
> before and all i did was updating to 1.4.8

As long as you don't use PATHINFO you usually don't see this.

Jan
Posted by Simon Lange
on 25.12.2005 13:36
jan wrote:
> hostmaster wrote:
>> Clemens Gutweiler wrote:
>>> 
>>>> since using 1.4.8 i have noticed a strange bug(?). Suddenly PHP_SELF i 
>>>> always empty. Usually this is a comon behavour if PHP is used as CLI but 
>>>> before 1.4.8 i never had this issue. php and its ini has not been 
>>>> changed. Only lighty has been changed.
>>> 
>>> from http://lighttpd.net/documentation/fastcgi.html#configuring-php
>>> 
>>> Configuring PHP
>>> If you want to use PATH_INFO and PHP_SELF in you PHP scripts you have to 
>>> configure php and lighttpd. The php.ini needs the option:
>>> 
>>> cgi.fix_pathinfo = 1
>> 
>> funny, that really did the trick. is this new?! never had this issue 
>> before and all i did was updating to 1.4.8
> 
> As long as you don't use PATHINFO you usually don't see this.
> 
> Jan

as written before: the content, the php scripts -- NOTHING has been 
changed but lighty. ;) so it must be lighty who has changed sumthing. 
however, since the case is solved... so what?!