summaryrefslogtreecommitdiff
path: root/cgi_main.c
Commit message (Collapse)AuthorAgeFilesLines
* Generalized server-API build process on UNIX. Each SAPIStig Bakken1999-09-271-501/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementation now has its own directory under sapi/, just like extensions have theirs under ext/. To make the final targets appear in the main dir, the top-level Makefile includes sapi/NN/Makefile.inc from the selected sapi backend. This is a plan Makefile stub without any autoconf substitutions. Each SAPI backend also has its own config.m4 like extensions (read at the end of diversion 2) and config.h.stub files. Each SAPI backend has to contain: config.m4: just like for extensions, this file contains autoconf/automake directives that end up in the configure script. The only difference is that the sapi config.m4 files are read in diversion (output block) 2 instead of 3. The sapi config.m4 files should set two variables: PHP_SAPI (which sapi backend to choose) and SAPI_TARGET (the name of the resulting library or program, previously BINNAME). If they are not specified, they will default to "cgi" and "php", respectively. Makefile.inc: has to exist, has to define "INSTALL_IT" to the command used to install the final target (or ":" for no operation). It also has to define a plain Makefile rule (without autoconf substitutions) to build $(SAPI_TARGET) Makefile.am: just what you think. Make sure your target is called "libphpsapi_NNN.a", where NNN is the value of PHP_SAPI. Some testing and fixing probably remains. To make everything hang together, I've done some ugly tricks that I can imagine causing some problems. I've built and run the CGI version and built the Apache DSO.
* - Added support for unknown POST content types (Zeev)Zeev Suraski1999-09-161-1/+3
| | | | | - Introduce the convert_to_*_ex() API in strlen()
* Time to do that - rename the output layer prefixZeev Suraski1999-09-121-1/+1
|
* Cleanups & optimizationsZeev Suraski1999-09-111-3/+0
|
* Corrected the argument-list for getopt. -c expects argument.Jakub Skopal1999-09-061-1/+1
|
* PATH_TRANSLATED was not used at all, even if one comment impliedSascha Schumann1999-08-291-0/+3
| | | | | | it should be used. After adding this, the CGI version works for me w/ Apache + suexec
* Add -d switchZeev Suraski1999-08-281-10/+30
|
* Removed '3' from key functions in PHP (maintained compatibility throughZeev Suraski1999-08-021-5/+5
| | | | | php3_compat.h)
* I was sure I committed these already. WeirdZeev Suraski1999-07-171-1/+1
|
* License updateZeev Suraski1999-07-161-0/+21
|
* - Add a bitwise flag to phpinfo()Andi Gutmans1999-07-141-1/+1
| | | | | - Import a draft of the new PHP license
* Win32/general patchesZeev Suraski1999-06-261-2/+1
|
* * Get rid of another request_info element (filename)Zeev Suraski1999-06-261-18/+15
| | | | | * CGI through Apache should work now
* Use php.ini instead of php3.iniZeev Suraski1999-06-191-2/+2
|
* * now using php4.ini instead of php3.iniStig Bakken1999-06-151-2/+2
| | | | | | * re-imported fopen-wrappers, fsock and string code from php3 NB! I have not tested all of the imported functions yet.
* getopt.h conflicted with system include fileSascha Schumann1999-05-291-1/+1
|
* * Minor fixesZeev Suraski1999-05-221-0/+1
| | | | | * Better handling for multiple repeated memory leaks (libzend updated)
* This should be centralized...Zeev Suraski1999-05-211-5/+0
|
* * Fix error handling startup on the thread-safe CGI versionZeev Suraski1999-05-211-0/+3
| | | | | * A failed require() is a compile-time error, consider it as one
* * Finally commit that -q patchZeev Suraski1999-05-111-2/+19
| | | | | | * Refine SAPI built in header support * Use DllMain() in ISAPI to clean after threads and initialize tsrm/sapi as soon as possible.
* A couple of fixes.Andrey Hristov1999-05-101-0/+2
|
* Weed out all BoundsChecker-found bugsZeev Suraski1999-05-101-0/+1
|
* * Make read_post() read input by chunks instead of returning a single string.Andi Gutmans1999-05-091-6/+5
| | | | | | This will allow us to efficiently support file upload through SAPI in the future. * Fixes
* * Finalizing the PHP version of SAPI. Support POST and cookies among other ↵Zeev Suraski1999-05-091-3/+34
| | | | | | | | | | | | | things. * Fully implement ISAPI support - POST and cookies among other things. * Almost completely rewrote phpinfo(). Allow modules to easily display their information in phpinfo() without modifying phpinfo() itself (prototype for the module info function was changed, thus the large amount of updated module files). * Initial extended SAPI support for Apache, completely untested. * CGI now uses SAPI fully as well.
* * Get output buffering to work againZeev Suraski1999-05-061-0/+2
| | | | | | * Warn about adding header information after headers are sent * Several fixes
* Get CGI to work with the new headers code.Zeev Suraski1999-05-051-4/+24
| | | | | Now Apache is the only interface that doesn't use it.
* Move path_info to the SAPI structureZeev Suraski1999-05-021-1/+8
|
* UNIX CGI build fixZeev Suraski1999-05-021-1/+4
|
* - Make ISAPI hook in as an extension too.Andi Gutmans1999-05-021-6/+18
| | | | | - Some work on moving stuff to SAPI.
* Temporary fix for CGI compilation under UNIXZeev Suraski1999-04-261-0/+5
|
* * Plenty of thread safety and Win32 work.Zeev Suraski1999-04-261-17/+49
| | | | | | | | | | | * Changed PHP4 to compile as a DLL, both ISAPI and the the CGI run with the same DLL. * Switched to using the DLL runtime library under Win32. PHP will NOT work if compiled against the static library! * Removed yesterday's php4libts project (with php4dllts, it's obsolete). This *does* affect thread-unsafe Windows as well - the thread unsafe CGI is also dependant on the thread-unsafe DLL.
* Ah, these tooAndi Gutmans1999-04-251-0/+332