The behaviour of these functions is affected by settings in php.ini.
Here's a short explanation of the configuration directives.
Whether to allow persistent mSQL connections.
The maximum number of persistent mSQL connections per process.
The maximum number of mSQL connections per process, including persistent connections.