Little code reorganistaion (RFE #957308), removed some remaining php3 compatibility code in SQL parser.

This commit is contained in:
Michal Čihař
2004-05-20 16:14:13 +00:00
parent f5371237aa
commit 1aaa89fa54
58 changed files with 256 additions and 254 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2004-05-20 Michal Čihař <michal@cihar.com>
* many files: Little code reorganistaion (RFE #957308), removed some
remaining php3 compatibility code in SQL parser.
2004-05-20 Marc Delisle <lem9@users.sourceforge.net>
* pdf_schema.php: set contents page (first page)'s orientation
to the same asked for the data dictionary

View File

@@ -672,9 +672,7 @@ if ($is_minimum_common == FALSE) {
if (strcmp($whatWeWant, $toCheck) == 0) {
return TRUE;
} else {
//if(strpos($whatWeWant, $typeSeperator) === FALSE) {
// PHP3 compatible (works unless there is a real ff character)
if(!strpos("\xff" . $whatWeWant, $typeSeperator)) {
if (strpos($whatWeWant, $typeSeperator) === FALSE) {
return strncmp($whatWeWant, $toCheck , strpos($toCheck, $typeSeperator)) == 0;
} else {
return FALSE;