This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 151739 - Error opening class declarations with constants in require path
Summary: Error opening class declarations with constants in require path
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ondrej Brejla
: 156310 (view as bug list)
Depends on:
Reported: 2008-10-29 15:44 UTC by markdavidphipps
Modified: 2012-12-19 15:56 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description markdavidphipps 2008-10-29 15:44:47 UTC
PHP Code sample:

define('TEST','../lib/classes'); // a valid path

$joePublic = new generalPublic();


If I move the cursor over generalPublic, then hold Ctrl and hover for a second, the link to show the class appears, but
when you click on it, it does not show the class declaration.  If I remove the constant from the require_once, then it
will work and open the class declaration as expected.
Comment 1 Tomasz Slota 2009-03-18 10:47:51 UTC
confirmed. Somewhat difficult to implement due to the (necessity of parsing and interpreting PHP expressions). It should be implemented if this is a frequent 
use case in real-life development, however it looks like a P4 at first look
Comment 2 Tomasz Slota 2010-02-10 08:45:20 UTC
reassigning to default owner
Comment 3 Filip Zamboj 2010-09-15 12:27:18 UTC
batch reassigning
Comment 4 Tomas Mysik 2011-06-08 14:57:02 UTC
Batch reassigning.
Comment 5 Ondrej Brejla 2012-10-22 12:38:01 UTC
It never worked with constant.
Comment 6 Ondrej Brejla 2012-12-19 15:56:37 UTC
*** Bug 156310 has been marked as a duplicate of this bug. ***