Menu

#1934 (ok 2.8.0.2) mysqli.dbi.lib.php and zend.ze1_compatibility..

Latest_Git
fixed
7
2013-06-11
2005-12-29
No

Hi:

If zend.ze1_compatibility_mode is enabled and you are
using the mysqli extension you get an error

Fatal error: Trying to clone an uncloneable object of
class mysqli in libraries/dbi/mysqli.dbi.lib.php on line 53

I think PHPMyAdmin should disable that option at runtime.

patch:
put

@ini_set('zend.ze1_compatibility_mode',false);

and the beggining of libraries/dbi/mysqli.dbi.lib.php

Discussion

  • Michal Čihař

    Michal Čihař - 2006-01-20
    • priority: 5 --> 7
     
  • Marc Delisle

    Marc Delisle - 2006-03-17
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2006-03-17

    Logged In: YES
    user_id=210714

    Fixed in 2.8.0.2, but in common.lib.php to avoid further
    problems elsewhere in the code

     
  • Marc Delisle

    Marc Delisle - 2006-03-17
    • summary: mysqli.dbi.lib.php should disable zend.ze1_compatibility.. --> (ok 2.8.0.2) mysqli.dbi.lib.php and zend.ze1_compatibility..
    • priority: 7 --> 1
    • status: open --> open-fixed
     
  • Cristian Rodriguez

    • priority: 1 --> 7
    • status: open-fixed --> open
     
  • Cristian Rodriguez

    Logged In: YES
    user_id=710039

    I havent saw the code yey,but also if you do some kind PHP
    version check for this, make sure is > 5 and < 6 ( setting
    has been removed from PHP6 since this and other similar issues)

     
  • Cristian Rodriguez

    Logged In: YES
    user_id=710039

    I havent saw the code yey,but also if you do some kind PHP
    version check for this, make sure is > 5 and < 6 ( setting
    has been removed from PHP6 since this and other similar issues)

     
  • Cristian Rodriguez

    • status: open --> closed
     
  • Marc Delisle

    Marc Delisle - 2006-03-17

    Logged In: YES
    user_id=210714

    I tried the code under PHP 4 where the setting did not exist
    and it does not complain, even without the @
    so we should be ok in PHP 6. Do you agree?

     
  • Cristian Rodriguez

    Logged In: YES
    user_id=710039

    YES, should be ok..or at least it **should not** complain
    badly. ;-)

     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed --> fixed
     
MongoDB Logo MongoDB