From: [EMAIL PROTECTED] Operating system: Windows XP Pro/SP1 PHP version: 4.2.3 PHP Bug Type: *General Issues Bug description: Here Documents and EOF
#! c:/perl/bin/perl.exe -w # ######################### use strict; #print "Content-Type:text/plain\n\n"; print <<"END"; A B C DE F END^Z If you have the above simple script file you won't get it run! Instead, you will get error: Can't find string terminator "END" anywhere before EOF at C:\Perl\eg\test.pl line 9. Why? Note that the file ends immediately after the last word 'END'. There is NO new line after it! But, if you add a new line after 'END', the script runs well. That is: #! c:/perl/bin/perl.exe -w # ######################### use strict; #print "Content-Type:text/plain\n\n"; print <<"END"; A B C DE F END ^Z -- Edit bug report at http://bugs.php.net/?id=21191&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21191&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21191&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21191&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21191&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21191&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21191&r=support Expected behavior: http://bugs.php.net/fix.php?id=21191&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21191&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21191&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21191&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21191&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21191&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21191&r=isapi