php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #19240 apache functions not defined running as module
Submitted: 2002-09-04 22:52 UTC Modified: 2002-09-12 03:41 UTC
From: screen at brainkrash dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.2 OS: Win32+Linux
Private report: No CVE-ID: None
 [2002-09-04 22:52 UTC] screen at brainkrash dot 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."



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-04 22:59 UTC] screen at brainkrash dot com
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?
 [2002-09-05 15:02 UTC] kalowsky@php.net
There should be a note on the documentation that says this functionality didn't exist until version A.B.C

What file was this in that you found the functions?
 [2002-09-05 15:14 UTC] screen at brainkrash dot com
The functions are in php4/sapi/apache/php_apache.c
 [2002-09-05 15:15 UTC] kalowsky@php.net
No I ment what documentation page was this in, sorry about that. 
 [2002-09-05 15:31 UTC] screen at brainkrash dot com
hehe. figures. It's here on the web:

http://www.php.net/manual/en/function.apache-response-headers.php
http://www.php.net/manual/en/ref.apache.php

and also in the windows help file.
 [2002-09-05 15:39 UTC] kalowsky@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2002-09-12 03:41 UTC] hholzgra@php.net
the versioning information was a little outdated
so it only said "(unknown)" for some recently added functions

i just updated it and changed the text for unknown
functions from "(unkonwn)" to 
("no version information, might be only in CVS")
in the DSSSL stylesheets, this should help to prevent 
some misunterstandings in the future

(have to remember to also change the xsl version)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 23:01:32 2025 UTC