Bug #14416: -q and -d command line options seem to negate each other
| From: | andy at petdance dot com | Date: | Mon, 10 Dec 2001 23:00:59 +0000 |
| Subject: | Bug #14416: -q and -d command line options seem to negate each other | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-73122@lists.php.net to get a copy of this message | ||
From: andy@petdance.com
Operating system: Solaris 7
PHP version: 4.1.0
PHP Bug Type: PHP options/info functions
Bug description: -q and -d command line options seem to negate each other
It seems that -q and -d cannot exist on the same shebang line. We're using
PHP for standalone shell scripts (i.e. no thru the web server). -q and -d
seem to negate each other: Whichever comes first on the shebang line
wins.
alester@flr4[~]$ cat qd
#!/usr/src/php-4.1.0RC4/php -q -dinclude_path=.:../../Class:../../Include
<?php
print "include_path=";
print ini_get("include_path");
print "\n";
?>
alester@flr4[~]$ ./qd
include_path=.
# The -q works, since we have no headers, but the include_path isn't
changed.
alester@flr4[~]$ cat dq
#!/usr/src/php-4.1.0RC4/php -dinclude_path=.:../../Class:../../Include -q
<?php
print "include_path=";
print ini_get("include_path");
print "\n";
?>
alester@flr4[~]$ ./dq
Content-type: text/html
include_path=.:../../Class:../../Include
alester@flr4[~]$
# The include path is changed, but now we have the Content-type header that
-q should suppress.
--
Edit bug report at: http://bugs.php.net/?id=14416&edit=1