Andi Gutmans
091acff312
- PHP_WIN32
2000-02-10 17:15:49 +00:00
Andi Gutmans
f452c7762f
- Introduce PHP_WIN32
2000-02-10 17:14:05 +00:00
Zeev Suraski
945e9c3f20
More cleanup
2000-02-10 16:52:07 +00:00
Zeev Suraski
073b148167
More abstraction
2000-02-10 16:44:59 +00:00
Zeev Suraski
59b53ea2c8
Always use getopt with CGI, never use it for anything else
2000-02-10 16:27:28 +00:00
Zeev Suraski
404bbe1f26
Move the logging mechanism to SAPI
2000-02-10 15:55:10 +00:00
Thies C. Arntzen
1616b5193c
@- Fixed signal() bug that could cause the Apache master process to
...
@ die. (Thies)
the problem was that we *did* register the signal in the apache
master process as well.
php_module_startup() -> REGISTER_INI_ENTRIES() -> OnChangeMaxExecutionTime() -> php_set_timeout().
from now on the .ini mechanism only sets PG(max_execution_time) and that gets
"converted" to a timeout-signal() in php_request_startup()!
we still need to think about the ZTS timeout mechanism.
2000-02-05 19:32:27 +00:00
Zeev Suraski
39cb8fe0ac
Fix PostgreSQL startup routine in thread-safe mode
2000-02-05 17:26:35 +00:00
Zeev Suraski
3a816341f9
Cleanup patches
2000-02-05 15:16:12 +00:00
Zeev Suraski
8055da9830
Use the new state functions
...
@- If header information is sent after output has already been sent, the warning
@ message will now state the filename and line number at which the first output
@ was made (Zeev)
2000-02-04 14:54:30 +00:00
Zeev Suraski
e1a753c3d0
Add expat to the distribution
...
Add expat support to Win32 builds
2000-02-02 18:42:04 +00:00
Andrei Zmievski
f0f00daa92
Moved ext/apache into sapi/apache.
2000-02-02 06:09:00 +00:00
Zeev Suraski
430571d62c
Initial work on the protected env vars stuff
2000-01-30 20:31:41 +00:00
Zeev Suraski
680d2dae32
Fix buglets in the argv/argc code
2000-01-29 12:57:08 +00:00
Zeev Suraski
b2449f929c
- Change the argument order of php_register_variable() to something more
...
intuitive.
- Make the authentication variables be a part of the HTTP_SERVER_VARS[] array
2000-01-29 11:55:44 +00:00
Zeev Suraski
99f079a349
- A few fixes
...
- Added register_argv_argc directive to allow disabling of argv/argc
2000-01-28 18:29:37 +00:00
Zeev Suraski
ab16816eb8
Rename gpc_globals to register_globals
2000-01-28 17:43:41 +00:00
Andrei Zmievski
e02d610df8
Use sizeof on the proper string.
2000-01-28 17:29:37 +00:00
Zeev Suraski
9ab35ae393
Tried to centralize global variable registration as much as possible:
...
- Added $HTTP_ENV_VARS[] and $HTTP_SERVER_VARS[] support, which similarly
to $HTTP_GET_VARS[], contain environment and server variables. Setting
register_globals to Off will now also prevent registration of the
environment and server variables into the global scope (Zeev)
- Renamed gpc_globals to register_globals (Zeev)
- Introduced variables_order that deprecates gpc_order, and allows control
over the server and environment variables, in addition to GET/POST/Cookies
(Zeev)
2000-01-28 17:24:53 +00:00
Zeev Suraski
270eff1dfe
Use a more general and descriptive name
2000-01-28 14:57:19 +00:00
Zeev Suraski
fc678100cd
post.c really had nothing to do with POST anymore, and it belongs to the top level directory
2000-01-28 13:31:12 +00:00
Zeev Suraski
3a35a6955d
Get rid of the old implementation
2000-01-28 12:53:05 +00:00
Zeev Suraski
97f64988e2
NULL out the ticks callback until Stig implements it
2000-01-24 19:03:50 +00:00
Zeev Suraski
4b006cb8b0
This doesn't seem to be necessary, and causes a leak in case of output_buffering=on
2000-01-18 22:25:48 +00:00
Zeev Suraski
f6ac18841d
Make the phpinfo() images work properly again
2000-01-18 19:15:45 +00:00
Zeev Suraski
62114c1806
Destructors no longer return ints, the low level problem it was intended to solve is long gone now...
2000-01-17 17:33:37 +00:00
Zeev Suraski
ec386cc9fd
- Remove the pre-request-shutdown hooks, they should no longer be necessary.
...
The session module may not work due to an unknown (and until now, IMO, misdiagnosed) problem,
if it does, please report it!
2000-01-16 21:03:49 +00:00
Zeev Suraski
2dea694ab4
Remove the post-startup callback support. Modules are now started only after
...
the entire engine is started. People - please make sure that the session module
works properly for you.
2000-01-16 19:43:34 +00:00
Thies C. Arntzen
4352cb55f1
move call to php_execute_pre_request_shutdown() into php_request_shutdown()
...
so it will be called when script terminated due to call to exit().
2000-01-16 14:34:28 +00:00
Thies C. Arntzen
83097f136a
fixes #3220 , #3221 finally
2000-01-16 12:34:18 +00:00
Thies C. Arntzen
437e396455
nother go on #3220 , #3221
2000-01-16 11:12:44 +00:00
Thies C. Arntzen
840697c69b
hopfully fixes #3220 , #3221
2000-01-16 10:51:55 +00:00
Zeev Suraski
a0591b32c7
Fix logic
2000-01-15 17:23:18 +00:00
Sascha Schumann
b83739945e
Initialize flag correctly
2000-01-15 17:16:21 +00:00
Sascha Schumann
c7667cec62
Initialize/destroy hook lists implicitly.
2000-01-15 13:30:32 +00:00
Thies C. Arntzen
3ff75e5b8b
- don't set php_errormsg on errors that will cause a zend_bailout().
...
using zend_hash_update() can make things worse in this situation.
- new function php_register_pre_request_shutdown(). this way modules
can register callbacks that will be called as soon as execution of
the script is done but *before* any cleanup (global symbol_table etc)
has taken place.
2000-01-15 13:02:54 +00:00
Zeev Suraski
24156db252
@- Added implicit_flush INI directive (Zeev)
2000-01-13 20:39:33 +00:00
Zeev Suraski
3f74baed02
Woops, forgot to commit the right version of the file...
2000-01-13 17:54:51 +00:00
Zeev Suraski
972631be71
- Added flush() support to SAPI
...
- Got rid of the old flush() implemenetation in favour of the new one
- Added implicit_flush() support to the output buffering layer.
@- Added implicit_flush() to control whether flush() should be called
@ implicitly after any output (Zeev)
2000-01-13 17:37:25 +00:00
Rasmus Lerdorf
e8b74e56c9
# Fix silly typo
2000-01-08 14:36:12 +00:00
Sascha Schumann
304d60c8f3
Move reentrancy initialisation/destruction into SAPI.
...
These calls only do something, if reentrancy emulation is required.
2000-01-05 19:25:19 +00:00
Sascha Schumann
2fd8cbff2a
Declare timezone only, if the system fails to do so.
2000-01-01 02:22:01 +00:00
Sascha Schumann
43ae2bffbb
Happy Y2K patch! Happy new year (or the new millennium, depending on whether
...
you start counting at 0 or 1).
2000-01-01 01:32:05 +00:00
Zeev Suraski
ccb4b18348
Happy new year (especially to Thies :)
...
- Zend branch patches merged in - get the PHP tree uptodate
- Clean
1999-12-31 14:06:31 +00:00
Sascha Schumann
5b2ecc5b82
Typedef socklen_t, if it is not available
1999-12-30 16:09:17 +00:00
Sascha Schumann
f2f8d38efa
Integration of -ng changes. Changes:
...
- added support for externally built modules,
- improved support for in-tree shared modules,
- fixed diversion bugs,
- configure displays some informative messages,
- faster static build
(libtool isn't used anymore for compiling non-PIC objects),
- dependencies comparable to automake's without requiring GNU make or GCC,
- working make clean for non-GNU makes.
1999-12-30 02:59:53 +00:00
Zeev Suraski
235386b245
Change ALLOC_ZVAL() semantics
1999-12-26 21:21:33 +00:00
Zeev Suraski
c517633b49
namespace protection
1999-12-26 20:45:42 +00:00
Zeev Suraski
735efc17f3
php3_realpath.c -> php_realpath.c
1999-12-24 20:47:35 +00:00
Zeev Suraski
21b403d4d9
Fix warnings
1999-12-24 20:47:01 +00:00
Andi Gutmans
3bf1b04cb4
- Move more stuff to ALLOC_ZVAL(). We need to add those FREE_ZVAL()'s now.
1999-12-24 17:39:27 +00:00
Zeev Suraski
af925f0a14
- Beef up the INI file reader - it now supports PHP constants, as well as
...
bitwise operators on them (no more error_reporting = 7, from now on you
can use error_reporting = E_ALL & ~E_NOTICE
@- Improved the php.ini reader to support constants and bitwise operators (Zeev)
1999-12-24 13:46:24 +00:00
Zeev Suraski
e538fcbf10
@- Fixed a bug in ODBC error reporting (Zeev)
...
@- Added PHP_Logo_GUID() and Zend_Logo_GUID() functions, that return the GUIDs
@ of the PHP and Zend logos used in phpinfo() (Zeev)
1999-12-21 20:35:43 +00:00
Andrei Zmievski
0f1acb60a1
php3 -> php prefix work
1999-12-21 19:43:38 +00:00
Andrei Zmievski
cc205c60ae
Correct PHP's mime type.
1999-12-21 19:40:27 +00:00
Andrei Zmievski
80bab9d939
We're using ZVAL's now.
1999-12-21 17:14:31 +00:00
Sascha Schumann
931bbca113
Change order to avoid system prototype mismatch (sprint is defined to
...
php_sprintf by php_config.h)
1999-12-21 01:22:31 +00:00
Zeev Suraski
4d2b0715d1
libzend -> Zend
1999-12-19 21:02:54 +00:00
Sascha Schumann
143b02d8a4
Fix for missing RAND_MAX on SunOS 4.1
1999-12-19 14:27:45 +00:00
Evan Klinger
497b3fe2c5
Fix for #2994
1999-12-19 02:04:20 +00:00
Zeev Suraski
21e53485dd
getParameters() and friends changed for consistency and namespace cleanliness
1999-12-18 22:21:51 +00:00
Andi Gutmans
28bfab716b
- Make Win32 compile again
1999-12-18 17:44:56 +00:00
Zeev Suraski
fb1c77bd4f
- Made PHP_VERSION and PHP_OS work again
...
- More php3_ cleanup
@- Restored the PHP_VERSION and PHP_OS constants (Zeev)
1999-12-17 20:55:31 +00:00
Zeev Suraski
a3c6514332
More php3_ annihilation
1999-12-17 19:51:39 +00:00
Zeev Suraski
02d3b39420
More php3_ annihilation
1999-12-17 19:16:50 +00:00
Zeev Suraski
d8000684bf
- Implement ability to turn off support for call-time pass by reference
1999-12-15 21:20:34 +00:00
Andrei Zmievski
158979f838
(return_one) removed.
...
(OnChangeMemoryLimit) Only defined if MEMORY_LIMIT is defined.
1999-12-15 17:41:19 +00:00
Andrei Zmievski
b68f3af503
Added date/time stamping to PHP error log file. Idea credit goes
...
to Joey.
@ Added date/time stamping to PHP error log file. (Andrei, Joey)
1999-12-15 17:37:05 +00:00
Sascha Schumann
63e8df2320
Postpone the execution of post request startup handlers until the symbol_table is populated
1999-12-14 00:01:08 +00:00
Sascha Schumann
4762285e40
Disable global lock for now. We will have to find a way to test subsystems
...
for thread-safety, and lock them appropiately, if they aren't thread-safe.
1999-12-12 10:49:03 +00:00
Sascha Schumann
e08b2e7b0f
Export sapi_free_header()
1999-12-10 12:38:20 +00:00
Zeev Suraski
e19e57d2f7
- Use Set-Cookie for consistency with SetCookie() (and possibly for adherence with
...
with some clients?)
- Remove unnecessary directive from configuration-parser.y
1999-12-08 22:22:20 +00:00
Sam Ruby
8abf724678
Provide basis for shared libraries/dlls to contain internal extensions
1999-12-07 20:49:01 +00:00
Thies C. Arntzen
a807dd31e9
new assert() module. (Not yet finished!)
1999-12-07 11:37:30 +00:00
Zeev Suraski
5df43c134f
opened_path could end up uninitialized - fixed
1999-12-06 15:30:44 +00:00
Sascha Schumann
d9a86285f6
Fix some warnings
1999-12-05 16:43:32 +00:00
Sascha Schumann
4a60eed469
Fix some warnings
1999-12-05 16:25:32 +00:00
Rasmus Lerdorf
45f9527518
More maintainer-mode cleanups
1999-12-05 14:37:38 +00:00
Rasmus Lerdorf
dfd0f8824c
More maintainer-mode cleanups
1999-12-05 14:16:37 +00:00
Zeev Suraski
f362208033
That one is actually supposed to have 'php3' on it - it's the PHP 3.0 compatibility defines for 4.0
1999-12-04 23:03:01 +00:00
Sam Ruby
0d96b8da6b
Build error
1999-12-04 19:48:08 +00:00
Sascha Schumann
5b983c944f
Clean up php3.*\.h files. The files itself are renamed, and references in all
...
.*\.[ch] files were changed. There is a slight chance that my script missed
a few changes, please correct them manually.
1999-12-04 19:19:57 +00:00
Sascha Schumann
8713ce5d38
Remove code references to serverapi
1999-12-04 18:06:15 +00:00
Andrei Zmievski
20190c966d
Session variables now obey track_vars and gpc_globals settings.
...
If track_vars is on then decoded variables appear in $HTTP_STATE_VARS
array. If gpc_globals is on, then session vars are decoded into global
variables. If both are on, then globals and $HTTP_STATE_VARS contents
are references to each other.
The /decoder functions now just need to call php_set_session_var()
this behavior.
@ -Session vars are now decoded into $HTTP_STATE_VARS[] array and the
@ globals, depending on track_vars and gpc_globals settings (Andrei)
# Encoding source is currently only globals. We may want to change this
# in the future.
1999-12-04 17:02:04 +00:00
Zeev Suraski
da5464b145
- zend_file_handles must now flag whether their .filename property should be
...
free by Zend or not (uses e*() functions)
1999-12-04 13:25:41 +00:00
Sascha Schumann
39a99dd695
2<<30 (== 1<<31) overflows 32-bit signed int, reverting to 1<<30
1999-12-03 15:16:32 +00:00
Sascha Schumann
639c491da4
Add X-Powered-By header in all configurations to ease PHP usage metering
1999-12-03 12:21:57 +00:00
Rasmus Lerdorf
162adb778e
@ PHP 4 scripts will now obey the max_execution_time setting and actually
...
@ time out (Rasmus)
# Note that Apache clears all signal handler including SIGPROF before
# calling the content handler, so even though we set our itimer before
# this in the PHP_INI stuff, Apache kicks sand in our face and we need
# to set the timer again just before we start parsing
1999-12-03 05:03:16 +00:00
Rasmus Lerdorf
c92db34492
# just some symbol cleanup while I am browsing through looking for this
...
# timeout problem
1999-12-02 20:00:16 +00:00
Stig Bakken
2467dd6d05
@Fix some warnings when compiling in maintainer-mode (Stig)
...
@Made mysql and gd work as shared extensions again (Stig)
- Fixed some warnings in maintainer-mode.
- Made mysql and gd work as shared extensions again by defining
COMPILE_DL if PIC is defined.
# We need a better solution for building .so extensions than this
# PIC/COMPILE_DL hack!
1999-12-01 22:59:45 +00:00
Sascha Schumann
fce775e8a3
Remove fsock-specific members
1999-12-01 17:07:54 +00:00
Sascha Schumann
94c36e8846
Make fsock module thread-safe
1999-12-01 17:07:25 +00:00
Sascha Schumann
00f8f24d74
Avoid Apache's regex.h, if system regex was chosen
1999-11-30 23:19:33 +00:00
Sascha Schumann
cfc7e27a7f
Add PHPAPI for Windows.
1999-11-30 20:46:07 +00:00
Andi Gutmans
2337d110f9
- Added opened_path to php_fopen_wrapper() and the URL fopen wrapper (it's not
...
always properly set, it's a TODO for all of us). This enables us to implement
true 'use' support.
@- Added support for the 'use' keyword - behaves like 'require', but will not
@ use the same file more than once (Andi & Zeev, Zend library)
1999-11-30 20:18:11 +00:00
Andi Gutmans
0ab2c37540
- Add OLS_C so that we can call php_output_init_globals() with it.
1999-11-28 20:38:44 +00:00
Zeev Suraski
33bdf19051
Update Win32 build
1999-11-27 17:11:20 +00:00
Zeev Suraski
85210ed9bf
Get Win32 to compile again
1999-11-27 00:48:50 +00:00
Sascha Schumann
3d092da662
unposixfy calls to TSRM
1999-11-26 19:27:08 +00:00
Sascha Schumann
1f9a496601
Define macros only, if one of the locking _r functions is used
1999-11-26 19:09:57 +00:00
Sascha Schumann
f0187ef3c9
Use php_init_output_globals() also in non-ZTS mode
1999-11-26 18:34:27 +00:00
Sascha Schumann
ec18b99d86
Fix typo (shutdown -> startup)
1999-11-26 17:37:22 +00:00
Sascha Schumann
524f0b1b0a
- move strtok_r into reentrancy.c
...
- add rand_r()
1999-11-26 17:33:53 +00:00
Sascha Schumann
a64691615a
Add/update copyright headers
1999-11-26 17:12:01 +00:00
Sascha Schumann
e56e63a6e4
Back out last commit.
1999-11-26 17:08:23 +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
fe48f6ed6a
Use thread-safe versions of asctime and localtime
1999-11-26 16:32:02 +00:00
Sascha Schumann
5d34e43f8d
Include php_config.h in both files, otherwise HAVE_STRLCAT/HAVE_STRLCPY
...
will never be defined, even on systems which have these functions.
1999-11-26 13:33:41 +00:00
Zeev Suraski
442f8b3c3c
*** empty log message ***
1999-11-25 15:24:49 +00:00
Sascha Schumann
d462115341
Killing some unused variable warnings
1999-11-24 17:56:31 +00:00
Zeev Suraski
db0fcc6d11
Use the unified notation...
1999-11-23 22:10:44 +00:00
Sam Ruby
5385610450
errors during startup trap server
1999-11-23 03:10:46 +00:00
Zeev Suraski
9820dd0927
Fixed a leak when using automatic output buffering
...
@ Fixed a leak when using automatic output buffering (Zeev)
1999-11-22 20:58:56 +00:00
Andi Gutmans
0094b765eb
- Make it consistent with the rest of the stuff there.
1999-11-19 16:42:19 +00:00
Andi Gutmans
3bffcbef5b
- Add array.c to the Win32 project
1999-11-19 15:06:57 +00:00
Sascha Schumann
4bb5e353d5
Add post request startup handlers. These are called at the end of the
...
request startup function, and can use the initialized structures like
the symbol table.
1999-11-17 23:01:27 +00:00
Stig Bakken
3150bd63e9
Bump version to 4.0b4-dev.
1999-11-17 13:25:44 +00:00
Stig Bakken
65557ffe88
4.0b3 coming up
1999-11-16 15:37:31 +00:00
Stig Bakken
5f8f410e51
@Added tmpfile() function (Stig)
...
Removed the mkstemp stuff and added tmpfile() function instead.
1999-11-14 11:05:37 +00:00
Andrei Zmievski
c898d87aad
These are inserted automatically now.
1999-11-13 20:47:33 +00:00
Andrei Zmievski
438addf331
Split array functions into separate module.
1999-11-13 20:31:54 +00:00
Sascha Schumann
afc9e1257b
Suck in prototypes correctly with applied aliases
...
(otherwise php_reg* would not be prototyped)
1999-11-13 18:33:28 +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
c810659379
preparing 4.0b3-RC5
1999-11-13 12:48:57 +00:00
Thies C. Arntzen
639354357f
@- RFC-854 fix for internal FTP-Code. Commands have to end in "\r\n" (Thies)
...
(PHP fopen) commands send to a FTP-server need to end in "\r\n" (RFC 854)
1999-11-11 13:49:42 +00:00
Stig Bakken
45c254d89c
#if -> #ifdef changes for the ODBC extension (for consistency)
1999-11-09 19:53:38 +00:00
Stig Bakken
ef941dd700
4.0b3-RC4
1999-11-09 17:03:46 +00:00
Stig Bakken
9e1cfb4f6e
Bump version to 4.0b3-RC3.
...
# We release RC2 just minutes before Sam Ruby commits his Java extension.
# What timing!
1999-11-09 12:20:34 +00:00
Stig Bakken
63d47b7735
(PHP tempnam) now uses mkstemp() if available
...
@- tempnam() now uses mkstemp() if available (Stig)
1999-11-08 09:18:57 +00:00
Zeev Suraski
512f4519c6
Version update
1999-11-06 10:06:37 +00:00
Zeev Suraski
0700ad3417
- Win32 fixes
...
- COM module improvements from Boris Wedl
1999-11-06 10:01:55 +00:00
Sam Ruby
d5233c482b
configuration failures trap server
1999-11-05 17:52:00 +00:00
Stig Bakken
f2099fccfb
# First shot at 4.0b3.
1999-11-04 09:40:44 +00:00
Sam Ruby
242631c4bb
@Continue processing PHP_INI_SYSTEM knownDirectives after extension=
...
#
# Never saw a response to PHP-DEV post of 25-OCT
#
# Given the existence of knownDirectives, I figured that option 2
# was closest to the original design intent.
1999-10-31 11:56:22 +00:00
Rasmus Lerdorf
5a391e843a
typing in the dark
1999-10-30 14:26:42 +00:00
Rasmus Lerdorf
3bfc215091
Damn, can't see underscores correctly on this silly terminal I am on
1999-10-30 14:24:36 +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
Rasmus Lerdorf
f160ee8782
Kill the regex header file warnings
1999-10-29 17:33:19 +00:00
Thies C. Arntzen
ea880d2b86
moved output.c into ext/standart and made it thread-safe.
...
moved output-buffering related functions from basic_functions to output.c
Win32 project need to be updated to reflect new position.
# i'm not really happy with this solution, but it seemed the easiest one!
# the whole output code is a bit hard to understand...
@- Output-Buffering system is now Thread-Safe. (Thies)
1999-10-27 18:30:41 +00:00
Andi Gutmans
8a3e0ced12
- Make COM compile again
1999-10-20 19:16:17 +00:00
Andi Gutmans
5212b2fe5b
- Make CVS compile on Win32.
...
- Rename php3_COM.h -> php_COM.h
1999-10-20 18:09:44 +00:00
Andrei Zmievski
26c019eaa1
Revert my patches to error functions.
1999-10-19 19:11:02 +00:00
Andrei Zmievski
9e0017536d
_php3/_php3i -> php rename
1999-10-16 16:35:20 +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
Andrei Zmievski
db69449d9f
Update mergesort() proto.
1999-10-15 21:23:37 +00:00
Andrei Zmievski
e906d4548a
Small tweak in the error format.
1999-10-15 20:32:47 +00:00
Andrei Zmievski
b625bbd14a
(php3_log_err): Don't output error message to stderr when
...
running as CGI binary.
1999-10-15 20:27:38 +00:00
Andrei Zmievski
3ee9dbea0c
(php_error): finally get rid of those annoying html tags
...
when running as CGI binary
1999-10-15 19:55:18 +00:00
Andrei Zmievski
86e031d9e8
Added mergesort.c from FreeBSD.
1999-10-15 19:23:04 +00:00
Thies C. Arntzen
b5c3c7bfc9
files are now resources, file.c is thread-safe, the le_ vars are no longer shared,
...
but they are accessible thru "php_file_le_socket(), php_file_le_uploads()..."
i also updated the ftp, pdf and file-upload stuff to match the new requirements.
@- Cleaned up File-Module (Thies)
1999-10-15 15:22:25 +00:00
Zeev Suraski
9295bd2577
Make ODBC work under Win32
1999-10-15 12:28:20 +00:00
Thies C. Arntzen
e2d66a6d28
new api fo dl() - renamed php3_dl to php_dl (added compat header)
1999-10-13 19:55:25 +00:00
Thies C. Arntzen
0cc1641447
starting to clean-up/new API'ize and resourcify the file-stuff - nothing happened yet - just renaming things around.
1999-10-12 18:50:05 +00:00
Sascha Schumann
965c9c2187
Use correct data type for mutex.
1999-10-08 16:29:33 +00:00
Sascha Schumann
9c995e93d7
Implement temporary workaround for thread-safety issues. This
...
serializes all request accesses. To disable, define NO_GLOBAL_LOCK
1999-10-08 16:24:31 +00:00
Thies C. Arntzen
601b837c56
SET_VAR_STR* expect a emalloc'ed copy of the string!
1999-10-07 09:13:39 +00:00
Uwe Steinmann
8c473e1f47
- support for mimetype application/vnd.fdf needed by fdf module
...
(only active if fdf support is compiled in)
1999-10-06 05:26:25 +00:00
Sascha Schumann
c36bff57ca
Fix logic.
1999-10-05 12:06:35 +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
Thies C. Arntzen
b357d0eaf8
i swear, i compiled (at least) before i committed!
1999-10-04 10:39:32 +00:00
Thies C. Arntzen
0dbabb9871
"cc -32" on IRIX 6.4 does not like (PHP_TRACK_VARS?"1":"0") - at least not if PHP_TRACK_VARS is 0.
1999-10-04 09:56:52 +00:00
Stig Bakken
2a854ca8b9
Generalized server-API build process on UNIX. Each SAPI
...
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.
1999-09-27 16:34:28 +00:00
Stig Bakken
33a946d317
#if !HAVE_FOO -> #ifndef HAVE_FOO
1999-09-24 14:41:27 +00:00
Andi Gutmans
96a19593b2
- Internal functions which are basic language functions should be in Zend
...
and not in PHP. I.e. strlen(), each(), error_reporting(), count(),
get_class_name().
1999-09-20 16:56:02 +00:00
Sascha Schumann
dbc6964fbb
There is no reason to define malloc() to xmalloc() in this context.
1999-09-18 12:13:48 +00:00
Sascha Schumann
61f288ced3
0' flag ignored with precision specifier and
X' format
1999-09-17 01:16:54 +00:00
Zeev Suraski
98d95dd88e
- Added support for unknown POST content types (Zeev)
...
- Introduce the convert_to_*_ex() API in strlen()
1999-09-16 23:18:15 +00:00
Zeev Suraski
71a4740847
*** empty log message ***
1999-09-16 22:31:33 +00:00
Zeev Suraski
13e67642fa
Generalize SAPI a bit
1999-09-16 22:15:43 +00:00
Thies C. Arntzen
328d08bd63
HASH_OF is usable enough (i hate duplicating macros all over the place)
1999-09-15 09:51:20 +00:00
Stig Bakken
1740e6ee4e
Clean up the strlcat/strlcpy checks.
1999-09-15 09:35:20 +00:00
Andi Gutmans
37d7b91d48
- First go at using strlcat().
1999-09-14 20:12:46 +00:00
Andi Gutmans
6a836bee6f
- Support strlcpy/strlcat in windows.
1999-09-14 20:02:47 +00:00
Andi Gutmans
61a3c147c3
Add strlcpy/strlcat to the build process
1999-09-14 19:12:57 +00:00
Thies C. Arntzen
ac1a484c84
i'm sure this was left-over debugging code!
1999-09-14 13:32:54 +00:00
Andi Gutmans
331221eec6
- X-* is probably more standard.
1999-09-13 20:03:56 +00:00
Thies C. Arntzen
95303a4bb2
added Metaphone support
1999-09-13 15:48:32 +00:00
Zeev Suraski
b2c0acb9ec
- Rewrote the GET/POST/Cookie data reader to support multi-dimensional
...
arrays! (Zeev)
This still needs a lot of more testing, but it seems to work more or less.
1999-09-12 23:51:12 +00:00
Zeev Suraski
ce5a09ea40
Add PHP-Version header in IIS
1999-09-12 21:07:53 +00:00
Zeev Suraski
9e3315799c
That's important enough to be cached
1999-09-12 20:36:48 +00:00
Zeev Suraski
a1784083e9
Time to do that - rename the output layer prefix
1999-09-12 03:25:02 +00:00
Andrey Hristov
99caa5d43b
Use OnUpdateBool for Boolean entries.
1999-09-11 20:36:47 +00:00
Zeev Suraski
7afbcb4fef
Rename allow_builtin_links to expose_php
1999-09-11 16:32:08 +00:00
Zeev Suraski
27afe4e49b
More cleanup
1999-09-11 16:16:16 +00:00
Zeev Suraski
15fee4d3a6
- Seriously optimize and clean php_parse_gpc_data()
...
- Added gpc_globals directive to turn global definitions of GPC variables on/off
(untested)
1999-09-11 15:04:45 +00:00
Zeev Suraski
1b6ccfe86c
Cleanups & optimizations
1999-09-11 14:09:29 +00:00
Zeev Suraski
fb910c64cd
Cleanups
1999-09-11 13:44:23 +00:00
Andi Gutmans
48ab0fb57d
- Fix warnings and win32 compile
1999-09-07 20:29:31 +00:00
Zeev Suraski
959ad0e9ea
A couple of BoundsChecker fixes
1999-09-06 22:40:27 +00:00
Andi Gutmans
f1afd5796c
- Should fix Win32 compile
1999-09-06 20:43:25 +00:00
Sascha Schumann
8aa0c92bc6
fix warning
1999-09-05 19:59:28 +00:00
Andi Gutmans
7ebbe20fb0
- Should fix short_tags and co. problem.
1999-09-05 19:49:54 +00:00
Andi Gutmans
52cb8bb275
- Make Win32 compile once again.
1999-09-05 19:36:04 +00:00
Andi Gutmans
14d9a59f1c
- Make dir functions compile in Win32
...
- Fix too early memory manager initialization (For you Thies)
1999-09-05 19:04:40 +00:00
Sascha Schumann
5a2189f3d3
work around gcc bug, otherwise compiler would die with
...
toplev.c:2261: Internal compiler error in function float_signal
in basic_functions.c
1999-09-05 11:38:01 +00:00
Andi Gutmans
04b0bc4c70
- php_error(E_ERROR,...) won't ever return so change the connection_status
...
before it is called.
1999-09-05 05:15:42 +00:00
Rasmus Lerdorf
bcb0020705
Forgot one
1999-09-04 22:18:43 +00:00
Zeev Suraski
ce4e09daff
This was actually intentional... put it back in and improve
1999-09-04 22:13:41 +00:00
Rasmus Lerdorf
54ec3a8e2f
Cleanups
...
What the heck was that dangling (c) for in the PUTC macros? Were they
supposed to serve some sort of purpose, because I sure don't see one for
them.
1999-09-04 22:06:12 +00:00
Rasmus Lerdorf
d3439023d3
Catch a timeout and add user-level interface for connection handling
1999-09-04 21:10:39 +00:00
Rasmus Lerdorf
82d975d671
Might as well bail as soon as we know we should since this is now
...
possible. We still need to set our connection status bit field so a
shutdown function can figure out if a script was terminated due to an
abort, timeout or finished normally.
1999-09-04 20:37:24 +00:00
Rasmus Lerdorf
0bede914ab
First part of the connection_status work. No user-callable functions
...
yet. That is coming next. Have also only done Apache and CGI so far.
Will have to crack open my ISAPI book to do that one.
Also changed the SAPI output functions to return an int. We'll check
the connection status inside each one, but we might need the return
code at some other level and I don't see a good reason for just tossing
these return codes.
1999-09-04 20:12:47 +00:00
Zeev Suraski
c12d4bc7d4
*** empty log message ***
1999-09-04 13:18:59 +00:00
Sascha Schumann
3e591dabbd
Add global startup/shutdown functions in Win32 version as well
1999-09-03 18:33:30 +00:00
Sascha Schumann
8e8d923fea
Add prototypes for new functions in internal_functions.c.in
1999-09-03 18:32:34 +00:00
Sascha Schumann
5b293ecd4d
- add global startup/shutdown handlers
...
- improve genif.sh to also consider all header files for inclusion
(checks for phpext_)
- use vsnprintf in main.c to avoid buffer overflows
- improve sessions's mm module to cope better with OOM situations
within the shared memory segment
- fix typo wrt session.auto_start
1999-09-03 17:46:39 +00:00
Zeev Suraski
ee56524324
Version update
1999-09-03 08:26:13 +00:00
Zeev Suraski
276c876171
- Fixed several problems with output buffering and HEAD requests (Zeev)
...
- Fixed HTTP Status code issue with ISAPI module (Zeev)
1999-09-03 02:39:36 +00:00
Andi Gutmans
b6789ae332
- Add sessions module to standard win32 build.
1999-09-01 19:28:07 +00:00
Stig Bakken
4092f4b8c0
ext/lcg -> ext/standard in various places
1999-08-31 18:05:22 +00:00
Stig Bakken
788b25ccf8
fix for bug #2165
1999-08-31 15:39:13 +00:00
Stig Bakken
5600f889b2
moved lcg stuff to ext/standard
1999-08-29 20:12:12 +00:00
Sascha Schumann
053712c95d
when "track_vars" is disabled and a script which contains <?php_track_vars?> is
...
accessed for the first time, track vars were not created properly.
1999-08-28 14:00:44 +00:00
Zeev Suraski
4628f3021b
New relay code
1999-08-28 11:17:28 +00:00
Zeev Suraski
f681b37c7b
*** empty log message ***
1999-08-27 04:51:49 +00:00
Zeev Suraski
1dadb97552
Log date&time on script logs
1999-08-27 04:31:53 +00:00
Andi Gutmans
7a9ad9d0c8
Make fopen() work with URL's in Win32
1999-08-25 16:24:14 +00:00
Zeev Suraski
7e250d06f5
Add output_buffering directive
1999-08-24 23:12:50 +00:00
Andi Gutmans
d13f6d754f
- Add lcg to windows project.
1999-08-22 19:19:42 +00:00
Andi Gutmans
aeec4e198a
- Fixed memory leaks. tsrm resource id deallocation still needs to be implemented.
1999-08-19 16:52:53 +00:00
Zeev Suraski
4e33a1d677
Close bug #1742
1999-08-14 16:52:28 +00:00
Zeev Suraski
55a6c270dd
Fix thread unsafe version
1999-08-14 10:04:04 +00:00
Andi Gutmans
7145d1a21a
- Make the non-threadsafe version compile again
1999-08-14 09:55:43 +00:00
Zeev Suraski
58e24ac18a
- Add PHP Modules workspace
...
- Get the MySQL module to compile&work under thread-safe Win32
- Fix various thread safety issues with dynamic modules
1999-08-13 21:03:27 +00:00
Philippe Verdy
2d3ef1b8ae
no return warning removed. fixed TSRM constructor prototype
1999-08-12 11:05:43 +00:00
Andi Gutmans
c791d60ad9
Go beta 2 (final)
1999-08-09 18:29:40 +00:00
Andi Gutmans
3516ee485a
Fix HTTP/ header handling
1999-08-09 17:40:28 +00:00
Zeev Suraski
1e6c159422
Built-in phpinfo() links are now turned off by default. They can be
...
turned on using the allow_builtin_links INI directive
1999-08-07 18:21:35 +00:00
Philippe Verdy
6c40fa15b6
unreferenced variable warning
1999-08-07 15:58:51 +00:00
Thies C. Arntzen
2c73cc3b29
hope i haven't missed anything - but we're no longer in the 3.x tree
1999-08-05 07:42:46 +00:00
Mike Gerdts
ecc1aa80e7
Last character of file not a newline, causing problems with Sun's C compiler
1999-08-03 16:49:33 +00:00
Mike Gerdts
a36fa329a2
file did not end with a newline, causing problems for Sun's C compiler
1999-08-03 15:27:19 +00:00
Zeev Suraski
30569aac45
Go Beta 2
1999-08-02 19:20:54 +00:00
Zeev Suraski
3cb1eb0471
Removed '3' from key functions in PHP (maintained compatibility through
...
php3_compat.h)
1999-08-02 19:17:14 +00:00
Zeev Suraski
2639ab7d03
Fix another compile warning
1999-07-31 19:53:02 +00:00
Zeev Suraski
afeb7704c9
Fix problem with include/require of URLs
1999-07-31 18:57:41 +00:00
Andrey Hristov
e1a84e442e
Fix for bug #1907 .
1999-07-30 13:17:29 +00:00
Andrey Hristov
5aa3eff94f
Fix link functions problem.
1999-07-28 13:59:35 +00:00
Andrey Hristov
1b2c932cc2
More symbol work.
...
I've defined a few macros to help with module/request init/startup function definitions.
Basically:
PHP_MINIT_FUNCTION(module)
PHP_MSHUTDOWN_FUNCTION(module)
PHP_RINIT_FUNCTION(module)
PHP_RSHUTDOWN_FUNCTION(module)
PHP_MINFO_FUNCTION(module)
These will expand to proper function prototypes.
Now to specify these in the module entry, use:
PHP_MINIT(module)
PHP_MSHUTDOWN(module)
PHP_RINIT(module)
PHP_RSHUTDOWN(module)
PHP_MINFO(module)
I've updated all modules in ext/standard and everything from ext/apache to ext/db.
If you can, please update your module to use these macros.
1999-07-26 20:09:08 +00:00
Andrey Hristov
736f4831a5
A bunch of grunt work updating function entries and declarations.
1999-07-24 22:16:54 +00:00
Zeev Suraski
fff675c448
Congrats Andrey
1999-07-24 20:36:31 +00:00
Zeev Suraski
68e32f6ac3
* Make Win32 build work again
...
* Make error_reporting value prior to the standard initialization be
set so that errors show up
1999-07-24 16:52:00 +00:00
Stig Bakken
830be36b56
required for the Windows build, re-adding
1999-07-23 20:47:17 +00:00
Stig Bakken
8bf949b5d6
generated file
1999-07-23 15:32:07 +00:00
Andi Gutmans
6cdea551cc
- Make Win32 compile again.
1999-07-23 14:14:42 +00:00
Andrey Hristov
64ed8f7141
Changeloggin'
1999-07-23 13:47:57 +00:00
Andrey Hristov
64dae03eea
-Ported all remaining date() options
...
-Made array_walk() work somewhat, but it's not
possible to change array values from inside the
walk function yet
1999-07-22 15:15:41 +00:00
Stig Bakken
d9f52fe0a7
First cut at standard way of making dynamically loadable extensions on UNIX.
...
Examples on how to test:
./configure --with-xml static
./configure --with-xml=/opt static
./configure --with-xml=shared shared
./configure --with-xml=shared,/opt shared
The difference between these two is that when the extension is shared, it
is not merged into libphpext.a. The shared extension is currently always
built. I can't find a way to do just one or the other with automake/libtool,
if someone has a clever idea, please come forward. :-)
"make install" installs the .so (as well as a lot of other cruft) in
$prefix/lib/php.
1999-07-21 21:56:25 +00:00
Andrey Hristov
adbf932744
*** empty log message ***
1999-07-21 15:10:04 +00:00
Andi Gutmans
a064237fc0
Fix Win32 compilation
1999-07-19 16:08:43 +00:00