PHP 4.0 Bug #3044: Your PATH_INFO, PATH_TRANSLATED are wrong...

From: Date: Fri, 24 Dec 1999 20:46:43 +0000
Subject: PHP 4.0 Bug #3044: Your PATH_INFO, PATH_TRANSLATED are wrong...
Groups: php.dev 
Request: Send a blank email to php-dev+get-14020@lists.php.net to get a copy of this message
From: andrey@cherezov.koenig.su Operating system: Windows98 PHP version: 4.0 Beta 3 PHP Bug Type: Misbehaving function Bug description: Your PATH_INFO, PATH_TRANSLATED are wrong... As addition to bug report id=3042. I've viewed the PHP4 sources and see - you're incorrect interpret the PATH_INFO and PATH_TRANSLATED CGI-environment variables. They are empty in the most cases of requests, see samples at http://hoohoo.ncsa.uiuc.edu/cgi/examples.html, but you expected they are contain something to help you build the path for opening source *.php-file? It is wrong, IMHO. Path must be constructed from <CurrentDir><finename_given_in_the_command_line> If PATH_INFO, PATH_TRANSLATED, doc_root and user_dir are empty, php.exe failed to open the input source file. But must open, because these variables are not required in right CGI. See Perl and PHP3 ;)

« previous php.dev (#14020) next »