Doc #51887 [Opn->Csd]: T_NS_C and T_NAMESPACE not separated in Parser Token List

From: Date: Sun, 23 May 2010 11:57:03 +0000
Subject: Doc #51887 [Opn->Csd]: T_NS_C and T_NAMESPACE not separated in Parser Token List
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4427@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51887&edit=1 ID: 51887 Updated by: degeberg@php.net Reported by: privat at ni-po dot com Summary: T_NS_C and T_NAMESPACE not separated in Parser Token List -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: degeberg New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-05-23 13:56:52] degeberg@php.net Automatic comment from SVN on behalf of degeberg Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=299641 Log: Fixed PHP bug #51887 (T_NS_C and T_NAMESPACE not separated in Parser Token List) ------------------------------------------------------------------------ [2010-05-22 16:31:16] privat at ni-po dot com Description: ------------ http://php.net/manual/en/tokens.php defined T_NS_C as the token for "__NAMESPACE__" and notes that it is "[a]lso defined as T_NAMESPACE". My own tests have shown, that T_NAMESPACE is used for a very different thing: "namespace". Please distinguish between those two in the documentation. Test script: --------------- echo '<pre>'; var_dump(token_get_all('<?php namespace __NAMESPACE__ ?>')); echo token_name(377), "\n", token_name(378); echo '</pre'; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51887&edit=1

« previous php.doc.bugs (#4427) next »