Files
mongo-php-driver/tests/ini/ini-debug-phpinfo-002.phpt
Jeremy Mikola cfc6bbbe5d PHPC-1978: Expose mongoc_global_mock_service_id as INI option
This also consolidates INI functions (and trace logging) into a separate file and ensure that mongoc logging is disabled during GSHUTDOWN (avoiding a potential segfault).

Enable service ID mocking when testing load balancers with HAProxy.
2021-10-15 13:44:30 -04:00

19 lines
250 B
PHP

--TEST--
phpinfo() reports mongodb.debug (master and local)
--INI--
mongodb.debug=stderr
--FILE--
<?php
ini_set('mongodb.debug', 'stdout');
phpinfo();
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
%a
mongodb.debug => stdout => stderr
%a
===DONE===%A