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

Bug 330195

Summary: Search for PHP executables will result in many items added to the list, after reopening dialog only 1 item remains which is not a php executable
Product: z_Archived Reporter: trekkieman
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED DUPLICATE QA Contact: Ilina Stefanova <ilina.s>
Severity: minor    
Priority: P3 CC: kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description trekkieman CLA 2010-11-14 06:45:57 EST
Build Identifier: M20100909-0800

In the preferences dialog, section PHP/PHP Executables exists a Search button.
On clicking, a folder open dialog pops up. Directing to /usr/bin (where php cli is situated in debian and derivatives), eclipse begins a recursive search within selected folder. It reports: 21 found. Afterwards it takes some time and adds many entries to the list.
The entries are structured like: /usr/bin/X11/X11/X11/X11 and so on ... /X11/php.
the "real" php executable is also found and is on the top of the list.

example of the list content after searching (column Location only)
/usr/bin/php
/usr/bin/X11/php
/usr/bin/X11/X11/php
...
summed up, there are now 39 items in the list, each successor has another /X11

Clicking OK closes preferences dialog. On reopening the dialog, the list only contains 1 item:

/usr/bin/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/php

this is the item added at last by the search engine.

conclusion:
Although the real php executable was found and displayed, it is not set in the end, and after search operation unnecessary output is generated in the list


Reproducible: Always

Steps to Reproduce:
1. Open preferences dialog (menu Window->Preferences)
2. Expand section PHP
3. Choose section PHP Executables
4. Click Search button
5. Set directory, click OK
-- strange list output
6. Close preferences dialog
7. Reopen preferences dialog
-- wrong path to php executable is in list
Comment 1 xu jiaxi CLA 2010-11-16 00:13:07 EST
This probably is a duplicate of Bug 328087
Comment 2 Zhongwei Zhao CLA 2011-04-15 00:57:53 EDT
duplicate of 250113

*** This bug has been marked as a duplicate of bug 250113 ***
Comment 3 Kalin CLA 2011-07-27 03:46:21 EDT
Closing as a duplicate of issue bug 250113.