From c2e8c12b58158b45a90b262f056b885c7979ae01 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 28 May 2003 10:04:59 +0000 Subject: [PATCH] Bug #739096 --- ChangeLog | 6 ++++++ libraries/sqlvalidator.class.php3 | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f643e974..2d8e272d5 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,12 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-05-28 Garvin Hicking + * libraries/sqlvalidator.class.php3: Fix Bug #739096: Because + the PEAR library and PHP changed the way how referenced variables + get accessed, we have to pre-initialize the array and submit that + to the PEAR call() funktion. + 2003-05-26 Michal Cihar * lang/czech: sorted. diff --git a/libraries/sqlvalidator.class.php3 b/libraries/sqlvalidator.class.php3 index f61642ce5..31aa13ceb 100644 --- a/libraries/sqlvalidator.class.php3 +++ b/libraries/sqlvalidator.class.php3 @@ -105,7 +105,8 @@ if (!defined('PMA_SQL_VALIDATOR_CLASS_INCLUDED')) { $connection_technology, $connection_technology_version, $interactive) { - $ret = $obj->call("openSession",array( "a_userName" => $username, "a_password" => $password, "a_callingProgram" => $calling_program, "a_callingProgramVersion" => $calling_program_version, "a_targetDbms" => $target_dbms, "a_targetDbmsVersion" => $target_dbms_version, "a_connectionTechnology" => $connection_technology, "a_connectionTechnologyVersion" => $connection_technology_version, "a_interactive" => $interactive)); + $use_array = array( "a_userName" => $username, "a_password" => $password, "a_callingProgram" => $calling_program, "a_callingProgramVersion" => $calling_program_version, "a_targetDbms" => $target_dbms, "a_targetDbmsVersion" => $target_dbms_version, "a_connectionTechnology" => $connection_technology, "a_connectionTechnologyVersion" => $connection_technology_version, "a_interactive" => $interactive); + $ret = $obj->call("openSession",$use_array); // This is the old version that needed the overload extension /* $ret = $obj->openSession($username, $password, @@ -132,8 +133,8 @@ if (!defined('PMA_SQL_VALIDATOR_CLASS_INCLUDED')) { */ function _validateSQL($obj, $session, $sql, $method) { - - $res = $obj->call("validateSQL",array("a_sessionId" => $session->sessionId, "a_sessionKey" => $session->sessionKey, "a_SQL" => $sql, "a_resultType" => $this->output_type)); + $use_array = array("a_sessionId" => $session->sessionId, "a_sessionKey" => $session->sessionKey, "a_SQL" => $sql, "a_resultType" => $this->output_type); + $res = $obj->call("validateSQL",$use_array); // This is the old version that needed the overload extension // $res = $obj->validateSQL($session->sessionId, $session->sessionKey, $sql, $this->output_type);