RE: [PHP-DEV] Simple Namespace Proposal

From: Date: Tue, 10 Jul 2007 08:57:40 +0000
Subject: RE: [PHP-DEV] Simple Namespace Proposal
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-30736@lists.php.net to get a copy of this message
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:chris#@codewarehouse.NET] > 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 > <derick@php.net> 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 >

« previous php.internals (#30736) next »