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

Bug 320139

Summary: [CA] no CA for some standard functions like checkdnsrr(), dns_get_record() , getmxrr()...
Product: z_Archived Reporter: Silver Zachara <silver.zachara>
Component: PDTAssignee: Q.S. Wang <qiangsheng.w>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: gadi, ganoro, qiangsheng.w
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Silver Zachara CLA 2010-07-16 15:14:16 EDT
Hi,

this was posted to PDT's newsgroup:
After submitting a bug related to Ubuntu 10.04 and Eclipse colors (tooltips are invisibile because black on black with the default ubuntu theme)
they asked me to see if 2.2 solve the problem.

Really it solve 1/2 problem, but with the 2.2 all-in-one I lose some functions in code completion., e.g. checkdnsrr(), dns_get_record() , getmxrr()...

So, I go back on 2.1 (I only renamed the dir) and following the declaration (CTRL+click on checkdnsrr) I see where it is defined:

/opt/eclipse/plugins/org.eclipse.php.core_2.1.1.v20090921-11 00/Resources/language/php5/standard.php
the same file where you can find sleep(), bin2hex(), strtoupper(), strpos() and many other common functions.

With the 2.2, the same file is inside org.eclipse.php.core_2.2.0.v20100616-1900.jar
and I suppose PDT don't enter the jar archive.
But why strtolowe(), sleep(), etc., have code completion while checkdnsrr() and others, haven't?

So I follow definition with 2.2 with CTRL+click on strtolower() and it goes on completely other path:
workspace/.metadata/.plugins/org.eclipse.php.core/__language __/1b4486b - standard.php

So finally I discovered that changing project PHP version from "5.1/5/2" to 5.3, make CA able to find checkdnsrr()
But checkdnsrr() is also present on PHP4
http://de.php.net/manual/en/function.checkdnsrr.php

so it must be a bug, isn't it?
Comment 1 Roy Ganor CLA 2010-07-17 09:26:36 EDT
It's probably due to the fact that the generation of the standard.php functions was invokked from within Windows.

According to http://php.net/manual/en/function.dns-get-record.php this function was added to windows only in 5.3.

Should we invoke the function generation in linux?
Comment 2 Q.S. Wang CLA 2010-08-09 21:46:43 EDT
Fixed.
Comment 3 Gadi Goldbarg CLA 2010-08-23 07:35:11 EDT
Verified fixed.
Kalin Yanev
kalin.a@zend.com