MYSQLI扩展无法与MAMP一起使用

I am getting this error :

Fatal error: Uncaught Error: Call to undefined function mysqli_connect()

When trying to run a simple php script.

PHPinfo shows no MYSQLI but the CORRECT php.conf file has both these lines UNcommented

extension=php_mysql.dll
extension=php_mysqli.dll

So i have mysqli as far as I know.

I tried uncommenting all other extensions which didnt work.

Any ideas how to fix this?

EDIT:

Turning on display Errors triggers MYSQLI extension to go away. What could this mean?