Community
Participate
Working Groups
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
Addition: the problem appeared after upgrading to v2.2.1. It works fine with previous versions.
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.
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.
(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.
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.
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.
I think the priority should be higher since there is no way to debug PHP script. (Command line mode).
fixed in head
Is there any way we can get the update for fix? Thanks!
Verified.
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