mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 05:42:13 +09:00
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:
parent
366f9dae99
commit
28d9bd25b1
2 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue