Sara Golemon wrote:
Just a nudge about this code approach.
  #1 It doesn't detect EOF

Well, if you encounter EOF before the HALT tag, it means as a developer of the script you are trying to break your own code ;-)


#2 It forgets about the newline returned by fgets(

True, I suppose strncmp could be used here, since newline is not always constant.


#3 It doesn't allow the HALT; to float within a line between other content (not that you'd do that anyway but...

Going back to #1 ;-).

Ilia

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to