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 200587 - Highlighting the code that uses non existent function
Summary: Highlighting the code that uses non existent function
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal with 3 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 08:16 UTC by mcfedr
Modified: 2017-03-17 11:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mcfedr 2011-08-02 08:16:14 UTC
The PHP editor doesn't highlight usage of undefined functions and parameters.

Because php is have the possibility to add parameters on the fly this should just be a warning.
Also functions can be dynamic via the __call function, but on classes without __call a warning can be displayed.

Related to this topic

http://forums.netbeans.org/topic41067.html
Comment 1 Ondrej Brejla 2012-04-24 15:27:03 UTC
Maybe some hint could be added.
Comment 2 liviuoprisan 2017-03-17 11:25:33 UTC
this would be very useful; you can forget to create a method and find out only 3 months later, in production, when your code crashes at runtime; 
this makes php a terrible language compared to java and c#
since php introduced "declare(strict_types=1)" and made it possible to remove the silent type conversion, which is another nightmare in php, this is the biggest source of bugs