Doc #68364 [NEW]: Missing reserved keyword 'self'
| From: | nanne at huiges dot nl | Date: | Thu, 06 Nov 2014 12:46:42 +0000 |
| Subject: | Doc #68364 [NEW]: Missing reserved keyword 'self' | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-11609@lists.php.net to get a copy of this message | ||
From: nanne at huiges dot nl
Operating system: Irrelevant
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Missing reserved keyword 'self'
Description:
------------
---
From manual page: http://www.php.net/reserved.keywords
---
The keyword 'self' is not featured in the list of reserved keywords, but
it should be.
Test script:
---------------
<?php
class self{
}
Expected result:
----------------
The result "implied" by the manual is that this would work.
(Not that I say the actual _expected_ result is empty by the way, this
is obviously not a bug in code, but a bug in the manual). so you could
say the expected 'result' is that it is in the manual :)
Actual result:
--------------
The correct
PHP Fatal error: Cannot use 'self' as class name as it is reserved in
test.php on line 3
is provided, even though it isn't in the documentation.
--
Edit bug report at https://bugs.php.net/bug.php?id=68364&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68364&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68364&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68364&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68364&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68364&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68364&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68364&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68364&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68364&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68364&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68364&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68364&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68364&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68364&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68364&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68364&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68364&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68364&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68364&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68364&r=mysqlcfg