#19240 [Opn]: apache functions not defined running as module

From: Date: Thu, 05 Sep 2002 03:59:11 +0000
Subject: #19240 [Opn]: apache functions not defined running as module
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-18470@lists.php.net to get a copy of this message
 ID:               19240
 User updated by:  screen@brainkrash.com
 Reported By:      screen@brainkrash.com
 Status:           Open
-Bug Type:         Apache related
+Bug Type:         Documentation problem
 Operating System: Win32+Linux
 PHP Version:      4.2.2
 New Comment:

grr. just saw in the newsgroup that apache_response_headers won't be
released until 4.3. Any reason this appears in the current
documentation?? Is there a way to document a functions intended release
version?


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

[2002-09-04 22:52:10] screen@brainkrash.com

In attempting to use apache_response_headers i've noticed that in my
current environment (win32 dev, linux prod) not all of the apache
functions are available. 

function exists apache_child_terminate: 1
function exists apache_lookup_uri: 1
function exists apache_note: 1
function exists apache_request_headers: 0
function exists apache_response_headers: 0
function exists apache_setenv: 1
function exists ascii2ebcdic: 0
function exists ebcdic2ascii: 0
function exists getallheaders: 1
function exists virtual: 1

Note only 6 of the 10 functions exist. On windows i'm running as an
asapi module:

LoadModule php4_module c:/apache/php/sapi/php4apache.dll

And on Linux php is compiled with apache:

AddModule mod_php4.c

According to the documentation:

"These functions are only available when running PHP as an Apache
module."




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


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



Thread (8 messages)

« previous php.bugs (#18470) next »