-2

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 ??

Charles
  • 50,943
  • 13
  • 104
  • 142
hd.
  • 17,596
  • 46
  • 115
  • 165

1 Answers1

2

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.
  • after removing @ it gives this error: Fatal error: Call to undefined function dl() – hd. Mar 09 '13 at 09:37
  • Since the function has been removed, you're trying to call a nonexistent function. What do you expect to happen? – Barmar Mar 09 '13 at 09:40
  • @Barmar: a replacement for that nonexistent function and I found it. – hd. Mar 09 '13 at 09:52