File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 10
10
/**
11
11
* Class DomainNameAPI_PHPLibrary
12
12
* @package DomainNameApi
13
- * @version 2.1.11
13
+ * @version 2.1.12
14
14
*/
15
15
16
16
@@ -25,7 +25,7 @@ class DomainNameAPI_PHPLibrary
25
25
/**
26
26
* Version of the library
27
27
*/
28
- const VERSION = '2.1.11 ' ;
28
+ const VERSION = '2.1.12 ' ;
29
29
30
30
const DEFAULT_NAMESERVERS = [
31
31
'ns1.domainnameapi.com ' ,
@@ -1920,9 +1920,7 @@ private function sendPerformanceMetricsToSentry(array $metrics): void
1920
1920
],
1921
1921
'device ' => [
1922
1922
'hostname ' => gethostname () ?: 'unknown ' ,
1923
- 'processor_count ' => defined ('PHP_OS_FAMILY ' ) && PHP_OS_FAMILY === 'Linux ' ?
1924
- (int )shell_exec ('nproc 2>/dev/null ' ) ?: 1 : 1
1925
- ]
1923
+ 'processor_count ' => defined ('PHP_OS_FAMILY ' ) && PHP_OS_FAMILY === 'Linux ' ? (function_exists ('shell_exec ' ) ? (int )\shell_exec ('nproc 2>/dev/null ' ) ?: 1 : 1 ) : 1 ]
1926
1924
],
1927
1925
'tags ' => [
1928
1926
'release ' => self ::VERSION ,
You can’t perform that action at this time.
0 commit comments