ID:               21145
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Linux - Debian Woody
 PHP Version:      4CVS-2002-12-22 (stable)
 New Comment:

This has been documented.  The user was actually confused between CLI
and CGI as only CGI prints HTTP headers.  Simply --enable-cli does not
mean PHP will for sure copy sapi/cli/php to {prefix}/bin/php.  Anyway,
this is now documented/closed.


Previous Comments:
------------------------------------------------------------------------

[2003-01-15 09:43:49] [EMAIL PROTECTED]

So what is the bug here? Does the documentation not mention the -q flag
or something?

[EMAIL PROTECTED], call your CLI/CGI version with the -q flag to
suppress headers.

------------------------------------------------------------------------

[2002-12-22 17:57:04] [EMAIL PROTECTED]

When you compile both the CGI and CLI (without specifying install paths
and without other sapi's) make install will overwrite the installed CLI
version with the CGI one (both are installed by default into
/usr/local/bin). You can solve this by make install-cli (to overwrite
the installed CGI again).

------------------------------------------------------------------------

[2002-12-22 15:14:38] [EMAIL PROTECTED]

Please explain to the doc team how to document this new behavior in
PHP, regarding the CLI/CGI build process.  And the various problems
(such as this ncurses one) that may/will arise.

------------------------------------------------------------------------

[2002-12-22 12:55:46] [EMAIL PROTECTED]

I just reconfigured with --enable-cli and recompiled with the same
results. It always says cgi in php -v, no matter if I configure it as a
CLI or not.

------------------------------------------------------------------------

[2002-12-22 12:49:55] [EMAIL PROTECTED]

Just in case I wasn't clear enough on what HTTP headers where printed,
they follow:

Content-type: text/html
X-Powered-By: PHP/4.3.0-dev

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21145

-- 
Edit this bug report at http://bugs.php.net/?id=21145&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to