Skip to content

Commit 6931a14

Browse files
committed
Update README.md
1 parent 790a534 commit 6931a14

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
PHP class to provide an easy to use interface with cpanels UAPI.
44

5+
#Known Bugs
6+
7+
- When running on systems with PHP safe mode turned on AND open_basedir is set to an empty string.
8+
When the requested end point doesnt redirect, curl_exec_follow requests it twice. Once for the headers to check the HTTP Status and then once to fire the request. This is fine for getting data, however when the endpoint is used to generate something remotely, a specific use case would be an SSH key, 2 keys are generated and the SECOND one is returned.
9+
10+
-Work Around
11+
If not on a shared server, ether set open_basedir or turn safe mode off.
12+
If on a shared server, comment out the curl_exec on line 157, this will break any requests that get redirected, but should not effect most people.
13+
514
##Usage
615

716
See the example files, but typical useage takes the form of:
@@ -16,4 +25,4 @@ $cpuapi->scope = 'Mysql';
1625
//call the function we want like this. Any arguments are passed into the function as an array, in the form of param => value.
1726
$response = $cpuapi->get_restrictions();
1827
print_r($response);
19-
```
28+
```

0 commit comments

Comments
 (0)