Skip to content

Commit 9ee0b75

Browse files
committed
Merge pull request #286
2 parents 779108d + 020fc44 commit 9ee0b75

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
```

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
| Q | A
2+
| ------------------- | ---
3+
| Target branch? | "master" for new features / vX.Y for fixes
4+
| Fixed tickets | GitHub or JIRA issue(s) fixed by this PR
5+
| Doc changes needed? | yes/no

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ php.ini
4545
*.patch
4646
*.swp
4747
.*
48+
!.github/
4849
!tests/utils/*.php
4950
!.travis.yml
5051
!.travis.scripts/*

0 commit comments

Comments
 (0)