Search code examples
phpphp-extension

@dl php causes error


A page of my site is stuck in these codes:

if (@dl("gmp.so")) { 
    echo '**';
    $loaded = true;
    break;
}
else
    echo '%%';

no echo is happend. It seems the problem is because of @dl . php5-gmp is install on the server.

How can I debug it ??


Solution

  • The '@' disables the PHP Notices/Warnings/Errors. Remove the '@' and PHP will tell you what's wrong.

    From php.net

    This function has been removed from some SAPIs in PHP 5.3.