Sascha Schumann
6d97609a31
Avoid fd leak which appears when using ZEND_HANDLE_FILENAME
1999-11-26 19:01:26 +00:00
Sascha Schumann
35b30a8d0c
Add reentrant versions of ctime, localtime, gmtime, asctime.
...
These cannot be implemented platform-independent, so we fall back to the native
non-reentrant versions, but lock during each access (only if ZTS is used).
To initialize/destroy the used data structures, you need to call
reentrancy_startup() before sapi_startup(), and reentrancy_shutdown() after
sapi_shutdown().
1999-11-26 17:07:41 +00:00
Sascha Schumann
2f6ded9ac9
Convert more source files to use thread-safe functions
1999-11-26 16:51:57 +00:00
David Hedbor
cad85534c6
Now the new direct write is enabled too...
1999-11-25 02:15:59 +00:00
David Hedbor
5f5bd0954b
Implemented direct writing to the client's FD if RXML parsing of the result isn't selected.
1999-11-25 02:05:35 +00:00
David Hedbor
353686c9c5
Now ZTS can be used. Unless --enable-roxen-zts is specified at the
...
configure line the default process global Roxen PHP lock will be
used. In tests this was a lot faster for some reason and until the
reasons are figured out, it's recommended to use the non-thead-safe
version.
Cvs: ----------------------------------------------------------------------
1999-11-25 00:28:19 +00:00
Sascha Schumann
3b2a88d4d4
some cosmetical changes
1999-11-24 17:36:23 +00:00
David Hedbor
9284f73f4f
Removed some forgotten C++ style comments
1999-11-24 07:28:17 +00:00
David Hedbor
df5308e502
Now actually correctly checks for Pike paths etc.
1999-11-24 07:17:17 +00:00
Sascha Schumann
a4c75707fb
- add PHP_BUILD_THREAD_SAFE
...
- move #undef HAVE_AOLSERVER into its own config.h.stub
1999-11-24 03:27:53 +00:00
David Hedbor
b86acfd3a2
- Added a couple of static for functions that don't need to be public.
...
- Removed some unused code.
- Started writing better comments.
1999-11-24 02:36:39 +00:00
David Hedbor
6262280ad4
Don't create a new thread for each php-script - use the handler thread.
1999-11-24 02:34:50 +00:00
David Hedbor
1973990286
Moved HAVE_ROXEN to sapi/roxen/config.h.stub
1999-11-24 00:25:14 +00:00
David Hedbor
30476d6d21
Added the wrong file.
1999-11-24 00:02:13 +00:00
David Hedbor
8fb4122333
First version of Pike/Roxen module for embedding PHP.
1999-11-23 23:08:10 +00:00
Andrei Zmievski
9781bf59cb
(main) In this special case, free path_translated. Fix for #2795 .
1999-11-23 20:25:55 +00:00
Sascha Schumann
2681a6b169
(main) Remove redundant statement, this is part of the initialization
...
function.
1999-11-23 15:39:09 +00:00
Thies C. Arntzen
b48b0734ca
Getting Zeus-Support in place - i can already see phpinfo()!
1999-11-23 11:22:45 +00:00
Sascha Schumann
fc95f04b10
(php_ns_hash_environment) Ns_ConnHost() may return NULL, check for it
1999-11-22 01:30:28 +00:00
Sascha Schumann
63a3e9ac45
(PHP getallheaders) added function for AOLserver
...
(php_ns_hash_environment) added REMOTE_PORT, SERVER_PORT, SERVER_NAME,
PATH_TRANSLATED, GATEWAY_INTERFACE variables
1999-11-22 00:42:06 +00:00
Sascha Schumann
51c83e9f4b
--enable-versioning can now be used with CGI/AOLserver as well. Note that
...
we do not use versioning per se anymore, but export only the required
symbols.
1999-11-20 19:00:17 +00:00
Sascha Schumann
111cedbbea
Moving apMakefile.{libdir,tmpl} to sapi/apache directory.
1999-11-18 14:21:50 +00:00
Andi Gutmans
25c56d15cd
- Fixing warnings in regex
1999-11-14 20:13:54 +00:00
Andi Gutmans
f3bcc012c6
- Remove ISAPI project from main dir as it's been copied to sapi/isapi
1999-11-14 19:46:31 +00:00
Sascha Schumann
677bf03f07
Allow --with-apxs and --with-regex=apache
1999-11-13 17:29:43 +00:00
Sascha Schumann
bcb2214e99
Improve regex library selection. It lets user specify whether they want
...
system, apache, or php's regex library by using the --with-regex option.
"php" is the default; if you use --with-apache in combination with
Apache 1.3.x, the default is "apache".
1999-11-13 16:51:33 +00:00
Sascha Schumann
3dc7757a99
Remove the extra INCLUDES line from most automake Mafiles. This is not
...
necessary, because we can change the value of INCLUDES globally in one
place (configure.in).
Also add two defines in thread-safe mode
(_REENTRANT and POSIX_PTHREAD_SEMANTICS)
1999-11-13 12:41:09 +00:00
Sascha Schumann
ceae3847b8
Enable selective regex library compilation.
1999-11-12 20:56:30 +00:00
Sascha Schumann
e5983e9ef5
(php_ns_request_ctor) enable HTTP Access Authentication
...
(php_ns_hash_environment) supply PATH_TRANSLATED to scripts
1999-11-07 13:16:14 +00:00
Rasmus Lerdorf
cf0868fec8
Clean up regex header file mess. php.h now explicitly includes php_regex.h
...
and php_regex.h figures out which regex header files to include and
defines symbols that prevents other stuff from including the wrong versions
of regex header files.
1999-10-30 14:22:10 +00:00
Sascha Schumann
d5bde1d658
(php_ns_hash_environment): provide more CGI/1.1 variables to scripts.
...
Added REQUEST_METHOD, QUERY_STRING, REMOTE_ADDR
1999-10-20 19:30:37 +00:00
Sascha Schumann
90087382e4
(php_info_aolserver): add more information from the server context
1999-10-20 15:53:23 +00:00
Sascha Schumann
b31ef32c1d
(php_ns_hash_environment) add SERVER_SOFTWARE, SERVER_BOOTTIME, SERVER_BUILDDATE, SERVER_PROTOCOL
1999-10-20 13:49:19 +00:00
Andi Gutmans
133c95cf8c
- It's OK if we link dynamically.
1999-10-16 11:57:52 +00:00
Andi Gutmans
ad84f02efb
- Get windows version to compile again. No biggy if array_map is not #if 0'd
...
out even if it doesn't work.
1999-10-16 10:14:47 +00:00
Thies C. Arntzen
a19f5933d5
fix suggested by sascha for xml-build in apxs mode
1999-10-09 13:43:27 +00:00
Sascha Schumann
3909ab4195
(php_info_aolserver): Show information about the SAPI module
...
(php_ns_module_main): Return early, if request startup failed
1999-10-08 13:06:28 +00:00
Sascha Schumann
5a6fe43d58
Apparently, we did too much cleanup. The server survives now much longer.
1999-10-07 21:47:39 +00:00
Sascha Schumann
02553b5e7c
POST works now and does not block anymore.
1999-10-07 21:23:55 +00:00
Sascha Schumann
3f1c010615
Remove SAPI_TARGET and use PHP_SAPI completely.
...
The target filename is now available as SAPI_PROGRAM, SAPI_SHARED, and
SAPI_STATIC.
1999-10-07 21:04:26 +00:00
Sascha Schumann
93b12f5fbd
(ns_globals_struct): remove content_type member
...
(php_ns_request_dtor): remove content_type destructor, re-add path_translated destructor
1999-10-07 20:21:55 +00:00
Sascha Schumann
483a4642f0
Add comments to the source code and fix POST-read-data bug.
1999-10-07 20:15:26 +00:00
Sascha Schumann
2a6d170dc0
nsapi => aolserver changes
1999-10-07 18:46:40 +00:00
Sascha Schumann
743b3851b1
nsapi => aolserver
...
"NSAPI" suggests Netscape too often.
1999-10-07 18:45:30 +00:00
Sascha Schumann
d480d23e97
(php_ns_request_handler): call ts_free_thread() to clean up
1999-10-07 12:00:32 +00:00
Sascha Schumann
2dd9f01a69
Fix typo.
1999-10-05 13:55:23 +00:00
Sascha Schumann
7976bcbd28
Get rid of *_SHLIB variables. Our config scripts don't need Perl,
...
unfortunately the "apxs" utility does. Someone slap the creator of apxs.
1999-10-05 13:46:52 +00:00
Sascha Schumann
7aed3d51fc
* Fix header("HTTP/..") behaviour
...
* Fix leak WRT http_status_line
* Update sapi/README
* Remove %PHP_OUTPUT_FILES sort
1999-10-04 18:07:46 +00:00
Sascha Schumann
232afa4816
* archive-based convenience libraries completely replaced
...
with libtool components
* SAPI targets can enable thread-safe mode and define
shared/static/program build target
* all configure scripts use the same config.cache
* phplibdir is $(top_builddir)/modules to avoid
permission problems
* sapi/*/Makefile.inc are gone
* runpath handling cleaned up
* top-level Makefile.in obsoleted through Makefile.am
* --enable-versioning uses libtool's cleaner and more
portable -export-symbols feature
1999-10-04 15:18:26 +00:00
Sascha Schumann
3e202d75ff
Polish this.
1999-10-04 14:29:18 +00:00