File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 3
3
function get_fpm_path () /* {{{ */
4
4
{
5
5
$ php_path = getenv ("TEST_PHP_EXECUTABLE " );
6
-
7
6
for ($ i = 0 ; $ i < 2 ; $ i ++) {
8
7
$ slash_pos = strrpos ($ php_path , "/ " );
9
8
if ($ slash_pos ) {
@@ -13,9 +12,16 @@ function get_fpm_path() /* {{{ */
13
12
}
14
13
}
15
14
16
- if ($ php_path && is_dir ($ php_path ) && file_exists ($ php_path ."/fpm/php-fpm " ) && is_executable ($ php_path ."/fpm/php-fpm " )) {
17
- /* gotcha */
18
- return $ php_path ."/fpm/php-fpm " ;
15
+
16
+ if ($ php_path && is_dir ($ php_path )) {
17
+ if (file_exists ($ php_path ."/fpm/php-fpm " ) && is_executable ($ php_path ."/fpm/php-fpm " )) {
18
+ /* gotcha */
19
+ return $ php_path ."/fpm/php-fpm " ;
20
+ }
21
+ $ php_sbin_fpm = $ php_path ."/sbin/php-fpm " ;
22
+ if (file_exists ($ php_sbin_fpm ) && is_executable ($ php_sbin_fpm )) {
23
+ return $ php_sbin_fpm ;
24
+ }
19
25
}
20
26
return false ;
21
27
}
You can’t perform that action at this time.
0 commit comments