stripos 함수대신에 preg_match를 사용하도록 코드 변경 (stripos는 php5용)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3532 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-01-16 01:30:55 +00:00
parent 366f9dae99
commit 28d9bd25b1
2 changed files with 5 additions and 5 deletions

View file

@ -83,7 +83,7 @@
for($i=0;$i<count($supported_list);$i++) {
$db_type = $supported_list[$i];
if(version_compare(phpversion(), '5.0') < 0 && stripos($db_type, 'pdo') !== false) continue;
if(version_compare(phpversion(), '5.0') < 0 && preg_match('/pdo/i',$db_type) !== false) continue;
$class_name = sprintf("DB%s%s", strtoupper(substr($db_type,0,1)), strtolower(substr($db_type,1)));
$class_file = sprintf("./classes/db/%s.class.php", $class_name);