Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329630 - PHP Executable SAPI Type cannot be saved in v2.2.1
Summary: PHP Executable SAPI Type cannot be saved in v2.2.1
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Zhongwei Zhao CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-07 06:57 EST by Andras Janurik CLA
Modified: 2020-05-14 13:21 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andras Janurik CLA 2010-11-07 06:57:09 EST
Build Identifier: 20100617-1415

PDT version: 2.2.1.v20101001-2300
If I set up and save a PHP Executable, when I edit it again SAPI Type combo is blank. There is no way to save SAPI Type.
Therefore I cannot run a PHP file as script, so it is major problem.
I get this message in console:
You cannot use both -n and -c switch. Use -h for help.


Reproducible: Always

Steps to Reproduce:
1. Add a PHP Executable, setting the SAPI Type
2. After saving it click Edit
3. SAPI Type combo is blank
Comment 1 Andras Janurik CLA 2010-11-08 12:43:43 EST
Addition: the problem appeared after upgrading to v2.2.1. It works fine with previous versions.
Comment 2 Toshihiro Izumi CLA 2010-11-17 20:37:37 EST
This was introduced for resolving Bug 324073.

BTW, which version of php are you using?
>You cannot use both -n and -c switch. Use -h for help.
I can see this message on php 5.2.6, but I cannot see it on php 5.2.8 nor 5.3.x.
It seems that 5.2.8 or later version allow the combination of switches.
Comment 3 Christian Oeing CLA 2010-11-18 04:07:03 EST
The bug occurs for me, too. I'm using PHP 5.2.6 here. It would be nice to fix this for this version, too, as we can't upgrade our PHP version for the current project.
Comment 4 Andras Janurik CLA 2010-11-18 07:34:17 EST
(In reply to comment #2)
> This was introduced for resolving Bug 324073.
> 
> BTW, which version of php are you using?
> >You cannot use both -n and -c switch. Use -h for help.
> I can see this message on php 5.2.6, but I cannot see it on php 5.2.8 nor
> 5.3.x.
> It seems that 5.2.8 or later version allow the combination of switches.

My php version is 5.2.3.
I will try to upgrade it.
Comment 5 Andras Janurik CLA 2011-01-02 14:55:12 EST
I upgraded PHP to 5.3 and I am not experiencing the bug any more.
But I think the bug is still relevant for prior PHP versions.
Comment 6 Pei-Chiang Ma CLA 2011-01-31 21:11:05 EST
This bug is related to bug #32619.

You ran into problems to compare php files with PDT 2.2.1 with Helios.

According to Roy Ganor of bug #32619, apply updates from http://download.eclipse.org/tools/pdt/updates/2.2/milestones
can fix this probme (bug #32619).

However, once you apply Roy Ganor's fix, you no longer be able to run PHP script debugger. The PHP version and SAPI reading would become null (something like [yourPhpname (Xdebug null null)] from the "PHP Script" => "Alternate PHP:" in "Debug Configurations..." menu under the "debug icon". You can always reproduced this problem using Andras' steps.
Comment 7 Pei-Chiang Ma CLA 2011-02-01 14:36:46 EST
I think the priority should be higher since there is no way to debug PHP script. (Command line mode).
Comment 8 Zhongwei Zhao CLA 2011-04-15 02:38:29 EDT
fixed in head
Comment 9 Pei-Chiang Ma CLA 2011-04-15 12:58:58 EDT
Is there any way we can get the update for fix? Thanks!
Comment 10 Ilina Stefanova CLA 2011-08-03 09:05:04 EDT
Verified.
Comment 11 Renan de Lima CLA 2012-05-22 18:12:08 EDT
Some problem here. MakeGood plugins doesn't work because that, but it's possible fix it.

Go to Eclipse and export configuration
File > Export > General > Preferences

Add this line to .epf file:
/instance/org.eclipse.php.debug.core/org.eclipse.php.debug.coreenable_cli_debug=true

Go back to eclipse and import configuration
File > Import > General > Preferences