280c280,281 < if ( 'WIN' == substr( PHP_OS, 0, 3 ) ) { --- > # if ( 'WIN' == substr( PHP_OS, 0, 3 ) ) { > if ( 0 ) { 327c328,329 < } else if ( php_version_at_least( '4.3.0' ) ) { --- > # } else if ( php_version_at_least( '4.3.0' ) ) { > } else if ( 0 ) { 369,370c371,374 < if ( isset( $_ENV['TMPDIR'] ) ) < $t_tmpdir = $_ENV['TMPDIR']; --- > # if ( isset( $_ENV['TMPDIR'] ) ) > # $t_tmpdir = $_ENV['TMPDIR']; > if ( isset( $_ENV['TMP'] ) ) > $t_tmpdir = $_ENV['TMP']; 375a380,381 > $t_bitmap = $t_filename . '.' . $p_format; > register_shutdown_function( 'unlink', $t_bitmap ); 383a390 > ' -o' . $t_bitmap . ' ' . 390c398,402 < passthru( $t_command ); --- > header( 'X-Command: ' . $t_command ); > header( 'X-TempFile: ' . $t_filename ); > # passthru( $t_command ); > system( $t_command ); > echo file_get_contents( $t_bitmap ); 395c407,409 < passthru( $t_command ); --- > # passthru( $t_command ); > system( $t_command ); > echo file_get_contents( $t_bitmap );