|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-24 02:45 UTC] per dot funke at ub dot oru dot se
[2003-07-24 03:18 UTC] meebey@php.net
[2003-07-24 06:14 UTC] sniper@php.net
[2003-07-24 15:31 UTC] per dot funke at ub dot oru dot se
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 20:00:02 2025 UTC |
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 $