Menu

#2739 (ok 3.1) Notices about deprecated dl()

3.0.0
fixed
1
2013-06-11
2008-08-11
No

Trying to use the pre-release of phpmyadmin 3.0.0 on a Mac results in the following unhelpful message::

Runtime Notice in ./libraries/core.lib.php#406
dl() is deprecated - use extension=gd.so in your php.ini

Unfortunately, on MacOS X, the Apple supplied version of php goes not have gd support, so modifying php.ini in this way will not work.

I urge you to strongly reconsider whatever you have done that cuases phpmyadmin 3.0.0 to require gd. Doing so will prevent it being used on Macs by many users who do not have the resources to build their own php, or to go down the road of 3rd party php builds (whose use is non-tricial).

Discussion

  • Marc Delisle

    Marc Delisle - 2008-08-11
    • assigned_to: nobody --> lem9
     
  • Ralph Martin

    Ralph Martin - 2008-08-11

    Logged In: YES
    user_id=797235
    Originator: YES

    OK, the real problem is that setting

    $cfg['GD2Available']

    to 'auto' seems to be broken.

    If I set it to 'no', the above error message does not appear.

     
  • Ralph Martin

    Ralph Martin - 2008-08-11
    • assigned_to: lem9 --> nobody
     
  • Ralph Martin

    Ralph Martin - 2008-08-11

    Logged In: YES
    user_id=797235
    Originator: YES

    OK, perhaps this is a side effect of setting

    $cfg['Error_Handler']['display'] = true;

    and what we are seeing is just phpmyadmin's attempt to find out if gd is available.

    It's still pretty unsettling and confusing for the end user though!

    Is there some way end users can be told not to worry about it?

     
  • Marc Delisle

    Marc Delisle - 2008-08-11

    Logged In: YES
    user_id=210714
    Originator: NO

    From Documentation.html:
    "You need GD2 support in PHP to display inline thumbnails of JPEGs ("image/jpeg: inline") with their original aspect ratio."

    So, GD is not required. However in your case, PMA tries to detect it. Try setting $cfg['GD2Available'] to 'no'.

    Also, I think you are seeing this notice because you are running with the php.ini display_errors set to On, which is not recommended on a production system: http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors

     
  • Marc Delisle

    Marc Delisle - 2008-08-11
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2008-08-11
    • status: open --> pending
     
  • Marc Delisle

    Marc Delisle - 2008-08-11

    Logged In: YES
    user_id=210714
    Originator: NO

    I answered before reading your last comments...

    I guess you are running PHP 5.3?

     
  • Marc Delisle

    Marc Delisle - 2008-08-11
    • status: pending --> open
     
  • Marc Delisle

    Marc Delisle - 2008-08-11

    Logged In: YES
    user_id=210714
    Originator: NO

    I checked and dl() is deprecated in PHP 5, so we should do something to avoid its need.

     
  • Ralph Martin

    Ralph Martin - 2008-08-12

    Logged In: YES
    user_id=797235
    Originator: YES

    No, I am running php 5.2.6 (Apple's version which comes with MacOS X 10.5 + latest security updates).

     
  • Marc Delisle

    Marc Delisle - 2008-08-12
    • priority: 5 --> 3
     
  • Marc Delisle

    Marc Delisle - 2008-08-12

    Logged In: YES
    user_id=210714
    Originator: NO

    Ralph,
    I don't see this as urgent because
    $cfg['Error_Handler']['display'] = true;
    is not the default value for error display.

     
  • Ralph Martin

    Ralph Martin - 2008-08-12

    Logged In: YES
    user_id=797235
    Originator: YES

    While it isn't urgent, it is confusing and could do with cleaning up at some stage.

    As $cfg['Error_Handler']['display'] is new, people are likely to turn it on and see what happens, and then wonder about the errors they see.

    I also got another one about time zones, if you want to know about it...

     
  • Marc Delisle

    Marc Delisle - 2008-08-12

    Logged In: YES
    user_id=210714
    Originator: NO

    As I said, at some point we'll stop calling dl() so this will be fixed.

    About the time zones, well I remember seeing this one but if I remember correctly, this is really caused by a broken PHP installation (missing date.timezone in php.ini).

     
  • Marc Delisle

    Marc Delisle - 2008-08-16
    • summary: Is GD really needed by phpmyadmin 3.0? Bad for MacOS X. --> (ok 3.1) Notices about deprecated dl()
    • priority: 3 --> 1
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2008-08-16

    Logged In: YES
    user_id=210714
    Originator: NO

    Fixed in subversion, thanks for reporting.

     
  • Marc Delisle

    Marc Delisle - 2008-11-28
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

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