Merge pull request #22 from ak76/master

Changed *nix newline symbol "\n" for constant PHP_EOL
This commit is contained in:
Romain Neutron 2012-12-16 07:58:49 -08:00
commit 014112a16f

View file

@ -53,7 +53,7 @@ class FFProbe extends Binary
$ret = array();
foreach (explode("\n", $output) as $line) {
foreach (explode(PHP_EOL, $output) as $line) {
if (in_array($line, array('[FORMAT]', '[/FORMAT]'))) {
continue;
@ -97,7 +97,7 @@ class FFProbe extends Binary
$this->binary, $pathfile, '-show_streams'
));
$output = explode("\n", $this->executeProbe($builder->getProcess()));
$output = explode(PHP_EOL, $this->executeProbe($builder->getProcess()));
$ret = array();
$n = 0;