Re: Bug #12452: Parsing error in eval function

From: Date: Mon, 30 Jul 2001 08:01:43 +0000
Subject: Re: Bug #12452: Parsing error in eval function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-61443@lists.php.net to get a copy of this message
UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!! paul@myitcv.org.uk schrieb: > From: paul@myitcv.org.uk > Operating system: Linux 2.4.3 (Mandrake) > PHP version: 4.0.6 > PHP Bug Type: Unknown/Other Function > Bug description: Parsing error in eval function > > Using a "buffer" variable to collect HTML output as the > script progresses, at the end of the script using eval to > output (and parse) the buffer. However, first line of > ouput is as follows: > > <?xml version="1.0" encoding="UTF-8"?> > > This causes a parse error; I would guess this is because > PHP is not strict on the text that follows <?, hence the > fact that it is xml does not register and it gives (as > expected) a parse error. Surely this should not cause a > parse error. A similar script to the part I use is > included below: > > <?php > $page_output="<?xml ..... ?><html><head>.........</html>"; > eval("?>$page_output"); > ?> > > -- > Edit bug report at: http://bugs.php.net/?id=12452&edit=1 > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#61443) next »