Skip to content

Commit

Permalink
* php_api.php: add conversion from $HTTP_POST_FILES to $_FILES
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1497 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Julian Fitzell committed Sep 16, 2002
1 parent f775bbb commit bb638f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/php_api.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: php_api.php,v 1.2 2002-08-25 08:14:59 jfitzell Exp $
# $Id: php_api.php,v 1.3 2002-09-16 10:08:14 jfitzell Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -50,12 +50,13 @@ function php_version_at_least( $p_version_string ) {

# Experimental support for $_* auto-global variables in PHP < 4.1.0
if ( ! php_version_at_least( '4.1.0' ) ) {
global $_REQUEST, $_GET, $_POST, $_COOKIE, $_SERVER;
global $_REQUEST, $_GET, $_POST, $_COOKIE, $_SERVER, $_FILES;

$_GET = $HTTP_GET_VARS;
$_POST = $HTTP_POST_VARS;
$_COOKIE = $HTTP_COOKIE_VARS;
$_SERVER = $HTTP_SERVER_VARS;
$_FILES = $HTTP_POST_FILES;

$_REQUEST = $HTTP_COOKIE_VARS;
foreach ($HTTP_POST_VARS as $key => $value) {
Expand Down

0 comments on commit bb638f2

Please sign in to comment.