View Issue Details

IDProjectCategoryView StatusLast Update
0000500OXID eShop (all versions)6. ------ Setup -------public2009-01-13 14:06
Reportervikram Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Version4.0.1.0 revision 15990 
Summary0000500: Installer check for MySQL module is flawed
DescriptionI have the following environment

Windows XP SP2
Apache 2.0.22
PHP 5.2.2 with mysql and mysql-nd extensions
MySQL 5.1

Even though I have mysql-nd and MySQL 5.1, installer check for 'PHP module for MYSQL 5' fails. This is because your installer checks the mysql_get_client_info() function, which in my case returns 4.1.17, even though I ALSO have mysql-nd, which supports Mysql client protocol 5.

PHP allows both extensions to be active at the same time. So your installer should not fail in this scenario.

Solution: Your installer could also check the mysqli_get_client_info() function, as ext/mysql is for MySQL 4 and ext/mysqli, ext/mysqlnd is for MySQL 5.

Workaround: comment the line 0000518 in setup/index.php

//$iModStat = ( $iModStat == 0 || !function_exists( 'mysql_get_client_info' ) ) ? $iModStat : ( version_compare( mysql_get_client_info(), '5', '>=' ) ? 2 : 0 );

and installation proceeds normally.
TagsNo tags attached.
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

dainius.bigelis

2009-01-13 09:26

reporter   ~0000354

Decision: make this check optional (if version not matches needed - display it in yellow and allow continue setup)

arvydas_vapsva

2009-01-13 14:06

reporter   ~0000358

fixed