Andi Gutmans
7acbcc9601
- Adjust for change in zend_startup()
2000-03-21 19:04:34 +00:00
Rasmus Lerdorf
c32e09f791
As it turns out, there are some browsers that can't handle default
...
charsets. I think forcing this on is going to cause us a lot of headache,
so turn it off by default.
@ Don't default to iso-8859-1 since this confuses some browsers
2000-03-20 08:19:51 +00:00
Andi Gutmans
1c8c9ad231
- Quick fopen() support. The code needs some cleaning up and we might
...
need to think of performance issues with the strdup()'s (definitely
use strndup() and maybe try to do with less string copies).
2000-03-19 21:10:48 +00:00
Thies C. Arntzen
245428b241
fix some protos
2000-03-19 10:56:40 +00:00
Andi Gutmans
959a550780
- Fix Win32 compile
2000-03-17 10:25:23 +00:00
Andi Gutmans
cd83fb18c0
- Last one for today.
2000-03-16 22:46:53 +00:00
Andi Gutmans
b46c44b485
- Allow passing of a verify function. This way we can easily create
...
chdir() and expandpath() wrappers.
2000-03-16 22:37:59 +00:00
Andi Gutmans
1bcdb436c1
- Note quite sure why this wasn't done.
2000-03-16 21:23:24 +00:00
Sascha Schumann
2a3fdcb73d
Cleanup
2000-03-16 19:19:14 +00:00
Sascha Schumann
8c9388c984
Merge in local changes
2000-03-16 19:14:13 +00:00
Andi Gutmans
14f76028aa
- php_is_dir_ok() should work on Windows now.
2000-03-16 19:10:01 +00:00
Andi Gutmans
c46d1e3402
- Fix a leak (I think)
2000-03-16 18:56:08 +00:00
Andi Gutmans
5c281c6116
- Make it compile on Windows.
2000-03-16 18:52:15 +00:00
Sascha Schumann
f0d631ad8f
Use old_state
2000-03-16 18:41:02 +00:00
Sascha Schumann
1ed113d925
(php_check_dots) we don't need len
2000-03-16 18:37:34 +00:00
Sascha Schumann
3cb7cf43de
virtual_chdir:
...
* added error handling
* fixed the special case where there were more DIRECTORY_UPs than
directory parts (i.e. cwd is d:\foo and path is ../..)
* no spaces between # and preprocessor directive - breaks some compilers
# added directory-existence check (not activated)
2000-03-16 18:25:47 +00:00
Andi Gutmans
0583ae2648
- Add initial virtual_getcwd() and virtual_chdir() for discussing with the
...
rest of the folks
2000-03-16 16:54:42 +00:00
Andi Gutmans
c56df5cac0
- WIN32 -> PHP_WIN32
2000-03-15 19:12:41 +00:00
Zeev Suraski
d0b9a3989b
- Define these ones and declare them in modules.h
2000-03-12 18:13:01 +00:00
Sascha Schumann
bb09ee9505
Use sprintf everywhere and define sprintf to php_sprintf, if sprintf is broken.
2000-03-12 17:18:21 +00:00
Sascha Schumann
caeaaf4d98
Fix build on systems which lack snprintf or vsnprintf.
...
PR: #3786
2000-03-12 15:47:34 +00:00
Andi Gutmans
9dca788ca0
- Don't define DEBUG anymore. Everyone should use PHP_DEBUG.
...
There are 2-3 third-party libs in PHP which use DEBUG and I left them
this way (primary example is pcrelib).
- Please test things and Andrei, can you check that pcrelib stopped
printing the warning messages?
2000-03-11 20:48:49 +00:00
Andi Gutmans
eedd3ac4d0
- Use strlcpy() insted of strcpy()
2000-03-10 18:19:08 +00:00
Thies C. Arntzen
9d0c2484c0
@- connection_aborted() and friends work again. (Thies)
2000-03-10 03:09:49 +00:00
Andrei Zmievski
9f870d1e6c
Kill warning.
2000-03-07 04:28:29 +00:00
Sam Ruby
fa7f4d1e6a
It looks like a number of "standard" extensions are now truly builtin...
2000-03-07 01:50:02 +00:00
Stig Bakken
99e0b36321
@Cleaned up extension namespace (Stig)
...
Cleaned up extension namespace, and changed ext/standard into one single
extension.
2000-03-06 20:37:11 +00:00
Sam Ruby
dc70a25a1d
Eliminate "wrong number of parameters" warning
2000-03-05 23:59:56 +00:00
Andi Gutmans
fbea48211e
- Make some fixes although there is a problem with getpid() being defined
...
in process.h as getpid(void) and thus having an arugment. We might need to
define a php_getpid() function to wrap getpid().
2000-03-05 21:40:40 +00:00
Sam Ruby
64df92e053
Fix traps due to sapi_global not being initialized when ZTS is set
...
Don't trap if php.ini can't be read
2000-03-05 21:37:47 +00:00
Sascha Schumann
2897c6fe25
Avoid the side-effect of defining function names, so that the PHP functions
...
are not renamed to their prefixed variants.
PR: #3535
2000-03-05 17:39:41 +00:00
Andi Gutmans
0a092b6226
- Fix Win32 build
2000-03-04 19:58:59 +00:00
Sascha Schumann
315999da94
Prefix some symbols with php_
...
^(pcre|Xml|XML).*
2000-03-04 14:44:01 +00:00
Zeev Suraski
d34b144061
@- Added parse_ini_file(). Currently implemented in non thread safe version
...
@ of PHP, and currently lacks section support (Zeev)
- Bring the non thread safe .dsp's uptodate
2000-03-04 02:59:14 +00:00
Sascha Schumann
3bfe29fddb
Support HP-UX 10.x non-standard time-related reentrant functions
2000-03-03 16:10:38 +00:00
Zeev Suraski
583556a3c2
@- Switched back to the old $HTTP_*_VARS[] behavior - $HTTP_GET_VARS["foo"]
...
@ and $foo are no longer references to each other, but separate variables
@ like they were prior to PHP 4.0 Beta 4 (Zeev)
2000-02-28 05:33:43 +00:00
Andi Gutmans
312071bd08
- Fix bug 3640
2000-02-27 05:22:48 +00:00
Zeev Suraski
7a955aa1c1
@- Fixed a (fairly common) situation where error_reporting values would not be
...
@ properly restored after a call to error_reporting(), in between requests (Zeev)
2000-02-26 23:50:11 +00:00
Zeev Suraski
5222c8872d
Verified $HTTP_*[] protection
2000-02-26 22:14:49 +00:00
Andrei Zmievski
137e1a1379
(php_hash_environment)
...
Fixed a bunch of memory leaks from the recent HTTP_*_VARS[] protection
patch.
2000-02-26 21:20:38 +00:00
Zeev Suraski
e5c8aeb3f1
- Protect $HTTP_POST_FILES[] as well
2000-02-26 18:59:29 +00:00
Andrei Zmievski
f7f7094bcf
Added notice about new functions.
2000-02-26 17:58:28 +00:00
Zeev Suraski
0e90b9dc83
@- The various $HTTP_*_VARS[] are now protected, and cannot be manipulated by
...
@ user input (Zeev)
This patch is untested! I'll only have time to test it thoroughly in a couple of hours...
2000-02-26 16:36:57 +00:00
Zeev Suraski
1261271839
Allow the INI callbacks to know at what stage PHP is
2000-02-26 15:36:23 +00:00
Zeev Suraski
88b31ecb28
@- The string None is now recognized as a keyword by the php.ini processor, and
...
@ can be used to denote an empty string (Zeev)
- Added None keyword support to the INI parser
- Removed specialized "none" code
2000-02-26 14:29:27 +00:00
Thies C. Arntzen
ae08e0500e
(sapi_send_headers) fix leak
2000-02-26 14:21:10 +00:00
Zeev Suraski
a508bec819
- From CODING_STANDARDS:
...
[6] NEVER USE strncat(). If you're absolutely sure you know what you're doing,
check its man page again, and only then, consider using it, and even then,
try avoiding it.
strncat() is your enemy!
- Fix several SAPI services, get rid of the default_content_type (it's always
composed of the mime type and charset now).
- Win32 works again
2000-02-26 05:03:41 +00:00
Zeev Suraski
bf5cb890b0
- Convert 'PHP3' to 'PHP'
...
- Avoid declaring crypt() related salt types twice
2000-02-26 03:20:55 +00:00
Sam Ruby
28a6ba5fc0
Win32 build error:
...
warning C4020: 'sapi_activate' : too many actual parameters
2000-02-25 23:31:42 +00:00
Sam Ruby
937db8cc80
Build failure on Win32:
...
error C2198: 'sapi_apply_default_charset' : too few actual parameters
2000-02-25 23:12:51 +00:00
Stig Bakken
d23e5d837a
@- Implemented default_charset and default_mimetype config directives (Stig)
...
Implemented default_charset and default_mimetype configuration directives.
Started implementing ticks in PHP.
2000-02-25 21:27:03 +00:00
Thies C. Arntzen
83d20ab305
fix obvious crash.
...
stig, in sgi-mode i still "only" get:
(haven't touched my .ini file in ages - and don't plan to)
X-Powered-By: PHP/4.0b5-dev
Content-type: iso-8859-1 <<< where is text/html?
2000-02-25 10:10:43 +00:00
Stig Bakken
ba03c9f2aa
started implementing directives for default mimetype/charset
2000-02-24 22:00:47 +00:00
Andrei Zmievski
7a22bb09d7
Revert the y2k ini patches.
...
# Adam's right, it shouldn't be here
2000-02-24 15:41:34 +00:00
Andrei Zmievski
f5cc1929eb
Turn on y2k_compliance by default.
2000-02-24 15:16:07 +00:00
Thies C. Arntzen
4a37c618e6
@-Fixed possible crash in request-shutdown. (Thies)
...
(pvalue_config_destructor) gets a zval* not a zval**
2000-02-24 13:39:36 +00:00
Andi Gutmans
de6c9f35a1
- MySQL now compiles right into the PHP 4 binary on Windows
2000-02-23 21:10:18 +00:00
Thies C. Arntzen
a8c7a9deb8
bump version number
2000-02-23 18:57:08 +00:00
Zeev Suraski
a763da63ad
Prepare a package
2000-02-21 16:34:50 +00:00
Uwe Steinmann
aa7efd11b7
- Ups,
2000-02-21 16:24:05 +00:00
Uwe Steinmann
5dd0055c77
- pdf_set_text_matrix() disappeared in pdflib 2.30. Put in another ifdef
...
- small fix in testdom to suppress error msg.
2000-02-21 16:23:09 +00:00
Thies C. Arntzen
361ae6886e
@- Fixed crash when magic_quotes were switched off. (Thies)
2000-02-21 12:13:27 +00:00
Zeev Suraski
021836efcb
Go B4, go!
2000-02-20 21:30:33 +00:00
Zeev Suraski
86fa2aade2
the pipe is breaking all the time
2000-02-19 23:41:32 +00:00
Zeev Suraski
9b621d1c8f
Get the license right... (this won't make it to RC1 of B4)
2000-02-19 23:21:46 +00:00
Zeev Suraski
80ca00005f
Prepare for B4-RC1
2000-02-19 22:49:38 +00:00
Zeev Suraski
739bdec582
Worked on beautifying rfc1867.c a bit
...
@- Introduced $HTTP_POST_FILES[], that contains information about files uploaded
@ through HTTP upload (Zeev)
2000-02-19 20:12:26 +00:00
Zeev Suraski
1c4532dcbf
*** empty log message ***
2000-02-19 13:11:02 +00:00
Sascha Schumann
02d647b5f9
Fix warnings when compiling static Apache module
2000-02-18 10:13:15 +00:00
Zeev Suraski
ae22fe4c52
- Update .dsp's
...
- Fix a possible crash bug in failed file open error message
- Fix SAPI initialization issue that could lead to a crash
2000-02-18 01:52:11 +00:00
Zeev Suraski
4549b969f9
Fix duplicate freeing
2000-02-17 20:46:13 +00:00
Stig Bakken
2f633d91ca
typo
2000-02-17 20:32:51 +00:00
Zeev Suraski
a6393de6f7
Make POST handling the way it should be. RFC1867, and any future POST handlers we might
...
have in the future now obey to the variables_order directive, and there's a real way modular
way to handle POST content.
This is all untested, BEFORE_SAPI_POST_PATCH_17_FEB_2000 tagged before submission
@- Made multipart/form-data content obey to the variables_order directive (Zeev)
2000-02-17 20:23:59 +00:00
Zeev Suraski
75b1316e70
@- Updated the browscap module to work with PHP 4.0 (Zeev)
2000-02-16 17:46:14 +00:00
Zeev Suraski
a5c143f415
- Update .dsp's
...
- Fix auth_user issue
2000-02-16 16:46:01 +00:00
Zeev Suraski
e9dcdb8f97
@- Improved ISAPI module - it should no longer be necessary to set PHP as
...
@ an ISAPI filter, only as an ISAPI extension, unless you wish to perform
@ authentication using PHP. This didn't yet get enough testing, but it
@ should work (Zeev)
- Fixed auth_user/auth_password memory leak (I didn't have time to test it under
Apache, feedback welcome!)
2000-02-15 23:31:10 +00:00
Zeev Suraski
4a211a80fb
@- Fixed RFC1867 file upload under Windows (Zeev)
...
Fixed a memory leak
2000-02-15 22:51:18 +00:00
Stig Bakken
e24bb8c492
@Re-introduced "none" for disabling auto_prepend/append_file (Stig)
...
Made auto_prepend_file and auto_append_file accept "none" as parameter
to disable, like in PHP 3.0.
2000-02-14 15:36:45 +00:00
Andi Gutmans
3811b58a7d
- Improve startup speed a bit by using the hash_*_ptr() functions
2000-02-13 13:25:01 +00:00
Zeev Suraski
003ef1aa74
Trap bailout of shutdown functions
2000-02-13 00:26:54 +00:00
Thies C. Arntzen
829f4f334b
@- Workaround for bogus POST-Data from IE/Mac. (Thies)
...
@ Patch by Alain Malek <alain@virtua.ch>
fix #2944
2000-02-12 17:37:11 +00:00
Andi Gutmans
e781caf962
- Support wddx by default on Windows
2000-02-12 15:47:51 +00:00
Andrei Zmievski
a60e91b313
(request_shutdown) Prevent infinite loop on shutdown if there is an error
...
in shutdown function.
(php_array_walk) Print a warning if the walk function doesn't exist.
Split shutdown function call into a separate function that's called with
zend_hash_apply() instead of as destructor to keep hash consistent.
This fixes bug #3419 .
2000-02-11 21:14:42 +00:00
Zeev Suraski
80bdd19e03
Fine tune Andi's patch
2000-02-11 15:59:30 +00:00
Andi Gutmans
f9e0d94a65
- Baby steps with PHP_WIN32 :)
2000-02-11 12:56:54 +00:00
Zeev Suraski
49e98c3ddd
request_info.c is dead! long live SAPI
...
@- Finished the server abstraction layer; All of the PHP code is now shared
@ across different servers (Apache, CGI, IIS, etc.), except for thin
@ interface modules (Zeev)
2000-02-10 20:13:08 +00:00
Zeev Suraski
6723bdd920
request_info.c is giving up
2000-02-10 20:03:17 +00:00
Zeev Suraski
6d0ab6166c
SAPIfication, Episode VI: Return of the SAPI
...
Remove mostly all references to APACHE and CGI_BINARY from the code.
- Apache include files are no longer included by any PHP code, except for the Apache SAPI module.
- No server specific code is in any of the base PHP code.
Still left to be done:
- Eliminate any references to APACHE from the few remaining modules.
- Move request_info.c's logic to SAPI
- Modify the regex function names, and globals, so that we can always
include them, without having to fear any interference with Apache;
Always use the bundled regex library
2000-02-10 19:41:21 +00:00
Zeev Suraski
9709f7ec73
The last patch wasn't that good, fix
2000-02-10 19:29:21 +00:00
Zeev Suraski
25b5cb9599
More protection...
2000-02-10 19:28:05 +00:00
Zeev Suraski
42765d50e0
Only activate if we're inside an actual request
2000-02-10 19:22:36 +00:00
Zeev Suraski
5bdd18caf1
Yes, you guessed it... More cleanup
2000-02-10 18:44:33 +00:00
Zeev Suraski
41f6bca92f
More cleanup!
2000-02-10 18:19:04 +00:00
Zeev Suraski
0fd89aa20d
More cleanup - move getenv() to SAPI
2000-02-10 17:55:01 +00:00
Zeev Suraski
7d926a0e0c
More cleanup...
2000-02-10 17:26:57 +00:00
Andi Gutmans
ec0e2d7312
- Little fix
2000-02-10 17:22:25 +00:00
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