|
| 1 | +### Description |
| 2 | + |
| 3 | +Briefly describe the issue. Feel free to cross-reference your report with |
| 4 | +another related GitHub or JIRA issue for additional context. |
| 5 | + |
| 6 | +Before reporting an issue, check that you are using the most recent version of |
| 7 | +the extension. |
| 8 | + |
| 9 | +### Environment |
| 10 | + |
| 11 | +What operating system and PHP version are you using? Mention if PHP was |
| 12 | +installed through a third-party bundle (e.g. MAMP, XAMPP) and report its version |
| 13 | +if applicable. |
| 14 | + |
| 15 | +Include version information for the extension, libmongoc, and libbson. This may |
| 16 | +be collected by grepping `phpinfo()` output like so: |
| 17 | + |
| 18 | +``` |
| 19 | +$ php -i | grep -E 'mongodb|libmongoc|libbson' |
| 20 | +``` |
| 21 | + |
| 22 | +In some cases, it may be helpful to provide all `phpinfo()` output from `php -i` |
| 23 | +and a list of all install modules with `php -m`. |
| 24 | + |
| 25 | +### Test Script |
| 26 | + |
| 27 | +If possible, attach a complete PHP script that can be excuted on its own to |
| 28 | +reproduce the issue. Clarify whether this script can be run from the CLI or if |
| 29 | +it can only be reproduced through a web SAPI. |
| 30 | + |
| 31 | +``` |
| 32 | +<?php |
| 33 | +
|
| 34 | +// TEST SCRIPT |
| 35 | +``` |
| 36 | + |
| 37 | +If the error only presents itself in a web SAPI, report whether the issue can be |
| 38 | +reproduced with PHP's built-in web server, which may be launched with |
| 39 | +`php -S localhost:8000`. If not, please note your web server version in the |
| 40 | +environment section. |
| 41 | + |
| 42 | +http://php.net/manual/en/features.commandline.webserver.php |
| 43 | + |
| 44 | +### Expected and Actual Behavior |
| 45 | + |
| 46 | +How did the script fail to perform the expected task? Feel free to include debug |
| 47 | +and/or `var_dump()` output. |
| 48 | + |
| 49 | +If the observed behavior is an unexpected exception, please include its full |
| 50 | +message and a backtrace (if relevant). If you encountered a segmentation fault, |
| 51 | +please include a GDB backtrace. |
| 52 | + |
| 53 | +https://bugs.php.net/bugs-generating-backtrace.php |
| 54 | + |
| 55 | +``` |
| 56 | +DEBUG OR BACKTRACE |
| 57 | +``` |
| 58 | + |
| 59 | +### Debug Log |
| 60 | + |
| 61 | +If the issue relates to internal driver behavior (e.g. connection issues), |
| 62 | +please include a debug log. This may be generated by setting the `mongodb.debug` |
| 63 | +INI option to "stderr" or a directory (useful for web SAPIs). |
| 64 | + |
| 65 | +http://php.net/manual/en/mongodb.configuration.php#ini.mongodb.debug |
| 66 | + |
| 67 | +``` |
| 68 | +DEBUG LOG |
| 69 | +``` |
0 commit comments