Zeev Suraski
ef9504cafc
Fix UNIX build
2001-07-20 15:06:51 +00:00
Zeev Suraski
6f297a370a
Fix Windows build
2001-07-20 14:40:30 +00:00
Zeev Suraski
13ac04b8e5
Avoid getting bailouts on text output during shutdown. Text output is now
...
'officially' disabled during shutdown (this doesn't change the Apache module
behavior, but may change behavior of other server modules, in which it was
possible to emit output during shutdown; I think it's a good step towards
consistency, though)
2001-07-20 13:59:00 +00:00
Rasmus Lerdorf
9bc97ac865
Add always_populate_raw_post_data ini directive and default it to 0 to
...
maintain current behaviour. If this is turned on then $HTTP_RAW_POST_DATA
is always populated with a copy of the raw post data.
@ - Add config option (always_populate_raw_post_data) which when enabled
@ will always populate $HTTP_RAW_POST_DATA regardless of the post mime
@ type (Rasmus)
2001-07-17 16:46:07 +00:00
Zeev Suraski
a9915bf69a
Another layout fix
2001-07-16 20:43:18 +00:00
Zeev Suraski
b6064e5d3e
Fix layout
...
Guys - when submitting patches - please make sure you're not breaking
the layout of the code! It's not less important than the patch
itself.
2001-07-16 20:42:49 +00:00
Zeev Suraski
ba1249dc8e
Fix the crash Joey found
2001-07-16 13:48:07 +00:00
Zeev Suraski
407fd77c20
Generalize
2001-07-16 13:31:55 +00:00
Rasmus Lerdorf
721c562e2a
Fix a couple of build warnings
2001-07-16 04:31:13 +00:00
Zeev Suraski
d1ac05a850
Fix warning
2001-07-15 19:14:25 +00:00
Zeev Suraski
ab7f5ee038
Fix a crash with the new check-in-cwd code. It will now work only
...
with files which are included in runtime, and not files which are opened at startup (e.g., php.ini)
2001-07-15 12:24:06 +00:00
Zeev Suraski
54d6837b4b
2nd bug in the same line
2001-07-15 12:22:11 +00:00
Zeev Suraski
c77ed81803
remove bogus &
2001-07-15 12:02:58 +00:00
Zeev Suraski
ee19afea96
Make bailouts valid at request_startup
2001-07-15 11:53:18 +00:00
James E. Flemer
771e3e498f
o Fixed Bug #12121 : chdir and safe_mode
...
- [ main/safe_mode.h ] added new checkuid mode:
CHECKUID_ALLOW_ONLY_FILE: skips directory check if file check
fails
- [ ext/standard/dir.c ] changed php_checkuid() to use
CHECKUID_ALLOW_ONLY_FILE instead of CHECKUID_ALLOW_ONLY_DIR
- [ main/safe_mode.c ] added code for new checkuid mode
o Fixed Bug #12119 : safe mode owner check can be bypassed with symlink
- [ main/safe_mode.c ] use VCWD_REALPATH to resolve destination
of symlink before trimming filename
o New Feature: safe_mode_include_dir (php.ini directive)
- Allows bypassing UID/GID checks when including files
from the directory in safe_mode_include_dir and its
subdirectories. (safe_mode must be on, directory must
also be in include_path or full path must be used when
including)
o Fixed Feature: safe_mode_gid (php.ini directive)
- Correctly check (and report) UID/GID bits on directories
o Changed include() fall back to scripts cwd implementation
- CWD added to the (local) search path in php_fopen_with_path()
instead of seperate case. [ main/fopen_wrappers.c ]
2001-07-13 18:21:21 +00:00
Sascha Schumann
3dd33fdede
Fix xmlrpc_error:number handling
2001-07-13 16:08:39 +00:00
Zeev Suraski
66c8b08efa
Remove unreferenced variable
2001-07-11 17:10:13 +00:00
Thies C. Arntzen
5676e5ad05
use ZVAL_* macros
2001-07-11 15:27:37 +00:00
Andi Gutmans
2d9c29a31a
- Nuke fprintf()
2001-07-10 20:40:56 +00:00
Andi Gutmans
4b54140a35
- Commit patch which checks for an include file in the calling scripts'
...
current working directory if everything else fails (include_path).
- Right now this also effects things like opening php.ini. It'll now always
check in the current working directory for php.ini. I think this doesn't
screw up todays behavior.
2001-07-10 20:38:39 +00:00
Zeev Suraski
fa684c5bd4
Whitespace
2001-07-10 18:49:47 +00:00
Sascha Schumann
a2ce3c7068
Allow errors to be returned as XMLRPC fault packets.
...
Submitted by: Matt Allen <matt@investigationmarketplace.com>
2001-07-10 15:59:33 +00:00
Rasmus Lerdorf
89a73df39c
Fix Windows build (I think)
2001-07-09 18:57:19 +00:00
Rasmus Lerdorf
934e10c7dc
Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
...
a gid check instead of a uid check.
@ - Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
@ a gid check instead of a uid check. (James E. Flemer, Rasmus)
2001-07-09 17:36:04 +00:00
Daniel Beulshausen
fb30f1b067
enable get*by* networking functions + remove comments
2001-07-06 09:53:39 +00:00
Sascha Schumann
ef13ab5750
Improve url scanner speed (up to 40% for large chunks of data)
...
and handle some corner cases better. The scanner has been changed
to the format as proposed in "RE2C - A More Versatile Scanner Generator"
by Cowan et al.
2001-07-04 15:30:21 +00:00
Zeev Suraski
551f1831a7
Fix a major thread safety bug in the output mechanism
...
@- Fixed a major memory corruption bug in the thread safe version (Zeev)
2001-07-02 18:17:10 +00:00
Zeev Suraski
f35b85b4c1
Fix bug #11678
2001-06-26 18:30:31 +00:00
Zeev Suraski
a13252b601
- Fix leak in case of a syntax error
...
- Be more verbose in lint mode
2001-06-21 13:47:26 +00:00
Zeev Suraski
167dcb00be
Remove redundant code from lint mode, it should now do only what it needs to do
...
and not anything else, and should no longer leak.
2001-06-21 09:24:53 +00:00
foobar
b0ed727aee
Fix one problem with Opera browsers. Tested with IE,NS,Opera.
...
There can be also a \t before the 'filename=' part.
2001-06-19 16:54:30 +00:00
Sebastian Bergmann
e4f109b69f
Finish phpinfo() HTML 4.01 tweaking.
2001-06-19 15:21:28 +00:00
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +00:00
Jason Greene
9e5b0de828
Add the capibility to to allow ap_php_(v)snprintf to replace (v)snprintf
...
if the platform has a broken (v)snprintf, or in my case, if a library included
by a module redifines snprintf incorrectly.
2001-06-05 16:35:56 +00:00
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
...
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
Andrei Zmievski
171c425641
A little clean, merge two if statements.
2001-06-01 15:01:29 +00:00
Sterling Hughes
39e282254b
place nice with other libraries.
2001-05-30 05:00:39 +00:00
Andrei Zmievski
daefeb59d5
Kill warning.
2001-05-29 20:32:57 +00:00
Andi Gutmans
4ddb24366f
- Fix problem of output initialization
2001-05-23 16:52:45 +00:00
foobar
726bd849c0
oops..
2001-05-23 03:40:52 +00:00
foobar
1567b0dfe0
fixed bug: #10960
2001-05-23 00:33:47 +00:00
Andi Gutmans
177934732b
- Start nuking not needed GINIT
2001-05-22 19:19:04 +00:00
Andi Gutmans
98c2329b0b
- Fix name of function.
2001-05-21 17:48:49 +00:00
Sascha Schumann
e2eaf6342e
Add support for systems where p{read|write} take a off64_t without
...
being properly prototyped.
2001-05-20 23:39:09 +00:00
Sascha Schumann
ff5a9de31d
Support for IRIX-style asctime_r/ctime_r.
2001-05-20 21:29:55 +00:00
Sebastian Bergmann
6b206a66a4
MS VisualStudio .NET 7.0 has M_PI_4 in math.h
2001-05-17 09:55:03 +00:00
Harald Radi
06c7c52b58
changed php_typedef_VARIANT.h to php_VARIANT.h
2001-05-13 16:51:59 +00:00
Andi Gutmans
cbc07d4eb0
- Fix bug. The INI system expects a string for default INI values.
...
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-05-12 20:11:01 +00:00
Sascha Schumann
fab8bd40d1
These functions have been changed to macros.
2001-05-12 10:28:39 +00:00
Thies C. Arntzen
25003ea668
4.0.6 is tagged, HEAD is now 4.0.7-dev
2001-05-11 18:03:42 +00:00
Thies C. Arntzen
cd2f057f1a
bump bundled expat to 1.95.1
...
win32 project _needs_ updating and i don't have windows
2001-05-11 17:57:37 +00:00
foobar
128df6ead7
Fixed: http://www.php.net/bugs.php?id=10733&edit=1
2001-05-08 20:11:46 +00:00
Zeev Suraski
ff11c36dc5
Avoid crashing if somehow, output is sent in a new thread tha had no requests
2001-05-07 22:00:13 +00:00
foobar
d8ab8ea544
Fixed bug: #7227 . Now the correct strings (if set) are shown.
2001-05-06 15:22:22 +00:00
foobar
9d1817ed7f
Fix bug: #10323 . Every value outputted is now escaped.
2001-05-06 15:20:56 +00:00
Wez Furlong
77e7035421
Fixed Andi's build problem.
2001-05-05 22:36:26 +00:00
Wez Furlong
3ffb8e3800
Nuke buffering from php_streams, move connect_nonb() from fsock.c to network.c
...
and rename to php_connect_nonb().
Use php_connect_nonb() instead of connect() in php_hostconnect() -> timeouts
should now work in php_hostconnect().
sock streams abstraction now uses php_sockbuf as the "abstract" pointer.
2001-05-05 18:36:22 +00:00
foobar
bf417a3b72
Now the file uploads 'work' also on Lynx. This patch was submitted
...
by Andreas Pistoor <andreas@erestor.f2s.com> and I have tested it a
quite long time now and didn't notive any problems. Bug: #9930
2001-05-02 01:18:53 +00:00
foobar
d0dac28cc2
Fix bug #10563
2001-05-01 23:22:55 +00:00
Andi Gutmans
ab9a7a5f5f
- Remove C++ comment
2001-05-01 16:33:09 +00:00
Andi Gutmans
d04562e845
- Fix snprintf() to work with nan and inf properly
2001-05-01 16:29:52 +00:00
Rui Hirokawa
09197a4531
renamed jstring to mbstring.
2001-05-01 01:52:55 +00:00
Daniel Beulshausen
0a121f855c
make pgsql build under win32 again
2001-04-30 14:23:41 +00:00
Rui Hirokawa
e2e2d432fd
added japanse http input (POST/GET/Cookie) handler. It is nessceary to add input encoding conversion functionality for ext/jstring.
2001-04-30 13:27:53 +00:00
Andi Gutmans
4c823e8a89
- Change macros from V_ to VCWD_ because of AIX name clash
2001-04-30 12:45:02 +00:00
Andi Gutmans
02b9292ff2
- Update to work with latest Zend
...
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-04-29 12:58:50 +00:00
Daniel Beulshausen
1b279d3477
get rid of MS's _popen/_pclose
2001-04-27 16:41:53 +00:00
Sascha Schumann
453b4c7362
Make old readdir_r code compatible with HPUX and Solaris.
2001-04-27 11:14:48 +00:00
Stig Bakken
073fa0ee73
* define PEAR_EXTENSION_DIR as well
2001-04-25 21:46:40 +00:00
Frank M. Kromann
0be5cca176
Fix build on WIn32
...
Should the new directorys be static?
2001-04-23 17:33:22 +00:00
Stig Bakken
2cf1b8d345
* expanded the following constants and made them available in PHP:
...
DEFAULT_INCLUDE_PATH
PEAR_INSTALL_DIR
PHP_EXTENSION_DIR
PHP_BINDIR
PHP_LIBDIR
PHP_DATADIR
PHP_SYSCONFDIR
PHP_LOCALSTATEDIR
PHP_CONFIG_FILE_PATH
* no longer generating pear/PEAR.php
* fixed some tests
* some more installer work
2001-04-22 01:09:14 +00:00
Andi Gutmans
a6f90ec7c6
- Get rid of warning.
2001-04-21 11:40:04 +00:00
Wez Furlong
5dbb3a7708
Added files for PHP streams
2001-04-17 17:03:18 +00:00
Stig Bakken
0b2641efa6
@Added -C command-line option to avoid chdir to the script's directory (Stig)
2001-04-16 23:20:47 +00:00
Sascha Schumann
466c226415
Revert mega patch.
...
This patch has at least the following deficiences:
- the CGI is built using objects from another SAPI module.
This usually results in unsatisfied symbol references.
- the CGI makefile is not created properly
- building CGI cannot be disabled
2001-04-09 15:47:19 +00:00
Stig Bakken
a4877d7afd
* CGI version is always installed!
...
* replaced --disable-pear with --with-pear=DIR (or --without-pear),
is backwards compatible
* use --datadir, --libdir and --sysconfdir configure options to determine
where PEAR files, shared extensions and php.ini goes
* simplified the extension version directory name
2001-04-08 22:30:17 +00:00
foobar
349b2bebe3
fixed typo in CVS id
2001-04-06 01:50:40 +00:00
foobar
d9b309fdfa
This branch is 4.0.6-dev..
2001-04-04 20:52:44 +00:00
foobar
c34d2b91da
Added new configuration directives:
...
arg_separator.input and arg_separator.output
2001-04-04 20:46:26 +00:00
foobar
460293fbdc
Cookies use ; as argument separator.
...
# And also the first step for the possible configure option
2001-04-04 00:37:06 +00:00
Anil Madhavapeddy
d26ec12ba2
Free the correct output buffer, to avoid a segfault on a HEAD request
...
when using output buffering with a custom handler (patch by zeev@)
2001-04-02 16:45:27 +00:00
Zeev Suraski
b865380edb
Fix headers handling with output buffering
2001-03-31 22:53:19 +00:00
André Langhorst
7d50e21a4b
fix typo
2001-03-28 20:08:49 +00:00
André Langhorst
339ac67ce3
fix proto
2001-03-28 19:41:38 +00:00
foobar
8c97f5c04d
Fix the arg_separator behaviour. Only & or ; is allowed as separators so no need to use the ini setting here.
2001-03-27 11:34:51 +00:00
foobar
e76703ae6a
Fix possible crash if content-type is not set.
2001-03-18 08:00:10 +00:00
Zeev Suraski
d3572f74bb
These functions are not necessary - that's what sapi_register_post_entry()
...
and sapi_unregister_post_entry() are for...
Also, please maintain K&R code layout, it's very messy to have different
styles intermixed in the same codebase, and especially in the same files!
2001-03-18 02:32:04 +00:00
Zeev Suraski
9db5589161
Recode delayed loading in a much simpler way (switched back to php_ini.c 1.49)
2001-03-17 23:35:32 +00:00
Zeev Suraski
34b2fc4a6c
Fix the output buffering bug Andre found
2001-03-17 03:03:50 +00:00
Daniel Beulshausen
a37a9db454
fix bug in php_gmtime_r
2001-03-13 11:09:37 +00:00
foobar
6795032cb8
HAVE_BINDLIB --> HAVE_LIBBIND
2001-03-11 03:49:21 +00:00
Frank M. Kromann
4578c9af93
Removing a compiler warning
2001-03-07 16:33:13 +00:00
Zeev Suraski
9a04f870ab
Fix freeing of buffers
2001-03-06 19:38:33 +00:00
Zeev Suraski
93e9e7521a
Fixes to internal output buffering
2001-03-06 18:29:00 +00:00
Zeev Suraski
0ece429a16
More internal output buffering fixes
2001-03-06 16:28:51 +00:00
Zeev Suraski
20d2432c86
Fix internal output buffering
2001-03-06 16:25:14 +00:00
Zeev Suraski
13a97fefeb
Initial work on internal output handlers - should be much quicker
2001-03-06 15:54:49 +00:00
Stanislav Malyshev
7c2ea02288
Don't insert empty path if PHPRC is empty
2001-03-06 11:38:55 +00:00
Zeev Suraski
a22ada795f
Improve memory consumption on chunked output buffering
2001-03-04 15:46:13 +00:00
Zeev Suraski
c64fe7fbe1
Fix non-thread safe mode
2001-03-04 01:45:19 +00:00
Zeev Suraski
0a98aa6ada
Improve chunked output buffering - the output handler now knows at which stage it is
2001-03-04 01:09:36 +00:00
Zeev Suraski
b8787bf2d8
Fix chunked output buffering support
2001-02-27 00:09:14 +00:00
Andi Gutmans
a0d3c5a88e
- Finally rename modules.h to zend_modules.h for consistency (first try
...
was 2000-03-11).
- Remove the first_arg_force_ref[]; and friends extern from php.h as they
are included via zend_API.h
2001-02-26 18:14:50 +00:00
Daniel Beulshausen
ab128eedaa
nuke warnings
2001-02-26 16:32:57 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
Sascha Schumann
cb1a89cb64
Declare inet_aton properly, if the system lacks support for it.
...
PR: #9382
2001-02-24 21:14:18 +00:00
Sascha Schumann
a40ee1f181
Actually compile on systems without syslog.
...
PR: #9412
2001-02-24 21:08:15 +00:00
Sascha Schumann
c2fb53bed7
Finish fopen-wrappers rename.
2001-02-23 22:07:16 +00:00
Andi Gutmans
9a28132876
- Fix indentation and remove comment.
2001-02-22 11:30:53 +00:00
Shane Caraveo
09c7116f6e
zend_compile_file returns a NULL on error, check for that before
...
calling destroy_op_array unless we like crashes :-)
2001-02-21 20:50:49 +00:00
Stanislav Malyshev
2b45f38ec9
Add safety check
2001-02-21 15:20:29 +00:00
Hartmut Holzgraefe
5b741dfb58
# make sebastian and compiler happy .)
2001-02-21 11:16:16 +00:00
Hartmut Holzgraefe
b14d2cc0dc
will now initialize dynamic extensions *after* static ones
2001-02-21 01:43:15 +00:00
Thies C. Arntzen
9a631384f3
remove unneded comments
2001-02-13 15:58:58 +00:00
Andi Gutmans
033190cbcf
- Fix warning
...
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-02-12 15:47:38 +00:00
Harald Radi
7478783b20
fixed unicodeconversion and parameter passing bugs in com and dotnet modules
2001-01-28 03:41:43 +00:00
Rasmus Lerdorf
83cf6629ec
@BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
...
BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
2001-01-21 17:29:15 +00:00
Sascha Schumann
fd83f5e1a4
Bump PHP_API_VERSION
2001-01-19 16:04:27 +00:00
Sascha Schumann
96ba644e9f
Make the code match the comment.
...
Prior to this change, the upload code tried to add mangled names to
the global HTTP_POST_FILES array, resulting in all kind of weird behaviour.
After this change, multi-dimensional form elements are treated correctly
and consistently.
2001-01-19 15:39:35 +00:00
Rasmus Lerdorf
f74998a783
Kill a couple of warnings
2001-01-17 06:40:48 +00:00
Zeev Suraski
d294f46f5a
- Remove the ini_extension_list global
...
- Switch to delayed loading of Zend extensions
2001-01-15 10:52:02 +00:00
Zeev Suraski
f8522c7fa9
Use free_estring()
2001-01-15 10:50:39 +00:00
Sascha Schumann
db0b8bc05b
Defer loading of extensions until all configuration entries have been
...
added to the configuration hash.
2001-01-15 03:21:05 +00:00
Sean Bright
40f3524247
Added localeconv() function. Operates similarly to localeconv() defined in
...
locale.h. Should work well under non-ZTS as well as ZTS.
2001-01-14 16:36:30 +00:00
Zeev Suraski
93f4fa8d73
cleanup time...
2001-01-13 13:16:56 +00:00
Zeev Suraski
7b7d1d962d
Remove some more useless code
2001-01-13 13:14:49 +00:00
Zeev Suraski
fc1cdda10d
Remove stale code
2001-01-13 13:10:50 +00:00
Zeev Suraski
6562e98afa
Fix Windows & thread-safe build
2001-01-13 13:02:19 +00:00
Stig Venaas
30441cda5b
Simplified code a bit, added detailed error reporting, and fixed a bug
...
when getaddrinfo returned a non-IP family before IP families
2001-01-13 11:48:47 +00:00
Sascha Schumann
5d8e3c37d9
arr_index errorneusly included the trailing ']' character, so that
...
variable names like Data_name[Image]] were passed to the register functions.
2001-01-13 10:19:17 +00:00
Rui Hirokawa
0841703c32
*** empty log message ***
2001-01-10 14:42:23 +00:00
Sascha Schumann
7eb8469679
Avoid possible memory leak in the URL scanner, if the connection is
...
interrupted during writing the output.
2001-01-09 16:45:19 +00:00
Thies C. Arntzen
0719e7e006
@- Allow access to uploaded files in safe_mode. Beware that you can only
...
@ read the file. If you copy it to new location the copy will not have the
@ right UID and you script won't be able to access that copy. (Thies)
2001-01-09 11:58:57 +00:00
Zeev Suraski
ceec9203a1
Fix CGI build
2001-01-07 18:56:24 +00:00
Zeev Suraski
7235542cee
Change get_ini_entry to get_configuration_directive
2001-01-07 18:38:38 +00:00
Zeev Suraski
60776dbeeb
Fix Apache module and remove excess elements from the SAPI structure
2001-01-03 11:56:00 +00:00
Stanislav Malyshev
ea46f79a97
Fix #8486 (name= without quotes in MIME Content-Disposition header)
...
Ported fix by kk/sas from PHP 3
2001-01-03 10:52:26 +00:00
Zeev Suraski
bd0ac7fe14
Many patches. I hope I remember them all:
...
- Make sapi_module available to external modules (PHPAPI)
- Make the php.ini path reported in phpinfo() always point to
real full path of the php.ini file
- Optimized the ISAPI module not to read unnecessary server
variables and read necessary variables at most once.
2001-01-02 22:49:31 +00:00
Zeev Suraski
338b9b0819
- Make the INI mechanism thread safe (fix necessary API changes from Zend)
...
- Make the Win32 non-TS configuration build again
2000-12-27 15:43:05 +00:00
Andi Gutmans
86a1cace27
- Make all places use MAXPATHLEN in the same way. It includes the
...
terminating NULL.
2000-12-16 20:52:43 +00:00
Andi Gutmans
11e5f9bd44
- This is the correct way of doing it
2000-12-14 23:05:31 +00:00
Daniel Beulshausen
9967b2e149
added define for force cgi redirect
2000-12-14 11:46:10 +00:00
Stanislav Malyshev
0731f54d35
Fix #7987 : POST/GET: string with \0(%00) values not parsed correctly
2000-12-12 10:47:47 +00:00
Rasmus Lerdorf
c9f1fe638d
Fix off by one error in file upload code
2000-12-08 14:28:14 +00:00
Sascha Schumann
05dc226919
Fix a memory leak
2000-12-08 12:32:16 +00:00
Sascha Schumann
4ada3dd3a0
Hardcode all functions which are mentioned in the Large File Support Spec
...
http://ewe3.sas.com/standards/large.file/specs/api+.007.html
2000-12-07 12:09:38 +00:00
Sascha Schumann
1f934084cd
Noone defines PACKAGE/VERSION anymore.
2000-12-02 13:27:10 +00:00
Sascha Schumann
182724f477
Branched off 4.0.4. This trunk becomes 4.0.5-dev.
2000-12-02 08:21:10 +00:00
Jason Greene
d8bc7084ee
Added the capability to specify a different HTTP Redirection response code
...
before the Location Header.
Ex. header("HTTP/1.1 307 Temporary Redirect");
header("Location: URL");
2000-11-29 01:22:49 +00:00
Zeev Suraski
2672602e30
Output buffering was being enabled all the time - fixed
2000-11-29 01:02:27 +00:00
foobar
e5a997ff59
@- Fixed a bug which made readdir() unusable in some systems. (Jani)
...
# Bug report: #7390
2000-11-28 09:13:22 +00:00
Sascha Schumann
dcd971e6bf
A field of mines
...
Submitted by: jon@csh.rit.edu
2000-11-28 06:54:16 +00:00
Sascha Schumann
3b195720e0
Add a note about what a missing const specifier does mean in the context
...
of the request_info structure.
2000-11-27 13:33:33 +00:00
Sascha Schumann
0644641616
Move build-defs.h(.in) and php_config.h to main
2000-11-27 13:27:51 +00:00
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
Zeev Suraski
c5c973d16f
- Get rid of whitespace.
2000-08-01 00:41:35 +00:00
Stanislav Malyshev
a790966b15
Fix file upload types array handling ( #5836 )
2000-07-30 11:22:18 +00:00
Rasmus Lerdorf
677df784c1
This url symbol was a bit too generic. Change it to php_url instead.
...
It was clashing with a similar typedef in the UdmSearch integration I am
working on.
2000-07-29 22:32:21 +00:00
Zeev Suraski
52ff887db5
Made ob_start() and friends reentrant. It's now possible to implement this
...
long-requested functionality, now that output buffering is re-entrant:
function eval_ret($code)
{
ob_start();
eval($code);
$retval = ob_get_contents();
ob_end_clean();
return $retval;
}
2000-07-29 14:46:09 +00:00
Zeev Suraski
d8a4278ab4
- Update .dsp's
...
- Make non ZTS Win32 build again
2000-07-29 10:48:57 +00:00
Hartmut Holzgraefe
1a7f851985
added '-l' option to command line / CGI version for 'syntax check only'
...
plus a little cleanup and rearranging in command line option parsing
@ CGI aka. command line version has now an option '-l' for syntax check
@ without execution (Hartmut)
2000-07-28 15:21:20 +00:00
Stanislav Malyshev
ba8d49dce7
Fix realpath not to die on non-existing files (bug #5790 )
...
Thanks to china@thewrittenword.com
2000-07-27 13:48:50 +00:00
Stanislav Malyshev
a9606d1d4e
Make browscap parameter names lowercase
...
Fix . handling in browscap names
2000-07-25 18:50:50 +00:00
David Croft
0836e10a15
various version 2.0 and 2.01 licenses -> 2.02
2000-07-24 05:41:02 +00:00
David Croft
83513d9580
Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.
...
Added a few RCS $Id$ tags.
# Note: I have avoided changing any .h files if the corresponding .c file
# had not already been changed as I am not sure if there are any legal
# issues here. So some extensions still have PHP 3 headers.
2000-07-24 01:40:02 +00:00
Stanislav Malyshev
b410eaf6d4
Make browscap not to lowercase its arguments
...
# Why it is doing it? Parent matching doesn't work with lowercase
# If there was any reason to it, please tell
2000-07-23 11:27:48 +00:00
Joey Smith
4caea0bb7a
BROKEN_SPRINTF should be PHP_BROKEN_SPRINTF
2000-07-23 08:25:27 +00:00
Zeev Suraski
206b83f009
Fix Win32 build
2000-07-21 15:54:10 +00:00
Stig Bakken
7bb67a6200
@Set default include_path so PEAR files can be reached (Stig)
2000-07-18 11:02:28 +00:00
Zeev Suraski
aa8d04a87c
Fix disable_functions feature
2000-07-13 17:52:00 +00:00
Thies C. Arntzen
88113794fd
(php_error) only set php_errormsg if we (still) have an active_symbol_table.
2000-07-12 11:59:09 +00:00
Zeev Suraski
168ccfc133
Disable the hash_apply() protection on hashes that persist across requests - it's unsafe
...
because we may be aborted at any point
@- Fixed a possible data corruption in case of a huge amount of aborted requests (Zeev)
2000-07-11 14:29:38 +00:00
Sascha Schumann
e8101d4f7b
Unify use of my email address
2000-07-10 10:09:15 +00:00
Sascha Schumann
2cfa840eb5
Restore INI entries after the request shutdown of modules.
...
This fixes the problems users of the session module encountered when
using a save handler other than files.
2000-07-09 13:20:27 +00:00
Uwe Steinmann
68f35d5539
- fixed handling of fdf data (application/vnd.fdf)
2000-07-05 08:57:37 +00:00
Stig Bakken
23ca7b9f1a
Added "html_errors" directive to optionally disable HTML formatting of error
...
messages. The default is on. (Stig)
2000-07-04 09:15:06 +00:00
Sascha Schumann
0db7994248
Rename macros which begin with underscore to valid macros.
2000-07-03 00:45:21 +00:00
Sascha Schumann
cd754d7825
Rename macros which begin with underscore to appropiate macros. The general
...
rule is:
macro_name=`echo $filename|tr a-z A-Z|sed 's/\./_/'`
2000-07-03 00:41:19 +00:00
Sascha Schumann
16017f6d78
Change header protection macros to conform to standard.
...
Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment"
All identifiers that begin with an underscore and either an uppercase
letter or another underscore are always reserved for any use by the
implementation.
2000-07-02 23:46:51 +00:00
Stanislav Malyshev
10342b4b9e
react only on CORE_ERROR
2000-07-02 16:36:31 +00:00
Stanislav Malyshev
d3afeb5b4e
Be strict on errors in modules startup
2000-07-02 16:23:43 +00:00
Rasmus Lerdorf
2b61d55b1d
This is documented to not be case sensitive and it is not case sensitive
...
in PHP 3, so let's not make it case sensitive.
@Make the special Header("http/...") response be case insensitive like 3.0 (Rasmus)
2000-07-01 18:06:11 +00:00
Zeev Suraski
397df3ca87
- Revert bogus time.h commit
...
- Fixed a problem under some versions of Windows that could cause PHP to hang
on startup if errors occured, e.g. in the php.ini file
2000-06-30 13:23:08 +00:00
Thies C. Arntzen
930b212c23
hmm, this file is not really auto-generated.
2000-06-30 12:31:24 +00:00
Zeev Suraski
37fb71b9ba
Set version number on DLLs
2000-06-30 12:16:58 +00:00
Andi Gutmans
1f828a6e88
- Fix problem with DICARD_PATH being defined in windows
2000-06-29 13:31:52 +00:00
Andi Gutmans
da8843aa55
- Fix problem with VIRTUAL_DIR and relative paths containing ..
2000-06-28 17:30:30 +00:00
Andi Gutmans
eaa2a158c8
- Fix bug with VIRTUAL_DIR, .., and symlinks.
2000-06-27 18:18:18 +00:00
Zeev Suraski
cacbf1ea28
Support boolean NOT in the php.ini processor
2000-06-26 18:15:49 +00:00
Andrei Zmievski
4010b422dd
Separate plain name returned by php_sapi_module() and pretty name
...
used for output.
2000-06-26 18:05:55 +00:00
Zeev Suraski
16c363182d
TRACK_VARS is really no longer necessary...
2000-06-26 17:11:28 +00:00
Zeev Suraski
c51ba263dd
- Fix bug in virtual dir under Windows when using absolute paths without
...
- drive letter
2000-06-26 16:24:28 +00:00
Zeev Suraski
6614e8edb4
- I wrote a long msg but the commit didn't go through.
...
- So here is the short version:
- a) Start moving to binary opens in Windows
- b) Give checkuid_mode() a small face lift including the fopen-wrappers.c
- The mode to this function should at least be a #define but that is for
- another day. Anyway this whole stuff should be given more face lifts in
- the future.
2000-06-25 17:02:59 +00:00
Andi Gutmans
303dc9e96a
- Forgot to remove comment
2000-06-24 16:24:01 +00:00
Andi Gutmans
4b5e7d6618
- Only use VIRTUAL_DIR in ZTS mode until it is thoroughly tested.
...
- Mutex popen() in Windows as the UNIX trick doesn't work there.
2000-06-24 16:10:18 +00:00
Zeev Suraski
d1a6a64675
- Make the output globals accessible from the outside world
...
- Fix Win32 compilation
2000-06-24 13:27:34 +00:00
Andi Gutmans
d8a75cf7e5
- COMPILE_ERROR should only be used in Zend
2000-06-23 13:05:06 +00:00
Sascha Schumann
2456af596f
Remove some unnecessary CLS_FETCH()s.
2000-06-23 00:53:33 +00:00
Zeev Suraski
3998034acb
Update to 4.0.1
2000-06-22 18:35:09 +00:00
Sascha Schumann
322be14458
HAVE_MEMORY_H is not used by PHP.
2000-06-21 21:48:14 +00:00
Andi Gutmans
bd900fb66b
- Make Windows compile
2000-06-16 08:02:33 +00:00
Zeev Suraski
c885f468aa
Improve timeout support - ini_get("max_execution_time", ...) works now
2000-06-16 02:27:47 +00:00
Zeev Suraski
f29eae1302
Move timeout code to Zend, allow Win32 timeouts
...
@- Implemented max_execution_time under Win32 (Zeev)
2000-06-16 01:53:35 +00:00
Andi Gutmans
e3ae196da8
- Don't need to check doc_root's length twice
2000-06-16 01:25:02 +00:00
Andi Gutmans
f8ecf34bf1
- Last one for tonight. Make sure that we don't check uninitialized
...
- memory
2000-06-16 01:23:03 +00:00
Andi Gutmans
b73a6f883d
- Last patch for tonight. A more optimized way to check for absolute path
...
- in Windows. This should be fixed to use the virtual cwd macro for
- ABSOLUTE_DIR() but I need to have time to understand the logic first
2000-06-16 01:14:08 +00:00
Andi Gutmans
70b8e3e8f6
- Missed a bracket
2000-06-16 01:08:39 +00:00
Andi Gutmans
cbfa4c88d9
- Beautify fopen-wrappers a bit.
...
- Still needs quite a lot of improvement in order to treat Windows well
2000-06-16 00:56:38 +00:00
Andi Gutmans
7d5cfd3766
- virtual_fopen() should fail on empty path
2000-06-15 18:36:46 +00:00
Andrei Zmievski
aa49d4af62
Plus a leak when both register_globals and track_vars are off.
2000-06-13 20:59:23 +00:00
Zeev Suraski
fce92e3ca2
Avoid using E_CORE_* errorlevels in any place which is not in the global startup sequence
2000-06-12 20:22:17 +00:00
Andi Gutmans
719d995a9d
- On UNIX support popen() which works with current working directory
...
- when in VIRTUAL_DIR mode.
2000-06-12 19:39:04 +00:00
Andi Gutmans
02c42362ff
- Start of popen() fix for UNIX. Still unclear what we'll do on Windows.
2000-06-12 18:48:18 +00:00
Zeev Suraski
5be482030e
Killed <?php_track_vars?>
2000-06-12 16:07:25 +00:00
Andrei Zmievski
eb4b5ffd22
(php_readdir_r) Revert that bad patch.
2000-06-12 14:11:39 +00:00
Andrei Zmievski
e008af1364
(php_readdir_r) Last argument to readdir_r was missing.
2000-06-12 13:20:38 +00:00
Sascha Schumann
fd7153b0f3
Change directory name from core to main.
2000-06-11 18:51:17 +00:00
Sascha Schumann
6df3a21309
Prepare move of the top-level source files to the core directory.
2000-06-11 18:16:37 +00:00
Thies C. Arntzen
bd593d3da6
(set_time_limit) converted to new API.
...
# for some weird reason this fixes a newly introduced crash.
2000-06-11 10:27:36 +00:00
Andi Gutmans
a1c036b8cf
- Fix bug in virtual_file_ex when the resulting path is the root.
2000-06-10 15:15:28 +00:00
Andi Gutmans
97de5b2106
- Fix PostgreSQL project file a bit.
...
- Remove some HAVE_* from config.w32.h. More can be removed. Right now
- most HAVE_*'s in config.w32.h can actually be removed as they usually are
- only used by the module itself and not by PHP. MSQL is an exception as
- log can use it too
2000-06-10 10:15:53 +00:00
Sascha Schumann
8f58728e2b
Real fix for std_syslog issue on OpenServer. This is limited to the native
...
development system (/bin/cc and icc) and does not show up with the UDK.
2000-06-09 17:21:40 +00:00
Andrei Zmievski
e52889acd9
@- Changed WDDX to always serialize arrays as structs. (Andrei)
...
Changed WDDX to always serialize arrays as structs. PR #4924
2000-06-09 13:50:39 +00:00
Zeev Suraski
897bb1b572
- Parse errors in the php.ini files under Windows will no longer mess up the
...
HTTP headers in CGI mode and are now displayed in a message box
2000-06-09 02:18:50 +00:00
Hartmut Holzgraefe
eb8cd900a6
@ fopen_wrappers() are now extensible via modules
...
so here it finaly is, the more general approach to fopen wrappers
# see what i'll break this time
2000-06-08 09:43:12 +00:00
Sascha Schumann
d180634e07
Add PHP_BROKEN_SPRINTF check here.
...
Also remove unnecessary #ifdef's for PACKAGE and VERSION.
2000-06-08 06:16:22 +00:00
Hartmut Holzgraefe
02b0cef4d8
cyscape's "current" browscap.ini file doesn't terminate the last line
...
in the file with a newline character
this resulted in a parse error
2000-06-07 05:47:24 +00:00
Zeev Suraski
34c40031ca
@- Made the short_tags, asp_tags and allow_call_time_pass_reference INI directives work
...
@ on a per-directory basis as well, e.g. from .htaccess files (Zeev)
2000-06-06 19:16:57 +00:00
Andi Gutmans
d7ac0f2c9d
- I didn't have anything to do with this buggy code. Just kidding :)
2000-06-06 18:54:00 +00:00
Sascha Schumann
102c6ce4b8
Move main.h to php_main.h.
2000-06-05 23:24:42 +00:00
Andi Gutmans
7e0baa7a1d
- Revert Thies' locale patch. It was screwing up language level things.
...
- We could add support for locale in some specific output functions at a
- later time to make everyone happy
2000-06-05 15:34:11 +00:00
Zeev Suraski
4a1da8b6f9
Fix Win32 build
2000-06-04 22:00:17 +00:00
Stanislav Malyshev
5af7dff758
add opendir to VIRTUAL_DIR
2000-06-04 08:29:11 +00:00
Stanislav Malyshev
375474ce86
chdir returns -1 on error, so should V_CHDIR
2000-06-04 07:59:32 +00:00
Rasmus Lerdorf
76061b701e
@ Add support for both indexed and non-indexed arrays of file uploads
...
@ eg. name="file[]" type="file" (Rasmus)
Add support for both indexed and non-indexed arrays of file uploads
eg. name="file[]" type="file" (Rasmus)
2000-06-04 05:46:28 +00:00
Zeev Suraski
d1f1d40527
- Make the INI entries sorted in phpinfo()
2000-06-03 03:05:29 +00:00
Zeev Suraski
06388f5181
Use the new error code
...
@- Added set_error_handler() to allow custom error handling functions,
@ instead of the built-in error handling code (Zeev, Zend Engine)
@- Renamed user_error() to trigger_error(); user_error() remains
@ defined for compatibility (Zeev, Zend Engine)
2000-06-02 12:35:53 +00:00
Sascha Schumann
dc5af6decc
s/sys_syslog/std_syslog/
2000-06-01 00:48:28 +00:00
Thies C. Arntzen
ccacfd880b
@- ignore_user_abort=Off is now default. (Thies)
2000-05-31 14:02:36 +00:00
Zeev Suraski
8fb954ae4f
Fix startup sequence. It should do it this time.
2000-05-29 18:45:06 +00:00
Zeev Suraski
7213c743f0
- Added disable_functions php.ini support
...
- Fixed Win32 build
2000-05-29 17:22:35 +00:00
Hartmut Holzgraefe
ae1043ba0d
warn_not_available() will be used by other modules besides
...
ext/standard in the (very near) future
2000-05-29 17:08:01 +00:00
Andi Gutmans
a0e46521e3
- License is at 2.02
2000-05-29 17:03:24 +00:00
Rasmus Lerdorf
ebd9e89fcf
Clean up EXIF code and give up on extracting the embedded thumbnail for
...
now. Will return to it when I find some real specs on it.
Also added a couple of missing copyright headers
2000-05-29 16:34:19 +00:00
Zeev Suraski
949574d027
Remove stale reference to .h file
2000-05-29 16:22:26 +00:00
Zeev Suraski
1ae552c7d1
Creat is creat is creat, no open
2000-05-29 11:45:20 +00:00
Andi Gutmans
9786b16e9f
- Move zend_activate_modules() to later on.
2000-05-28 17:19:49 +00:00
Sascha Schumann
833339c692
Remove win32/php_registry.h from include list. That slipped in by accident.
2000-05-28 16:27:25 +00:00
Sascha Schumann
0d9c0616f9
Use php_syslog() for system call. On OpenServer 5, syslog is defined to
...
var_syslog/sys_syslog which causes various problems.
Submitted by: Paul Gardiner <I.T.Manager@barleychalu.co.uk>
2000-05-28 16:22:28 +00:00
Thies C. Arntzen
44cf237a72
(php_execute_script) fix leak for phpinfo() images.
...
# maybe the activate/deactivate should be moved outside php_execute_script()?
2000-05-28 12:30:06 +00:00
Hartmut Holzgraefe
fb39eda0d8
a second (cleaner?) try on warnings about unsupported functions
2000-05-27 19:27:20 +00:00
Andi Gutmans
afccb58612
- I'm not sure if PHP_NOT_IN_THIS_BUILD is the way to handle these
...
- functions but in any case I have changed it to PHP_NOT_IN_THIS_BUILD()
2000-05-27 18:55:11 +00:00
Andi Gutmans
8c82566b48
- Fix problem in sessions module under Win32. Need to use ; as an options
...
- delimiter in save_path instead of :.
2000-05-27 16:38:49 +00:00
Hartmut Holzgraefe
69d1e788c0
if a module provides a function it should also do so if the function
...
is not functional due to configure findings
the function should offer a meaningful warning if it is not supported
instead of just beeing undefined
i had already changed this in 'gd', now this is doing it for 'standard'
2000-05-26 17:04:02 +00:00
Sascha Schumann
8a86e37d69
The behaviour for result == NULL || entry == NULL is undefined.
2000-05-24 14:46:13 +00:00
Sascha Schumann
faf4f764b7
If no further directory exists, php_readdir_r() returns success and sets
...
*result to NULL.
2000-05-24 14:41:28 +00:00
Sascha Schumann
25df65b0b8
Support old-style readdir_r()
2000-05-24 11:06:57 +00:00
Sascha Schumann
ff4031585a
Avoid building two versions of the time-related reentrant functions.
2000-05-24 10:44:57 +00:00
Hartmut Holzgraefe
df4547a3df
another bunch of proto fixes
2000-05-23 23:13:02 +00:00
Andi Gutmans
617266e33e
- Virtual current working directory is now enabled
...
- Added support for mkdir()/rmdir() and more
2000-05-23 17:02:21 +00:00
Sascha Schumann
112525ea9f
Some systems don't have dirent.h. Wrap include appropiately.
2000-05-23 15:15:48 +00:00
Sascha Schumann
2aaa538aef
Use reentrant version of readdir. If the target platform does not support
...
the POSIX-like readdir_r, we fall back to readdir. In ZTS mode, this will
cause php_readdir_r calls to be serialized.
2000-05-23 15:13:16 +00:00
Sascha Schumann
be6afb3fcc
Add POSIX-like readdir_r for Win32
2000-05-23 14:58:43 +00:00
Andi Gutmans
521f03c184
- Support virtual unlink()
2000-05-23 14:36:27 +00:00
Thies C. Arntzen
cf1d0f1844
fixed newly introduced crash
2000-05-23 10:36:18 +00:00
Thies C. Arntzen
61ceb9e5ab
bump version to 4.0.1-dev
2000-05-23 07:49:23 +00:00
Hartmut Holzgraefe
1ec84f9c21
fix for bug #2852 : argc inconsistency
2000-05-22 23:24:55 +00:00
Andi Gutmans
7f689fc044
- Move activate_models() back to where it was. I don't want to make such
...
- an optimization right before 4.0.0. Who knows, maybe one of the phpinfo()
- functions depends on some information only available after RINIT.
- In any case, my fix for .phps stays in.
2000-05-21 18:05:04 +00:00
Andi Gutmans
dc5cd319e5
- Fix Apache php source highlighting mode. It was crashing due to the
...
- module shutdown functions being called when the startup functions weren't
- being called.
2000-05-21 16:36:16 +00:00
Thies C. Arntzen
92437e9db1
fix the fix (it's still a hack)
2000-05-19 10:48:05 +00:00
Thies C. Arntzen
bad35f5484
make sigchild handler more robust.
2000-05-19 10:40:34 +00:00
Zeev Suraski
0f82e6de23
Minor output mods
2000-05-19 08:28:53 +00:00
Thies C. Arntzen
674f4bac47
added new option "--enable-sigchild" (default is off)
...
when using this option php will setup it's own SIGCHLD handler.
when using oracle-libraries >= 8.1 on linux you need this option
if you are connecting using the BEQ interface - elsewise you will
see <defunc> processes whenever a php-script disconnects from oracle.
2000-05-18 19:45:34 +00:00
Zeev Suraski
7e0a18d014
Package 4.0.0
2000-05-18 17:43:19 +00:00
Zeev Suraski
e043439ff6
Update the license with the new clause 6
2000-05-18 15:34:45 +00:00
Andi Gutmans
a704be730c
- Fix Win32 build
2000-05-17 23:42:18 +00:00
Hartmut Holzgraefe
31c3dfdf52
proto-takeover from php3
2000-05-17 19:45:46 +00:00
Zeev Suraski
efb51322c1
Only allow loading of extensions only during .ini file parsing
2000-05-17 15:41:32 +00:00
Sascha Schumann
69223ccebd
ANSIfy declarations/prototypes
2000-05-16 23:38:51 +00:00
Sascha Schumann
46e672243a
Remove extra declarations of cwd_globals(_id)
2000-05-16 23:11:18 +00:00
Andi Gutmans
0aa5f2ea3c
- Reverse the patch until I have time to look at it. The global id should
...
be defined by ZEND_DECLARE_GLOBALS(cwd)
2000-05-16 14:59:30 +00:00
Andi Gutmans
4e6e741af8
- Commit Sascha's patch to the virtual_cwd code. Will test it on Windows
...
soon.
2000-05-16 14:47:55 +00:00
Sascha Schumann
17b84ad7e7
Planning for 4.0RC2 on Monday
2000-05-06 01:48:35 +00:00
Sascha Schumann
e905fabe0d
s/strtok_r/php_strtok_r/
2000-05-04 11:36:33 +00:00
Sascha Schumann
f2a236ff83
Missed localtime_r/ctime_r. Prefix them with php
2000-05-04 11:31:58 +00:00
Sascha Schumann
d0f3764ee2
Change reentrancy API to always use the php prefix.
...
Check for the declaration of reentrant functions, so that we can use
them in non-ZTS mode on all platforms.
2000-05-04 10:38:17 +00:00
Sam Ruby
6fb3301416
Correct build breakage - win32
2000-05-03 11:26:29 +00:00
Sascha Schumann
fca9539d63
Preset extension_dir to the installation directory of PHP modules.
...
This effectively means that dl() will work without having an installed
configuration file.
2000-05-02 14:46:20 +00:00
Sascha Schumann
c801cfb879
php_reentrancy.h is needed for strtok_r
2000-05-01 03:43:07 +00:00
Andi Gutmans
e13285ded7
- Take Sascha's advice and create on V_OPEN() which replaces open().
...
- Unlike the other macros its argument has to have braces around it, for
- example, open(filename, flags) becomse V_OPEN((filename, flags))
- Made small conversion to new Zend macros. The ugly (*foo)->value.str.val
- now becomes Z_STRVAL_PP(foo). PP means pointer pointer, there also exist
- single P's for example foo->value.str.val becomes Z_STRVAL_P(foo).
2000-04-30 16:32:36 +00:00
Sascha Schumann
be00d130e6
Fix virtual_open() by adding ellipse
2000-04-30 03:06:00 +00:00
Andi Gutmans
f1d5167ae3
- Implement V_OPEN() V_OPEN_CREAT() and V_CREAT().
...
Next step is to substitute all open()'s and creat()'s in the PHP tree
2000-04-29 19:01:58 +00:00
Zeev Suraski
1a8683f976
- Never mind. Seems like we're still missing the open() functionality
2000-04-29 17:57:47 +00:00
Zeev Suraski
aecae7c3af
- Give VIRTUAL_DIR another try after testing it extensively on our web site
2000-04-29 17:51:28 +00:00
Hartmut Holzgraefe
5c5ccc9844
no more broken scripts by erroneously terminating header()'s argument
...
with a CR-LF
2000-04-28 16:47:19 +00:00
Zeev Suraski
3220bb570e
- Fix an invalid trick (it was valid when header() was using
...
zend_get_parameters(), but it became invalid when someone switched it
to zend_get_parameters_ex(), and I decided to remove it anyway).
- Remove a redundant function call
2000-04-28 13:03:13 +00:00
Thies C. Arntzen
b9387791a8
(php_module_startup) is now doing setlocale(LC_ALL, "") instead of just setlocale(LC_CTYPE, ""). suggested by Jon Forsberg <zzed@cyberdude.com>
...
# this change simply seems "right" as setlocale(LC_ALL, "") also happens in RSHUTDOWN(basic)
2000-04-28 11:09:57 +00:00
Zeev Suraski
dc8980bab2
Change to using macros
2000-04-27 20:22:40 +00:00
Zeev Suraski
39aa59bdec
More error handling work (still completely disabled)
2000-04-27 18:37:02 +00:00
Zeev Suraski
9d2738cf1d
- Fix crash bug in localtime_r. If locatime() returns NULL then also return
...
NULL
2000-04-24 16:16:45 +00:00
Zeev Suraski
972ef3f31b
- Missed second argument
2000-04-21 14:50:09 +00:00
Andi Gutmans
dd05651046
- Fix last fix for Windows
2000-04-21 14:46:24 +00:00
Andi Gutmans
36faff14b1
- Small fix to virtual_Chdir_file() to include the trailing slash when
...
the file is in the root directory.
2000-04-21 14:42:20 +00:00
Zeev Suraski
0b8369196b
A few .dsp fixes
2000-04-20 22:52:37 +00:00
Andi Gutmans
4928f63821
- Change a getcwd()
2000-04-20 21:07:39 +00:00
Andi Gutmans
c0919bbd41
- virtual_lstat() doesn't exist on Windows.
2000-04-20 17:58:25 +00:00
Andi Gutmans
503bb3bedb
- Export strlcat()/strcpy() for Frank.
...
- Windows doesn't have lstat().
2000-04-20 17:40:03 +00:00
Zeev Suraski
883bd2b1de
- Fix virtual cwd bug
...
- Add more V_STAT() V_LSTAT() changes
2000-04-20 17:24:01 +00:00
Andi Gutmans
e40268d07c
- Add missing V_STAT()
2000-04-20 16:38:08 +00:00
Colin Viebrock
7ecf70047b
*** empty log message ***
2000-04-19 23:18:15 +00:00
Zeev Suraski
9cbcade6c9
Support E_USER_* error types
2000-04-19 15:10:14 +00:00
Egon Schmid
f1c268d79a
Corrected some protos.
2000-04-18 20:00:21 +00:00
Zeev Suraski
c007a7232d
Document the ob_*() functions
2000-04-18 19:18:47 +00:00
Sascha Schumann
93135c8b32
Undefine HAVE_*_R, so that we get our replacements
2000-04-16 16:32:51 +00:00
Andi Gutmans
b8fd674453
- PHP_FOPEN -> V_FOPEN
2000-04-15 14:37:28 +00:00
Zeev Suraski
f0c7e0275f
Remove unnecessary argument
2000-04-15 14:30:18 +00:00
Andi Gutmans
1665cba750
- Change PHP_ to V_ (directory & file functions)
2000-04-15 14:20:01 +00:00
Zeev Suraski
81138a641a
Forgot to commit the php4 fixes
2000-04-15 13:53:20 +00:00
Rasmus Lerdorf
6727342b7a
Make error_prepend_string and error_append_string work
...
@Make error_prepend_string and error_append_string work
2000-04-14 14:00:32 +00:00
Rasmus Lerdorf
32a3c3987e
Undo bogus commit
2000-04-14 13:40:27 +00:00
Rasmus Lerdorf
2acd0ad1fe
I don't see why this should be gcc dependant and this fixes bugs 4140
...
and 4143
2000-04-14 13:14:30 +00:00
Andi Gutmans
7f54318897
- Turn off VIRTUAL_DIR by default
2000-04-11 17:00:21 +00:00
Zeev Suraski
8ec20a16ed
Fix another missing opened_path assignment
2000-04-10 22:50:32 +00:00
Andi Gutmans
897b413c2d
- Try and resolve the problem with current working directories not being
...
set to the script directory
2000-04-10 17:39:11 +00:00
Andi Gutmans
c981be0bca
- Don't need to extern functions
...
- Use virtual_file_ex() in expand_filepath()
2000-04-09 19:54:50 +00:00
Andi Gutmans
95f45d6c50
- Make all CVS users use the new virtual dir support.
...
Will probably disable this for the release.
2000-04-08 15:01:11 +00:00
Zeev Suraski
a0ba444959
Add a missing expand_filepath()
2000-04-07 22:10:04 +00:00
Zeev Suraski
12aae5ab66
- Fix const declaratirs in virtual cwd
...
@- Fixed a problem in include_once() with non constant arguments (Andi & Zeev,
@ Zend Engine)
2000-04-07 21:16:08 +00:00
Andi Gutmans
f118d94783
- This slipped in. Enable VIRTUAL_DIR when we're in ZTS. Eventually it
...
should always be enabled.
2000-04-07 10:26:28 +00:00
Andi Gutmans
89f99967b8
- Add wddx support to the default build
2000-04-07 10:21:17 +00:00
Zeev Suraski
3ba4105fde
Update the PHP logo
2000-04-05 21:41:38 +00:00
Andi Gutmans
49a34c6811
- Not needed anymore
2000-04-05 20:50:57 +00:00
Andi Gutmans
d7dc66bdbd
- More fixes
2000-04-05 20:49:51 +00:00
Andi Gutmans
e3bbb4bc6c
- Fix
2000-04-05 20:45:49 +00:00
Colin Viebrock
1ddc9ff852
Prettying up the output of phpinfo(). Someone has to tell me how
...
to get a new .gif logo in there, and why the ZEND_DEBUG output is
causing seg faults.
I also need to go through all the modules and fix up the output they
create.
2000-04-05 20:17:02 +00:00
Zeev Suraski
794f312176
Fix a problem with the virtual directory mechanism (corruption of the filenames to open)
2000-04-05 19:02:28 +00:00
Andi Gutmans
991f9ef9f4
- fopen and ZTS fixes
2000-04-03 17:40:44 +00:00
Zeev Suraski
69ff396312
*** empty log message ***
2000-04-02 22:15:14 +00:00
Zeev Suraski
18e0850ba1
@- Add $HTTP_POST_FILES[filename][tmp_name] - it was previously impossible to
...
@ retrieve the temporary name of an uploaded file using $HTTP_POST_FILES[] (Zeev)
- Changed IMAP Win32 definitions
2000-04-02 21:27:32 +00:00
Andi Gutmans
de0d354736
- Create dtor function
2000-04-02 20:26:06 +00:00
Andi Gutmans
d8e64d623e
- This version of chdir_file should be compatible with the Apache one.
2000-04-02 19:45:02 +00:00
Andi Gutmans
ce283e2326
- A bit more cleanups.
...
- Need to implement virtual_chdir_file() to replace chdir_file() in
sapi/apache so that we can start testing apache and debug it.
2000-04-02 19:28:25 +00:00
Andi Gutmans
6a2da70f94
- Virtual cwd compiles now (need to uncomment #define in php.h for it to
...
be enbaled right now).
It seems to work very basic stuff
2000-04-02 19:04:59 +00:00
Andi Gutmans
997e63993b
- Move to new Zend macros
2000-04-01 20:11:01 +00:00
Andi Gutmans
301f8feab4
- PHP_WIN32 is not defined here use ZEND_WIN32
2000-04-01 18:22:46 +00:00
Andi Gutmans
57b398af1f
- More virtual_cwd work
2000-04-01 18:21:03 +00:00
Andi Gutmans
a73ba4b238
- Make php_virtual_cwd compile
2000-04-01 18:11:08 +00:00
Andi Gutmans
effa5bb024
- Need zend.h for ZTS
2000-04-01 17:20:29 +00:00
Andi Gutmans
daf81344af
-
2000-04-01 17:08:03 +00:00
Andi Gutmans
8a4805c831
- Intermediate commit
2000-04-01 17:02:32 +00:00
Sascha Schumann
77688ff3b5
Up version number to 4.0RC2-dev. (4.0-dev looks too general for now.)
2000-04-01 14:39:14 +00:00
Zeev Suraski
53586378b0
@- Fix a problem when dealing with large POST blocks in CGI mode
2000-04-01 01:11:39 +00:00
Andi Gutmans
1bab18a00c
- This shouldn't do any harm and might fix a problem with Win32
2000-03-31 22:48:59 +00:00
Zeev Suraski
a82b3034b1
Several fixes, plus remove bindlib_w32 (it's more trouble than it's worth)
2000-03-31 19:46:35 +00:00
Andi Gutmans
9c3d6304dd
- Hopefully got most of them. We also need a chdir_file function like
...
for Apache.
2000-03-30 22:56:34 +00:00
Andi Gutmans
9df7df3293
- Baby steps... Use PHP_FOPEN()
2000-03-30 22:41:13 +00:00
Andi Gutmans
72b57c66f0
- Use PHP_CHDIR()
2000-03-30 22:39:29 +00:00
Andi Gutmans
f9547241d5
- Fix another bug in session.c
...
- Start using the new PHP_GETCWD() and co. macros
2000-03-30 22:38:50 +00:00
Sascha Schumann
f72bcaa648
kill warning
2000-03-30 17:55:50 +00:00
Zeev Suraski
88041c4fc7
@- Changed the Windows version of PHP so that a php.ini file is no
...
@ longer mandatory (Zeev)
2000-03-29 19:45:15 +00:00
Zeev Suraski
8c79054ad2
Package RC1
2000-03-26 19:18:59 +00:00
Zeev Suraski
863e6fd242
- Update dsp
...
- Remove unnecessary includes
2000-03-25 19:17:41 +00:00
Andi Gutmans
18e1e63e78
- Support getcwd() semantics.
...
- We need to change this whole business to work with ZTS globals
2000-03-25 16:28:16 +00:00
Andi Gutmans
5b2bad3825
- Nuke hash_*_ptr() functions
2000-03-24 11:16:24 +00:00
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