From 49ce7d92efd537fac1d3414d2b5501641dde874a Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 6 Feb 2003 11:44:23 +0000 Subject: [PATCH] PHP3 compatible --- ChangeLog | 3 +++ libraries/sqlparser.lib.php3 | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a128b5396..99058e340 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-02-06 Marc Delisle + * libraries/sqlparser.lib.php3: PHP3 parse error + 2003-02-05 Alexander M. Turek * db_details.php3, tbl_query_box.php3: Disabled the autoselect feature of the SQL query box for Opera 7 for Windows in order to avoid trouble here. diff --git a/libraries/sqlparser.lib.php3 b/libraries/sqlparser.lib.php3 index ebbe7b43f..2441797ab 100644 --- a/libraries/sqlparser.lib.php3 +++ b/libraries/sqlparser.lib.php3 @@ -610,7 +610,9 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) { if(strcmp($whatWeWant, $toCheck) == 0) { return TRUE; } else { - if(strpos($whatWeWant, $typeSeperator) === FALSE) { + //if(strpos($whatWeWant, $typeSeperator) === FALSE) { + // PHP3 compatible (works unless there is a real ff character) + if(!strpos("\xff" . $whatWeWant, $typeSeperator)) { return strncmp($whatWeWant, $toCheck , strpos($toCheck, $typeSeperator)) == 0; } else { return FALSE;