Bug 700

Summary: [Chameleon - Core] gszAppPath calculations fail with PHP 4.3.2RC3
Product: Chameleon Reporter: Paul Spencer <pspencer@dmsolutions.ca>
Component: CoreAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: 1.99   
Target Milestone: 1.99 beta 4   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-10-14 12:25:13
When Chameleon tries to figure out the gszAppPath, it tests $_SERVER variables
to see where the page resides on the filesystem.  The $_SERVER array is
populated by PHP based on information coming from the web server and is
different depending on PHP version and web server version (i.e php 4.3.2 reports
different values that php 4.3.6 for the same web server).  Chameleon already
detects the two major differences, which is PATH_TRANSLATED and
ORIG_PATH_TRANSLATED.  It appears that some versions of PHP will provide both
but one will be an empty string.  Since PATH_TRANSLATED is tested first, if it
is an empty string, Chameleon will incorrectly determine the location of the
application and will fail to work.
------- Comment #1 From 2004-10-14 12:33:36 -------
Fixed in cvs for beta 3.  The fix refuses to use empty values from the $_SERVER
vars and also protects against the application using symlinks in an
application-supplied app path.  Also a test for a valid app path is now made and
a fatal error is produced if it is not set.
------- Comment #2 From 2004-10-25 08:38:27 -------
Changed target for verification to 1.99 RC 1.