Re: [PHP4BETA] What is the following script supposed to print?

From: Date: Wed, 10 May 2000 19:20:56 +0000
Subject: Re: [PHP4BETA] What is the following script supposed to print?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14778@lists.php.net to get a copy of this message
# comment ends with the endofline or ?> whichever comes first. No need to wonder, RTFM instead. :) Clearly, you can't entirely rely on an editor's color-coding. At 18:47 10.5.2000 +0200, André Langhorst wrote the following: -------------------------------------------------------------- >I wouldn´t expect that too, but Homsite renders it similar, perhaps there is a rule that users >can escape from php in # comments with ?> >?? > > > >kk@netuse.de (Kristian Köhntopp) wrote: > >><?php >> print "eins<br>"; >># print "eine<?php print 'booga' ?>inhalb<br>"; >> print "zwei<br>"; >> phpinfo(); >>?> >>This script does output >>eins<br>inhalb<br>"; >> print "zwei<br>"; >> phpinfo(); >>?> >>I consider this at least unexspected, if not a bug. >>Kristian > > >-- >PHP 4.0 Beta Mailing List <http://www.php.net/version4/> >To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net >For additional commands, e-mail: php4beta-help@lists.php.net >To contact the list administrators, e-mail: php4beta-admin@lists.php.net > ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz ICQ: 2808 2505

« previous php.version4 (#14778) next »