PHP3 compatible

This commit is contained in:
Marc Delisle
2003-02-06 11:44:23 +00:00
parent d0b93139f6
commit 49ce7d92ef
2 changed files with 6 additions and 1 deletions

View File

@@ -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;