Menu

#206 Wrong parameter count for mysql_connect()

2.4.0
closed
1
2003-03-20
2003-03-20
No

>Error
>
>MySQL said:
>
>
>Wrong parameter count for mysql_connect()
>

PHP Version: 4.3.0-dev
phpMyAdmin Version: 2.4.0

I believe the error is PHP version 4.3.0-dev does
not support client_flags parameter for
mysql_connect and mysql_pconnect function.

phpMyAdmin is incorrectly assuming that this
version of PHP is the release version, 4.3.0 and
hence trying to pass all parameters.

Changes either required to
libraries/defines_php.lib.php (20)
or
libraries/common.lib.php (692) and
libraries/common.lib.php (733)

Discussion

  • Alexander M. Turek

    • priority: 5 --> 1
    • milestone: 281391 -->
    • summary: Wrong parameter count for mysql_connect() --> (2.4.0) Wrong parameter count for mysql_connect()
    • labels: 438951 -->
     
  • Alexander M. Turek

    Logged In: YES
    user_id=418833

    Moved to Support Requests.

    Sam, we really cannot take care of old development versions
    of php.
    Since php 4.3.0 has reached the final status a long time
    ago, you really should think about upgrading at least to the
    final version.

    If not, please try to fix this by hand.
    The easiest way to do so is to bypass phpMyAdmin's detection
    mechanism.
    In libraries/defines_php.lib.php3 you should find a
    paragraph starting with "// php version".
    Replace this paragraph by the following code:

    // php version
    if (!defined('PMA_PHP_INT_VERSION')) {
    define('PMA_PHP_INT_VERSION', 40204);
    define('PMA_PHP_STR_VERSION', '4.2.4');
    }

    With this code, phpMyAdmin will believe that you are using
    php 4.2.4. Of course, this version did never exist, but your
    problem should be solved. :-)

     
  • Alexander M. Turek

    • summary: (2.4.0) Wrong parameter count for mysql_connect() --> Wrong parameter count for mysql_connect()
    • labels: --> Installation issues
    • milestone: --> 2.4.0
    • assigned_to: nobody --> rabus
     
  • Alexander M. Turek

    • status: open --> closed