Just compiled 5.3.3 from source (win32). Trying to test some header() stuff but it looks like it won't work with CLI sapi. Any good docs on putting your compiled source into apache as a module, just like i'd normally do with the pre-compiled module.
Basically my test would be from CLI
php -r "header('Content-Type: text/plain', true, 404); var_dump(headers_list());"
I get an empty array from headers_list() so I need to get this built source into apache so that i get a response from headers_list().
Thanks in advance guys.
------- UPDATE ------
Configure command, yet no apache just yet? http://pastebin.com/qhFVR8A3:
E:\phpsdk\bin\php53dev\vc9\x86\php5.3.3>configure --disable-all --enable-cli --enable-apache2-2handler --enable-apache2-2filter
Enabled SAPI:
-------------
| Sapi Name |
-------------
| cli |
-------------
----- 2nd UPDATE ----
Downloaded apache, stuck it in ../apache and tried the following command but can't find the headers.
E:\phpsdk\bin\php53dev\vc9\x86\php5.3.3>
configure --disable-all --enable-cli --enable-apache2-2handler=../apache --enable-apache2-2filter --enable-cgi
---- 3rd Update ---
Enabled SAPI:
--------------------
| Sapi Name |
--------------------
| apache2_2filter |
| apache2_2handler |
| cgi |
| cli |
--------------------
I have it working now.
E:\phpsdk\bin\php53dev\vc9\x86\php5.3.3>configure --disable-all --enable-cli --enable-apache2-2handler --enable-apache2-2filter --enable-cgi --with-extra-includes=E:\phpsdk\bin\php53dev\vc9\x86\apache\include --with-extra-libs=E:\phpsdk\bin\php53dev\vc9\x86\apache\lib
Thanks for the link