Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332554

Summary: No class type or include file validation
Product: z_Archived Reporter: dami dami <droig>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description dami dami CLA 2010-12-14 13:07:42 EST
Build Identifier: 20100617-1415

Eclipse doesn't complain about inexistent Classes or include files.

Original forum post: http://www.eclipse.org/forums/index.php?t=msg&th=201834&start=0&S=ba6e260cdf352dac1687d87e806f5876

Reproducible: Always

Steps to Reproduce:
1. Add a new php file to your prject.
2. Type: require_once 'some_inexistent_file.php';
3. Type: $instance= new SomeInexistentClass();
4. Open the problems view.
Comment 1 xu jiaxi CLA 2010-12-14 23:16:30 EST
PDT only has the syntax validation.
I think what mentioned should be a Runtime error.
We don't actually run the scripts only parse them.
Comment 2 dami dami CLA 2010-12-15 08:38:57 EST
I see, so this ticket should be an enhancement proposal actually.

(In reply to comment #1)
> PDT only has the syntax validation.
> I think what mentioned should be a Runtime error.
> We don't actually run the scripts only parse them.
Comment 3 Dawid Pakula CLA 2020-01-22 04:46:45 EST
PDT already have type validation. 

include/require validation isn't planned, it was replaced by class loaders.