Author: Tobias Schlitt
Date: 2006-01-13 16:01:47 +0100 (Fri, 13 Jan 2006)
New Revision: 1837
Log:
- Switch read of pipes around (weired errors on DRs maschine in the other
direction).
Modified:
packages/ImageAnalysis/trunk/src/handlers/imagemagick.php
Modified: packages/ImageAnalysis/trunk/src/handlers/imagemagick.php
===================================================================
--- packages/ImageAnalysis/trunk/src/handlers/imagemagick.php 2006-01-13
15:01:26 UTC (rev 1836)
+++ packages/ImageAnalysis/trunk/src/handlers/imagemagick.php 2006-01-13
15:01:47 UTC (rev 1837)
@@ -436,6 +436,13 @@
// Close STDIN pipe
fclose( $pipes[0] );
+ // Read STDOUT
+ $stdOut = '';
+ do
+ {
+ $stdOut .= rtrim( fgets( $pipes[1], 1024) , "\n" );
+ } while ( !feof( $pipes[1] ) );
+
// Read STDERR
$errOut = '';
do
@@ -443,13 +450,6 @@
$errOut .= rtrim( fgets( $pipes[2], 1024) , "\n" );
} while ( !feof( $pipes[2] ) );
- // Read STDOUT
- $stdOut = '';
- do
- {
- $stdOut .= rtrim( fgets( $pipes[1], 1024) , "\n" );
- } while ( !feof( $pipes[1] ) );
-
// Wait for process to terminate and store return value
return proc_close( $process );
}
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components