php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38835 I cannot use the -d switch in the Arguments field of my HTTP Server.
Submitted: 2006-09-14 19:42 UTC Modified: 2006-11-14 09:21 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: trustpunk at hotmail dot com Assigned: dmitry (profile)
Status: Closed Package: CGI/CLI related
PHP Version: 5.1.6 OS: Windows
Private report: No CVE-ID: None
 [2006-09-14 19:42 UTC] trustpunk at hotmail dot com
Description:
------------
I can use the -d argument inside of the CLI interface of PHP, but I cannot use it inside the CGI/FastCGI Interface.

Reproduce code:
---------------
There's no code to reproduce. I'm trying to use the -d argument with my "Abyss Web Server" setup. It allows you to add arguments to the Interpreter settings and it won't work when I use the -d with "php-cgi.exe" as my Interpreter.

I've been in the software forums on this issue and they say it's caused by PHP not passing the -d argument.

Here's an example from the "Abyss Web Server" settings.

Interface: CGI/FastCGI
Interpreter: C:\PHP\php-cgi.exe
Arguments: -d safe_mode=off

Type: PHP Style

Associated Extensions: php 

Expected result:
----------------
I expect to be able to use the -d Argument with my PHP settings. I'm using the CGI/FastCGI Interface.

Actual result:
--------------
I don't get any results. The arguments "-d" are not passed to PHP.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-19 20:40 UTC] dmitry@php.net
Fixed in CVS HEAD and PHP_5_2
 [2006-11-14 04:35 UTC] trustpunk at hotmail dot com
Hi, sorry to bring this back up. With the new 5.2.0 out, I'm
able to use the -d arguments but I'm not able to pass more than
one argument. Is this even possible?

Example:

-d safe_mode=On;display_errors=Off
 [2006-11-14 09:21 UTC] tony2001@php.net
No, it's not possible. -d is for only one option, but you can specify several -d parameters.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 13:01:29 2024 UTC