Re: PHP 4.0 Bug #6115 Updated: phpinfo() uses wrong variable

From: Date: Sat, 30 Dec 2000 17:31:46 +0000
Subject: Re: PHP 4.0 Bug #6115 Updated: phpinfo() uses wrong variable
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-42715@lists.php.net to get a copy of this message
Sorry, I think your first email got lost somewhere - this still doesn't work (4.0.4). To clarify: http://localhost/index.php - php logo is http://localhost/index.php?=PHP... http://localhost/index.php/pathinfo - php logo is http://localhost/pathinfo?=PHP... It seems that PHP is using lpszPathInfo (from the EXTENSION_CONTROL_BLOCK) to build the path, rather than getting SCRIPT_NAME via a call to GetServerVariable. Since lpszPathInfo defaults to SCRIPT_NAME when there's no real path info (path info disabled by default for IIS), this works on IIS, but for servers that support path info properly it breaks. -C ----- Original Message ----- From: "Bug Database" <php-dev@lists.php.net> To: <charles@invis.net> Sent: Saturday, December 30, 2000 4:56 PM Subject: PHP 4.0 Bug #6115 Updated: phpinfo() uses wrong variable > ID: 6115 > Updated by: sniper > Reported By: charles@invis.net > Old-Status: Feedback > Status: Closed > Old-Bug Type: *General Issues > Bug Type: PHP options/info functions > Assigned To: > Comments: > > No feedback, considered fixed in > 4.0.1pl2. > > --Jani > > Previous Comments: > -------------------------------------------------------------------------- - > > [2000-11-20 09:13:18] jmoore@php.net > phpinfo() on isapi seems to work fine for me. Please update and give feedback if this still happens > > James > > -------------------------------------------------------------------------- - > > [2000-08-12 01:13:03] charles@invis.net > phpinfo() uses the value of PATH_INFO to build the path for the images. IIS doesn't support PATH_INFO without a reg-hack, but other servers do. PHP should be using SCRIPT_NAME instead. This applies to the ISAPI extension; I've not tested the CGI version. > > -------------------------------------------------------------------------- - > > > Full Bug description available at: http://bugs.php.net/?id=6115 > >

« previous php.dev (#42715) next »