Doc #66587 [NEW]: __DIR__ and other magic constants show trait data in trait
| From: | wim at wimgodden dot be | Date: | Mon, 27 Jan 2014 15:24:58 +0000 |
| Subject: | Doc #66587 [NEW]: __DIR__ and other magic constants show trait data in trait | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10895@lists.php.net to get a copy of this message | ||
From: wim at wimgodden dot be
Operating system: Any
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:__DIR__ and other magic constants show trait data in trait
Description:
------------
---
From manual page: http://www.php.net/language.constants.predefined
---
It might be useful to add information detailing that __DIR__ and
__FILE__ and __LINE__ will show the directory, file and line number of
the code in the trait definition file, not the location where the trait
is being used. It is counterintuitive for non-core developers, so it's
best to mention this in de docs.
--
Edit bug report at https://bugs.php.net/bug.php?id=66587&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66587&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66587&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66587&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66587&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66587&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66587&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66587&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66587&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66587&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66587&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66587&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66587&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66587&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66587&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66587&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66587&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66587&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66587&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66587&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66587&r=mysqlcfg