From:             per dot funke at ub dot oru dot se
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     Output Control
Bug description:  one out two echo-statements results in output

Description:
------------
In script run from the shell, only one out of
two echo-statements results in a printed line.

Reproduce code:
---------------
#!/usr/local/php/bin/php
<?php
//#################################################################
echo "\nImport started. Infile is
/usr/local/apache/htdocs/nweb/stdweb/vis/out.skv";
$a_compiled_collection[0]="";
   //$fp2 =
fopen("/usr/local/apache/htdocs/nweb/stdweb/vis/out.skv","r");
$fp3 =
fopen("/usr/local/apache/htdocs/nweb/stdweb/vis/imported_lines","r");
$last_read=fgets ($fp3);
$done=fclose($fp3);

echo "\nlast_read 1 ".$last_read;

   //fclose($fp2);
exit;
//#################################################################
?>




Expected result:
----------------
$ ./test.php


Import started. Infile is
/usr/local/apache/htdocs/nweb/stdweb/vis/out.skv
last_read 1 500
last_read 2 500
$





Actual result:
--------------
$ ./test.php


Import started. Infile is
/usr/local/apache/htdocs/nweb/stdweb/vis/out.skv
last_read 1 500
$


-- 
Edit bug report at http://bugs.php.net/?id=24787&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24787&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24787&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24787&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24787&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24787&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24787&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24787&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24787&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24787&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24787&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24787&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24787&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24787&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24787&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24787&r=gnused

Reply via email to