header() is a regular function, you can call it from anywhere (e.q. as
top-level statement), butof course you cannot use it before namespace
declaration.

<?php
namespace HTTP::Connection;

header('Connection: close');
?>

Dmitry.

> -----Original Message-----
> From: chris# [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 10, 2007 12:35 AM
> To: internals@lists.php.net
> Subject: Re: [PHP-DEV] Simple Namespace Proposal
> 
> 
> 
> 
> 
> On Mon, 9 Jul 2007 20:13:23 +0200 (CEST), Derick Rethans 
> <[EMAIL PROTECTED]> wrote:
> > On Wed, 4 Jul 2007, Dmitry Stogov wrote:
> > 
> >> The namespace declaration statement must be the very first 
> statement 
> >> in file.
> > 
> > I thought that was reserved in PHP 6 for the 
> "pragma(encoding=UTF-8);" 
> > statement? Which of the two needs to be first, and which second?
> And what of header(); ?
> > 
> > regards,
> > Derick
> > 
> > --
> > Derick Rethans
> > http://derickrethans.nl | http://ez.no | http://xdebug.org
> > 
> > --
> > PHP Internals - PHP Runtime Development Mailing List
> > To unsubscribe, visit: http://www.php.net/unsub.php
> /////////////////////////////////////////////////////
> Service provided by hitOmeter.NET internet messaging!
> .
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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

Reply via email to