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

From: Date: Thu, 05 Sep 2002 03:52:10 +0000
Subject: #19240 [NEW]: apache functions not defined running as module
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18468@lists.php.net to get a copy of this message
From: screen@brainkrash.com Operating system: Win32+Linux PHP version: 4.2.2 PHP Bug Type: Apache related Bug description: apache functions not defined running as module 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 bug report at http://bugs.php.net/?id=19240&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19240&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19240&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19240&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19240&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19240&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19240&r=support Expected behavior: http://bugs.php.net/fix.php?id=19240&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19240&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19240&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19240&r=globals

« previous php.bugs (#18468) next »