mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:57:35 -05:00 
			
		
		
		
	Check for exec function prior to attemping to use it
This commit is contained in:
		
							parent
							
								
									9a3ecf5f14
								
							
						
					
					
						commit
						cf46b8be6c
					
				@ -184,6 +184,9 @@ class SystemHealth
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private static function checkPhpCli()
 | 
					    private static function checkPhpCli()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					        if(!function_exists('exec'))
 | 
				
			||||||
 | 
					            return "Unable to check CLI version";
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            exec('php -v', $foo, $exitCode);
 | 
					            exec('php -v', $foo, $exitCode);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user