Changed *nix newline symbol "\n" for constant PHP_EOL
Changed *nix newline symbol "\n" for PHP predefined constant PHP_EOL, because on Windows methods probeFormat and probeStreams returns wrong results.
This commit is contained in:
		
					parent
					
						
							
								1d326e08bb
							
						
					
				
			
			
				commit
				
					
						5ec403144e
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -53,7 +53,7 @@ class FFProbe extends Binary | ||||||
| 
 | 
 | ||||||
|         $ret = array(); |         $ret = array(); | ||||||
| 
 | 
 | ||||||
|         foreach (explode("\n", $output) as $line) { |         foreach (explode(PHP_EOL, $output) as $line) { | ||||||
| 
 | 
 | ||||||
|             if (in_array($line, array('[FORMAT]', '[/FORMAT]'))) { |             if (in_array($line, array('[FORMAT]', '[/FORMAT]'))) { | ||||||
|                 continue; |                 continue; | ||||||
|  | @ -97,7 +97,7 @@ class FFProbe extends Binary | ||||||
|             $this->binary, $pathfile, '-show_streams' |             $this->binary, $pathfile, '-show_streams' | ||||||
|         )); |         )); | ||||||
| 
 | 
 | ||||||
|         $output = explode("\n", $this->executeProbe($builder->getProcess())); |         $output = explode(PHP_EOL, $this->executeProbe($builder->getProcess())); | ||||||
| 
 | 
 | ||||||
|         $ret = array(); |         $ret = array(); | ||||||
|         $n = 0; |         $n = 0; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue