Zeev Suraski
888f376e4c
Very initial work on chunked output buffering. It's really unoptimized at
...
this time, and it can crash under some circumstances, but that's the
concept...
2000-11-23 18:43:18 +00:00
Sascha Schumann
0222f92358
Return the exit status from php_execute_script()
2000-11-22 04:23:26 +00:00
Frank M. Kromann
19555e57a8
removing compiler warning by including credits.h
2000-11-20 22:31:38 +00:00
Sascha Schumann
66d8f798ad
PHP does not care about inline at all, so get rid of this block.
2000-11-17 16:02:08 +00:00
Zeev Suraski
0f7f5c2c0e
- Import Jade Nicoletti's transparent gzip encoding support as an output
...
handler. Works quite nicely!
- Fix buglets in output buffering
- Add output_handler INI directive
2000-11-13 18:54:37 +00:00
Kristian Köhntopp
89d6b5b5bd
Prototype corrected.
2000-11-12 22:13:35 +00:00
Hartmut Holzgraefe
38569740da
fix for #7756 and #6743 : fatal error on 'include("")' instead of warning
...
(+ some cleanup)
2000-11-11 10:15:59 +00:00
Daniel Beulshausen
87d8e44c26
win32 sapi symbol export fixes
2000-11-07 21:13:26 +00:00
Zeev Suraski
9e40204f00
@- In CGI mode, $HTTP_SERVER_VARS now includes all of the environment variables
...
@ as well (Zeev)
2000-11-07 18:25:29 +00:00
Zeev Suraski
50e0d9d34b
cookie_data may also be modified...
2000-11-07 18:12:06 +00:00
Sascha Schumann
79fd4ad841
zend_hash_find() treats this argument as const, but fails to declare
...
the function properly.
2000-11-06 23:36:15 +00:00
Andi Gutmans
6da2eaf600
- When mode is specified the flag is a don't care
2000-11-02 23:30:48 +00:00
Andi Gutmans
1956fb48d2
- Missed one of the php_checkuid() places
2000-11-02 23:19:48 +00:00
Andi Gutmans
d0ec3df288
- Use CHECKUID_* #define's instead of cryptic numbers in php_checkuid()
...
- I did not test for validity of the actual php_checkuid() calls and there
- might be mistakes in the previous code.
2000-11-02 23:08:07 +00:00
Zeev Suraski
816f1f7903
- Fixed a bug that caused PHP not to properly flush its output buffer, if more
...
than one output buffer was used
2000-11-02 16:46:30 +00:00
Sascha Schumann
43ff395b65
Const'ify part of sapi_request_info.
...
query_string, post_data, path_translated, request_uri, auth_user,
auth_password and argv0 are modified, so they cannot become const.
2000-11-02 15:47:02 +00:00
Sascha Schumann
9866d899e9
Namespace protect mergesort (caused conflict on Darwin).
2000-11-02 15:32:52 +00:00
Zeev Suraski
e8e3be00d5
Fix a few warnings
2000-11-02 14:18:34 +00:00
Andi Gutmans
6139a2c8ce
- Define the different possible modes for readibility and use in the rest
...
- of PHP
2000-11-01 18:05:27 +00:00
Andi Gutmans
8907e17bde
- In function declerations the opening { should be on a new line
2000-11-01 17:31:53 +00:00
Zeev Suraski
7ab46420be
mode_t fixes
2000-10-31 18:05:19 +00:00
Hartmut Holzgraefe
00b8b66132
generalization of image handling in phpinfo
2000-10-31 17:21:52 +00:00
Zeev Suraski
92d37f688e
- Fix phpinfo()
...
- Fix non-thread-safe build
2000-10-31 16:06:46 +00:00
Zeev Suraski
fc466bebd8
Fix memory_limit build problem
2000-10-31 12:46:07 +00:00
Hartmut Holzgraefe
604876542a
removed some bogus code
2000-10-31 11:32:05 +00:00
Zeev Suraski
78194a47b7
- Complete the move to the new INI parser. (Side effect: at last, people
...
can finally have spaces and tabs in their extension statements...)
2000-10-30 23:39:14 +00:00
Stanislav Malyshev
1f7a3b3b11
Remove empty temp file on failed upload
2000-10-30 15:30:27 +00:00
Zeev Suraski
60c0835470
Move browscap code to the new modular INI parser
2000-10-29 23:10:22 +00:00
Zeev Suraski
4af433d627
Use the new INI parser for parse_ini_str()
...
- parse_ini_str() is now thread-safe, and supported under Windows (Zeev)
2000-10-29 22:42:01 +00:00
Sascha Schumann
13183ed5c3
Add php_handle_aborted_connection()
...
Call this from your SAPI module to signal an aborted connection.
2000-10-29 16:00:42 +00:00
Zeev Suraski
19dad410ec
Fix Windows build
2000-10-29 11:56:42 +00:00
Zeev Suraski
1fd09132c2
Initial steps to move the INI mechanism to the Zend engine
2000-10-29 11:38:26 +00:00
Thies C. Arntzen
825457ae64
update my email.
2000-10-29 09:14:55 +00:00
Zeev Suraski
3dc7fc54a0
- URL-opened files now store the HTTP response header in $http_response_header
...
- Some layout updates
2000-10-28 01:31:56 +00:00
Frank M. Kromann
02537bd2f2
Kill compiler warning.
2000-10-27 16:16:55 +00:00
Sascha Schumann
3b02d88b8e
Initialize auth_(user|password) to NULL, if data was not suitable.
2000-10-27 10:28:57 +00:00
Sascha Schumann
85b52234e4
Utility function for sapi modules (it is not in SAPI.c, because it
...
relies on php_base64_encode).
2000-10-27 10:16:54 +00:00
Sascha Schumann
f367b3dfc8
Move some code to php_handle_special_queries().
2000-10-26 21:16:12 +00:00
Sascha Schumann
5583203e91
Move some initialization code from php_execute_script() to
...
php_request_startup() where it should be. AFAICT, it does not
cause any problems, but please it test it with your favorite SAPI
module.
2000-10-26 18:32:38 +00:00
Sascha Schumann
2b060b3bf3
Add sapi_add_header_ex, which lets you specify whether you want
...
to add or replace a header.
2000-10-26 18:18:21 +00:00
Sascha Schumann
00d1d1a347
Protect us from Apache 2.0's pcre-posix stuff
2000-10-26 18:15:56 +00:00
Sascha Schumann
2517250b35
The type has changed to size_t.
2000-10-26 18:10:57 +00:00
Rasmus Lerdorf
bccdaff6d1
Move server_filter to an extension-specific global
2000-10-23 00:52:11 +00:00
Rasmus Lerdorf
32b10882e5
Need a global server filter for the Apache 2.0 module
2000-10-22 19:50:05 +00:00
Sascha Schumann
61cf1f34a5
We don't need to store NUL of the key which simplifies the lookup
...
significantly.
2000-10-22 14:42:55 +00:00
Sascha Schumann
836df2f798
Parse quoted boundary correctly
2000-10-20 23:40:07 +00:00
Frank M. Kromann
222d004714
Changing datatype to remove compiler warning
2000-10-20 19:10:27 +00:00
Andrei Zmievski
7b4983c8f8
Mega-patch to get better resource information for modules.
...
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
* Switched register_list_destructors() to use
zend_register_list_destructors_ex() instead
* Updated all relevant modules to provide the resource type name
to register_list_destructors() call
* Updated var_dump() to output resource type name instead of number
@- Made resource type names visible, e.g. var_dump() and
@ get_resource_type() display "file" for file resources. (Andrei)
2000-10-20 18:25:16 +00:00
Joey Smith
a57ea792c6
Close bug #7325 . Patches by djm@web.us.uu.net.
2000-10-19 15:05:44 +00:00
Stig Venaas
5fc85205d9
Check that AF_INET6 is defined before using IPv6
2000-10-19 12:18:02 +00:00
Zeev Suraski
9e5ef06ceb
Fix warning
2000-10-17 18:13:35 +00:00
Zeev Suraski
98bbb11780
Fix a crash in CGI mode, in case no file is provided
2000-10-17 18:12:31 +00:00
Hartmut Holzgraefe
545ae277bc
post handler registration done right
...
(never use emalloc in an extension MINIT function)
2000-10-13 12:13:35 +00:00
Hartmut Holzgraefe
6d5f1d97f8
now it works for me as CGI and APXS, with or without --enable-debug ...
2000-10-13 10:04:17 +00:00
Daniel Beulshausen
afef79762d
step to 4.0.4-dev
2000-10-13 09:29:49 +00:00
Daniel Beulshausen
6fb51171c8
compile fixes & update of win32 dsp
2000-10-13 09:13:01 +00:00
Hartmut Holzgraefe
cae27179ce
fopen wrappers cleanup
...
- comfiguration is now done by an ini parameter
instead of a compile time option
- the implementations of the three standard wrappers
now live in seperate files in ext/standard
- the compiler is happy again, no more warnings
2000-10-13 00:09:31 +00:00
Andi Gutmans
e91c188e85
- Fix memory leak.
2000-10-12 19:58:20 +00:00
Hartmut Holzgraefe
a57282df4b
forgot this one yesterday, fdfdata.[ch] is no more ...
2000-10-12 06:32:10 +00:00
Hartmut Holzgraefe
a70ae211e1
removed fdfdata.h
2000-10-11 22:45:45 +00:00
Hartmut Holzgraefe
e880e3fe0c
removed fdfdata.c
2000-10-11 22:45:01 +00:00
Hartmut Holzgraefe
22e48a814a
@ - POST handler for Adobe FDF format (Hartmut)
...
the FDF handler is now working and totaly living
in the fdf extension, no more special code in
main is needed
2000-10-11 22:44:15 +00:00
Alexander Feldman
aee3c65a8f
Fixed a problem in the configuration scanner where two extra NULL bytes
...
were added to each encapsulated string.
2000-10-11 19:38:16 +00:00
Zeev Suraski
57a5bbd387
Go with 4.0.3
2000-10-11 17:31:34 +00:00
Daniel Beulshausen
d667e05543
more cleanup of info code
2000-10-08 11:45:18 +00:00
Andi Gutmans
31a5160a0a
- Add calendar to default Win32 build.
2000-10-06 00:03:02 +00:00
Andi Gutmans
9ece8612b8
- Add FTP extension to default Win32 build
2000-10-05 23:25:41 +00:00
Andi Gutmans
acc4a8ed6d
- Package RC2
2000-10-03 17:08:41 +00:00
Andi Gutmans
18f86e7757
- Fix V_CHDIR_FILE() to only chdir() when a directory part is specified.
...
Use this instead of broken php_dirname() in fopen-wrappers.c
2000-10-03 15:05:50 +00:00
Andi Gutmans
d37b140601
- Fix VC++ warning
2000-10-03 14:43:04 +00:00
Andi Gutmans
a37b138d7c
- Darn file is needed for Windows. Maybe it should be called
...
php_version.w32.h?
2000-10-02 15:12:47 +00:00
Andi Gutmans
79a898697d
- Any reason why php_version.h is in the CVS? I'm removing it so if I'm
...
screwing something up scream *now* :)
2000-10-02 15:04:26 +00:00
Andi Gutmans
5819b6d4a6
- Remove unneeded IS_SLASH() definition.
2000-10-01 18:13:41 +00:00
Daniel Beulshausen
01927063d5
move have_snmp to the dsp already
2000-09-30 17:40:52 +00:00
Andi Gutmans
2622eba31d
- Cleanup some output functions
2000-09-30 16:13:48 +00:00
Zeev Suraski
ec4a36ec12
complementary PHP patch
2000-09-27 19:46:47 +00:00
Daniel Beulshausen
8b23529beb
let windows build with trans sid
2000-09-18 17:23:45 +00:00
Stanislav Malyshev
1fbc3945a2
Fix crash
2000-09-18 15:15:27 +00:00
Andi Gutmans
e740042363
- Fix doc_root problem. If you need to limit under which directories the
...
scripts should reside use open_basedir.
2000-09-17 05:52:26 +00:00
Andi Gutmans
0e874a094c
- Use IS_ABSOLUTE_PATH() so that this will work correctly under Windows
2000-09-14 20:47:35 +00:00
Andi Gutmans
962c163cdf
- Time to remove these two.
2000-09-14 20:43:13 +00:00
Andi Gutmans
f5cf7d7eb7
- Windows and UNIX compile fixes
2000-09-11 19:14:42 +00:00
Andi Gutmans
b510fcf96e
- Get rid of stuff which is already done in php.h
...
- More can probably be removed as the code doesn't use lots of sys calls.
2000-09-11 19:11:03 +00:00
Andi Gutmans
824fc6a084
- Move php_open_temporary_file() out of file.c
2000-09-11 18:56:47 +00:00
Stanislav Malyshev
1ccac6ed55
Add additional parameter to parse_str for saving result (thanks to
...
John Bafford <dshadow@zort.net>)
@ Added second parameter for parse_str to save result (John Bafford)
2000-09-11 14:50:26 +00:00
Derick Rethans
eba1b6221d
- Fixed missing parameter in php_atoi
2000-09-09 23:21:44 +00:00
Stig Venaas
d8a4a9b1dd
Added IPv6 support to php_fopen_url_wrap_ftp (EPSV and php_hostconnect())
2000-09-09 21:29:37 +00:00
Zeev Suraski
b7ecaacd07
More security-related (control) patches:
...
- Avoid displaying errors during startup, unless display_startup_errors is enabled.
- Implemented post_size_max limit. Defaults to 8MB.
- Implemented file_uploads on/off directive (defaults to on).
2000-09-09 15:02:15 +00:00
Zeev Suraski
6c4cb4c079
Security related updates:
...
- Introduce php_open_temporary_file(), in place of tempnam(). Still
needs testing under UNIX (mkstemp()), works reliably under Windows now.
- Reimplement the mechanism for unlinking uploaded files at the end of the request
(was it ever tested?). Files moved with move_uploaded_file() will not be unlink()'d
again, to avoid (albeit very unlikely) race conditions.
2000-09-09 11:41:14 +00:00
Zeev Suraski
3edf46ff73
Implement move_uploaded_file() (untested)
2000-09-08 22:31:21 +00:00
Zeev Suraski
75086e3088
- Implemented is_upload_file()
2000-09-08 21:56:47 +00:00
Zeev Suraski
91c808ecc4
Restore the headers_only test to the centralized SAPI startup. If necessary, it can
...
be overriden in the activate() callback.
2000-09-08 14:43:57 +00:00
Stanislav Malyshev
522aec4443
Never trust snprintf return value
2000-09-08 12:52:05 +00:00
Stanislav Malyshev
6426d1c9ce
Fix crash on very long error messages
...
Manual for snprintf says:
If the output was truncated, the return value is -1, oth-
erwise it is the number of characters stored, not includ-
ing the terminating null.
And that's a blatant lie - in reality, libc 2.1 always returns number of
characters that _would be_ stored. I hate those libc bugs. Now we should go
and check every place we trusted snprintf return value.
2000-09-08 12:32:29 +00:00
Stanislav Malyshev
df5e0cb0a5
Fix syslog call
2000-09-08 12:07:21 +00:00
Stig Venaas
f68fb8fad2
Better IPv6 checking
2000-09-07 17:56:12 +00:00
Andi Gutmans
204f4adca7
- Smarter detection of MAXPATHLEN
2000-09-07 15:20:29 +00:00
Zeev Suraski
677d4b9913
Send $HTTP_POST_FILES to the right place
2000-09-07 04:12:31 +00:00
Sascha Schumann
4d2515d6be
4.0.3-dev
2000-09-06 16:52:33 +00:00
Daniel Beulshausen
81daa0899e
deleted unnecessary defines
...
i also plan to let windows build with crypt() support
2000-09-06 10:00:34 +00:00
Zeev Suraski
bfa301dfd0
Fix ordering
2000-09-06 04:56:22 +00:00
Zeev Suraski
12adebbc3a
- Fix leak
...
- Remove redundant php_ini code
2000-09-05 21:18:00 +00:00
Zeev Suraski
4647bbb71a
broken logic fixed. I'm getting old
2000-09-05 20:50:41 +00:00
Zeev Suraski
eb32144902
- Remove track_vars - it is now always on
...
- Make the various $HTTP_*_VARS[] arrays be defined always,
even if they're empty
- Fix Win32 build and warnings
2000-09-05 19:06:29 +00:00
Stig Venaas
d57e56ab4c
using emalloc and efree, instead of malloc and free
2000-09-05 17:37:44 +00:00
Stig Venaas
24633f5987
renamed hostconnect() to php_hostconnect()
2000-09-05 16:36:56 +00:00
Stig Venaas
b83427db64
using the new hostconnect() for the http wrapper
2000-09-05 15:59:08 +00:00
Stig Venaas
4a7f22123f
hostconnect now supports IPv6 if getaddrinfo exists, and also tries to
...
connect to all addresses of a host before giving up. It should also be
thread safe when using getaddrinfo.
2000-09-05 13:56:11 +00:00
Zeev Suraski
efdd39207c
Protect arrays as well.
2000-09-04 22:26:01 +00:00
Sterling Hughes
9f86ff884f
@Add a php.ini option session.use_trans_sid to enable/disable trans-sid. (Sterling)
2000-09-04 22:21:10 +00:00
Zeev Suraski
5dca99232e
Prevent exploit in [tmp_name] as well
2000-09-04 22:05:00 +00:00
Zeev Suraski
60825fab88
Fix the logic. Tested.
2000-09-04 21:23:41 +00:00
Zeev Suraski
388170ffa5
3rd time's a charm
2000-09-04 20:47:52 +00:00
Zeev Suraski
b47050630b
Fix the fix
2000-09-04 20:46:10 +00:00
Zeev Suraski
ed453cc9b4
Fix the file upload security problem with no side effects (untested)
2000-09-04 19:07:50 +00:00
Sascha Schumann
96128460b7
Include "php.h", otherwise we don't have access to the PHP and autoconf
...
macros.
2000-09-04 12:58:08 +00:00
Rasmus Lerdorf
43fefff150
Quick-fix for the file upload security alert
...
@Quick-fix for the file upload security alert (Rasmus)
2000-09-04 05:09:46 +00:00
Andi Gutmans
6bfed632c7
- This shouldn't have been commited.
...
There are quite a few modules which are using VIRTUAL_DIR. I don't think
this should be happening.
2000-09-04 04:22:47 +00:00
Andi Gutmans
341a0d465a
- Found my bug and managed to move the V_* macros to TSRM
2000-09-04 04:18:04 +00:00
Andi Gutmans
e47d4fe249
- Increase buffers of output buffering to 40KB and 10KB increments which
...
makes more sense when web pages are typically like 10KB-20KB.
I think it would be best to change the reallocation algorithm at least to
redoubling when it's full instead of incrementing and possibly use
a data structure similar to Zend/zend_static_allocator which uses memory
blocks and not realloc().
2000-09-03 19:57:06 +00:00
Andi Gutmans
799a00f19a
- Before removing php_virtual_cwd.[ch] #if 0 them to make sure nothing
...
is broken by this.
2000-09-03 19:44:35 +00:00
Stig Venaas
f0962c33a1
Added timeout argument, but not used yet
2000-09-03 19:12:28 +00:00
Andi Gutmans
6c6471b160
- Move to virtual cwd in TSRM
2000-09-03 18:45:02 +00:00
Zeev Suraski
2183e2b0be
Make gcc happy
2000-09-03 15:58:50 +00:00
Zeev Suraski
48f13455be
Fix init bug
2000-09-03 15:56:54 +00:00
Stig Venaas
7f8917932f
Added network.c
2000-09-03 09:34:33 +00:00
Stig Venaas
ad95450fc4
To be included by code using functions in network.c
2000-09-03 09:33:14 +00:00
Stig Venaas
c94933b2fa
Network related functions, only for internal use by other PHP code. Tries
...
to hide the details of address families/protocols, and to reduce duplication
of code.
2000-09-03 09:30:41 +00:00
Andi Gutmans
299d1295b6
- Remove another TSRM->Zend dependency
2000-09-02 18:40:41 +00:00
Zeev Suraski
cf8e389799
@- Added support for an optional output handler function for output
...
@ buffering. This enables transparent rendering of XML through XSL,
@ transparent compression, etc. (Zeev)
2000-09-02 18:03:58 +00:00
Andi Gutmans
97d509cc95
- Get rid of unused code and stop including PHP's win95nt.h
2000-09-02 16:08:24 +00:00
Zeev Suraski
e065c308e9
- Fix dir.c
...
- Begin cleanup of php_error_cb()
2000-09-01 12:06:52 +00:00
Sascha Schumann
df273c9d01
Hopefully last round of fixing varargs use.
...
We don't need to create the log message twice, and by doing it only
once we also avoid the orig_args trap.
2000-09-01 09:54:32 +00:00
Andi Gutmans
27de50012b
- Use emalloc() for opened_path now. This was a potential leak before.
...
- This patch has potential to break stuff but I tested it as much as I
- could. Fixes should be easy.
2000-08-31 22:24:20 +00:00
Andi Gutmans
e8e5c9d97e
- Remove redundant IS_SLASH
...
- Reverse config.w32.h patches
- Use IS_ABSOLUTE_PATH() in one place in fopen-wrappers.c
2000-08-31 19:49:36 +00:00
Stanislav Malyshev
ed3c85261b
Make main.c compile again
2000-08-31 16:15:31 +00:00
Zeev Suraski
0bc2bb05d4
Safer shutdown process. Continue to shut down even if we bail out in the middle of a certain part.
2000-08-31 16:02:51 +00:00
Daniel Beulshausen
95ee791d97
should be easier when compiling the modules
2000-08-30 21:07:16 +00:00
Andi Gutmans
ca5e0330ca
- Missed a space
2000-08-30 20:32:29 +00:00
Andi Gutmans
4a2fa70fc9
- Fix bug when using safe_mode and doc_root together
2000-08-30 20:31:17 +00:00
Zeev Suraski
47f8af85f5
This is no longer relevant...
2000-08-30 18:06:17 +00:00
Zeev Suraski
0e482b1b30
- Truly fix varargs handling - the current situation was a sure-fire crash in most platforms
...
(the older code worked, even though it didn't compile well for some very odd reason, probably
a compiler bug; The new code would cause PHP to crash if both display_errors/log_errors and
track_errors were enabled)
2000-08-30 18:02:00 +00:00
Zeev Suraski
3a10285392
Go 4.0.2
2000-08-29 15:49:44 +00:00
Stig Bakken
1b4d8c0fb6
@Added PHP API for Zend's ticks
...
Added PHP API for registering tick functions. Ticks is a per-instruction
callback in Zend that allows us to implement cooperative multitasking
within PHP. Example:
In extension code:
php_add_tick_function(my_tick_func);
void my_tick_func(int count) {
php_printf("[tick %d]", count);
}
In PHP code:
<?php
declare(ticks = 1) {
print "there should be two ticks here.\n";
}
?>
2000-08-29 09:18:48 +00:00
Sascha Schumann
e783d75ed3
sizeof(old_cwd) evaluated to sizeof(char *) after last commit, so old_cwd
...
was not set correctly.
2000-08-27 20:51:30 +00:00
Andi Gutmans
ecbc0255d9
- Use do_alloca()/free_alloca() for old_cwd. This will ensure speed in
...
- non-ISAPI environments but in ISAPI will use emalloc()/efree() to save
- stack space. MS only gives us 10KB those bastards.
2000-08-27 19:56:22 +00:00
Andi Gutmans
827672cd78
- Reverting Sascha's patch although I don't like doing these kind of things
...
- but as it is Sascha who has reverted a zillion patches I don't feel that
- bad about it :)
- The patch is morally incorrect and it actually also has a crash bug which
- I won't point out because it shouldn't be there.
- SG(path_translated) should be set by the SAPI module correctly and if it
- isn't the SAPI module should be fixed and not add code to PHP. There is
- enough special case code in PHP and I would like to clean it up and not
- add more.
- Last but not least, old_cwd takes 4KB of stack space. We should probably
- malloc() it because in ISAPI we only have 10KB of stack space.
2000-08-27 19:51:50 +00:00
Sascha Schumann
390d1cd1b7
Initializing new_path once is enough
2000-08-27 19:40:21 +00:00
Sascha Schumann
3f969d0b84
If a SAPI module does not pass an absolute path as primary_file to
...
php_execute_script(), we will now change the filename to point to
the absolute path.
2000-08-27 19:38:18 +00:00
Sascha Schumann
626fc9a773
Export IS_ABSOLUTE_PATH to the outside world.
2000-08-27 19:36:35 +00:00
Sascha Schumann
ab458219ec
Real fix for this rule.
2000-08-27 19:32:28 +00:00
Andi Gutmans
eea3a56973
- This should be more efficient.
...
- Post 4.0.2 it's time to move the whole opened_path and virtual stuff
- to emalloc() and friends including some alloca() improvements where
- possible but I don't want to break anything before
2000-08-27 19:20:53 +00:00
Sascha Schumann
58abfc5426
Fix internal_functions.c rule. This should also work better with BSD make's
...
VPATH support.
2000-08-27 18:54:28 +00:00
Andi Gutmans
0b8ca80e57
- Remove some unused stuff.
2000-08-27 18:27:37 +00:00
Andi Gutmans
989203cf9c
- Test commit msg. This is Andi and it seems to come from Zeev.
2000-08-27 18:18:34 +00:00
Zeev Suraski
1f7b735290
- Forgot to fix non-ZTS CHDIR_FILE macro
2000-08-27 18:06:12 +00:00
Andi Gutmans
39770d99ea
- Try and fix problem with opening wrong file.
2000-08-27 18:01:17 +00:00
Sascha Schumann
35a9a1878e
Fix strlcpy use at this place.
2000-08-27 09:48:03 +00:00
Sascha Schumann
2eb8688f29
Refine PHP_STRLCPY comment
2000-08-27 09:38:33 +00:00
Sascha Schumann
b2cecd9d8b
newtype has a length of newlen+1, 'len' refers to the length of *mimetype
...
here.
2000-08-27 09:32:23 +00:00
Sascha Schumann
365edaddd4
Add PHP_STRLCPY macro. This macro should be used in new code instead of
...
strlcpy/strlcat which are intended for fixing broken code.
2000-08-27 09:30:15 +00:00
Stig Bakken
03471b21ee
@Added ob_get_length function (Stig)
...
Added ob_get_length() function (returns size of buffer)
2000-08-25 03:10:42 +00:00
Zeev Suraski
c542f9a3f4
- Fix IMAP build problem
...
- Allow external DLLs to use warn_not_available
2000-08-24 18:49:49 +00:00
Sascha Schumann
19741cc37a
The macro CONVERT_TO_WIN_FS is not used anywhere.
2000-08-21 09:57:13 +00:00
Sascha Schumann
8e0ae5d152
Cleaning up some mess
2000-08-21 09:50:53 +00:00
Andi Gutmans
99d3b9bfe8
- Remove old/deprecated version of expand_filepath
2000-08-21 04:30:25 +00:00
Andi Gutmans
c799959568
- Change PHP_SEPARATOR to PHP_DIR_SEPARATOR
2000-08-20 19:56:24 +00:00
Andi Gutmans
892e949196
- Checking for ".." isn't enough. include_once() could mess up even if both
...
- names didn't include ".." but were referenced different directories which
- were symlinked to each other.
2000-08-20 19:49:10 +00:00
Andi Gutmans
80d878279b
- Sascha's patch should make PHP in VIRTUAL_DIR mode also change to the
...
- right directory so this shouldn't be needed anymore.
2000-08-20 18:12:16 +00:00
Sascha Schumann
1d68a02df3
The status quo in PHP is that the current directory is initialized
...
to the directory where the executing script is located.
Since this needs to be implemented for all SAPI modules anyway, this
change moves the functionality to php_execute_script() and gets rid
of the per-module code.
2000-08-20 14:29:00 +00:00
Sascha Schumann
320105bcd8
Use size_t as parameter type in the getenv member of struct sapi_module
2000-08-20 14:20:21 +00:00
Sascha Schumann
6358dad0e1
const'ify virtual-cwd API
2000-08-20 14:11:50 +00:00
Sascha Schumann
c8b8a908ca
Provide PHP_SEPARATOR which expands to the default directory separator
...
on the target platform.
2000-08-20 14:02:57 +00:00
Sascha Schumann
d3aeebdd1f
Fix prototype of virtual_real_chdir_file.
2000-08-20 13:09:57 +00:00
Sascha Schumann
c86ec8b1a9
Add virtual_real_chdir_file. Silly name for a useful function.
2000-08-20 12:49:56 +00:00
Sascha Schumann
fbdf502307
Remove php_realpath from build.
...
It was broken and should not be used in any way.
2000-08-20 05:27:59 +00:00
Zeev Suraski
f112b68668
Avoid an endless loop situation in case of an error situation while sending headers
2000-08-19 16:38:19 +00:00
Andi Gutmans
0c57780b11
- Centralize more fopen-wrappers functionality.
2000-08-18 23:03:49 +00:00
Andi Gutmans
c675a39b73
- The beginning of an attempt to cleanup fopen-wrappers.
...
- I started with trying to localize the V_FOPEN's so that we can have a
- version which won't really open the file for include_once/require_once to
- work faster and have less chance of a race which would cause a fd leak.
- What I did will, therefore, change but I want to do this step by step
- because the code is extremley messy so first of all I want to make sure
- that the isolating of the V_FOPEN code doesn't break anything.
- How about moving URL stuff out of this file?
- php_fopen_url_wrapper() copy and pasted the second part of
- php_fopen_wrapper() (incorrectly). Please try not to copy&paste code but
- centralize functionality. Need to think of a nice way to nuke one of the
- copies and have both functions use the same one.
2000-08-16 19:26:21 +00:00
Sascha Schumann
ce635bdb3c
Fix varargs handling. The assignments are not necessary at all and
...
cause problems on various platforms, so we get rid of them.
2000-08-15 17:05:37 +00:00
Zeev Suraski
c9dca64075
Sync with Zend
2000-08-15 16:46:43 +00:00
Stanislav Malyshev
5090b1e8d5
Fix zend_fiel_handle handling. Should fix URL include
...
and various opened_path inconsistencies.
2000-08-13 18:00:50 +00:00
Andi Gutmans
26300a8ebf
- Move compat macros to php3_compat.h
2000-08-10 19:38:29 +00:00
Zeev Suraski
a6c6f6a5c3
Update to be consistent with the new Zend API
2000-08-09 19:23:53 +00:00
Stanislav Malyshev
40fd4fb21b
Standartize full path handling - everything now goes via expand_filepath
...
Add errno to open_basedir checking function
2000-08-08 16:36:25 +00:00
Stanislav Malyshev
b5f74d44e9
fix return code for virtual_file_ex
2000-08-08 16:30:42 +00:00
Zeev Suraski
97893e6a19
Reverse this patch - it really shouldn't be in the error handler, but in the place
...
that generates the error...
2000-08-06 21:42:54 +00:00
Sascha Schumann
a8a1bbe921
Including utime.h once is enough.
2000-08-06 18:14:46 +00:00
Stanislav Malyshev
d9ab6333ea
Add utime include
2000-08-06 17:53:04 +00:00
Sascha Schumann
23ebf6e916
Include <utime.h> in php_virtual_cwd.h.
2000-08-06 17:42:54 +00:00
Stanislav Malyshev
57c54a093b
Replace min() - not everyone has it
2000-08-06 16:34:37 +00:00
Stanislav Malyshev
10f300094b
fix stupid bug
2000-08-06 16:32:22 +00:00
Andi Gutmans
c756ae2d9f
Virtualize realpath, chmod, chown and utime
...
This should fix #5935 and #5904
@- Virtualize realpath, chmod, chown and utime (Stas)
2000-08-06 16:22:07 +00:00
Rasmus Lerdorf
da1b7847b3
Support content-encoding headers in file upload mime parts
...
@- Support content-encoding headers in file upload MIME parts
@ (Ragnar Kjørstad)
2000-08-06 06:40:28 +00:00
Rasmus Lerdorf
a8f0c5a316
decouple this check just in case we hit a weird system that has one
...
and not the other. And we specifically check for this, so we should
use the information.
2000-08-06 04:55:17 +00:00
Hartmut Holzgraefe
b04a02660e
changed default sendmail flags from '-t' to '-t -i' (bugid#5374)
2000-08-04 22:42:11 +00:00
Stanislav Malyshev
688268727e
If we can't find a protocol in URL wrapper, try it as a filename ( fix #5931 )
2000-08-03 15:09:27 +00:00
Rasmus Lerdorf
ff0a08f508
Leave this initialization in
2000-08-02 22:53:55 +00:00
Rasmus Lerdorf
76a2d2538c
Heads up! I have moved the headers_only and response_code checks out of
...
SAPI and down into the individual SAPI modules. I have made the
appropriate changes in all the SAPI modules, but please verify these.
The reason for this change is that Apache sometimes will feed PHP
a request_method of GET but have r->header_only set to true. This happens
in an ErrorDocument redirect. In this same scenario we want to preserve
the status code as well instead of just overwriting it with a 200 and
losing this information. For now the other sapi modules act exactly as
before since they probably do not make this distinction, and they may
not even have a valid response code this early in the request.
@ Fix HEAD request bug on an Apache ErrorDocument redirect and preserve
@ the status code across the redirect as well. (Rasmus)
2000-08-02 22:48:45 +00:00
Hartmut Holzgraefe
b59e98b87c
"undefined function" error message will now suggest similar named
...
functions as jikes compiler for java does (typo protection)
2000-08-01 07:57:19 +00:00