|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-15 19:32 UTC] francois dot dambrine at isen-lille dot fr
[2011-11-21 03:50 UTC] anon at anon dot anon
[2012-04-03 01:43 UTC] yohgaki@php.net
-Status: Open
+Status: Not a bug
[2012-04-03 01:43 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 09:00:01 2025 UTC |
Description: ------------ While "keywords" and "language constructs" cannot be used as function names, I find myself with the need to have a function in my class named "unset", I also see that list is a very common and useful term. After the introduction of classes and namespaces it's time to look at enabling usage of these common terms in classes and namespaces. Test script: --------------- <?php namespace whatever; class unsetTest{ function unset($whatever){ } } Expected result: ---------------- Happiness Actual result: -------------- //Parse error: syntax error, unexpected 'unset' (T_UNSET), expecting identifier (T_STRING) in E:\_www\x.php on line #