Zeev Suraski
b8a990ace7
Fix report_memleaks
2004-02-10 17:55:32 +00:00
Zeev Suraski
f069be85bf
Whitespace
2004-02-10 17:44:18 +00:00
Ilia Alshanetsky
e8beeecf3e
Fixed bug #26653 (open_basedir incorrectly resolved on win32).
2004-02-10 16:08:54 +00:00
Ilia Alshanetsky
ec09b090f9
Fixed bug #27175 (tzset() is not being called by PHP on startup).
2004-02-09 04:04:24 +00:00
Wez Furlong
a44838e8a3
Fix a bug in the persistent socket liveness checks and feof(); they were
...
using the default socket timeout of 60 seconds before returning the socket
to the calling script. The reason they were using that value is that the
same code is used for feof(), so the fix is allowing the caller to
indicate the timeout value for liveness checks.
A possible remaining issue now is that 0 second timeout[1] for pfsockopen
is possibly too short; it's impossible to specify a sane value for all
possible uses, so maybe we need a stream context or an .ini option to
control this, or maybe use the timeout value that was passed to
pfsockopen().
# [1] by timeout, I mean the time that PHP will wait for data on a
# persistent socket before deciding if a new connection should be made;
# NOT the timeout while waiting for a new connection to be established.
2004-02-04 22:46:44 +00:00
Sara Golemon
a172481869
This should not have been an INI_ALL directive.
2004-01-29 00:08:21 +00:00
Sara Golemon
6d10371ec6
'Bug Fix': scandir, being a new function in PHP5 should have always been wrapper aware.
2004-01-28 22:21:54 +00:00
Wez Furlong
e1ae61802b
Fix segfault for scripts like this:
...
<?php
pfsockopen("foo");
pfsockopen("foo");
?>
Where the transport fails to connect (since args are bogus);
the problem was that the persistent stream entry was not
correctly freed.
2004-01-27 22:40:44 +00:00
Ilia Alshanetsky
4cc62a06f6
Removed unused variable.
2004-01-27 03:20:35 +00:00
foobar
e3c80d52da
- Remove gpc_order since it doesn't serve any purpose.
2004-01-26 04:15:08 +00:00
Hartmut Holzgraefe
234e8a76c4
stream_lock() method added to userspace streams wrapper
2004-01-21 10:17:12 +00:00
Ilia Alshanetsky
eb3ff409b0
Fixed bug #26974 (rename() doesn't check the destination file
...
against safe_mode/open_basedir).
2004-01-21 02:28:50 +00:00
Marcus Boerger
61fc2a9209
Add missing macro
...
# by popular demand, more and more exts need this
2004-01-12 00:19:40 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
be5670af2b
Fixed bug #26707 (Incorrect error for disabled functions/classes).
2003-12-24 16:38:22 +00:00
Derick Rethans
0041a5798b
- Fix version number so that people are not mistaking our development
...
version for RC1.
2003-12-21 18:57:59 +00:00
Zeev Suraski
6ac233f975
B3 here we go (away)
2003-12-21 18:30:57 +00:00
Zeev Suraski
bb531436c8
B3 here we come
2003-12-21 18:26:29 +00:00
Andi Gutmans
d53caa9618
- Make the world a better place.
...
- Will roll b3 tomorrow.
2003-12-20 21:27:49 +00:00
Wez Furlong
ab11c8c5ba
MFB fix for #25597
2003-12-20 20:25:55 +00:00
Andi Gutmans
e7bdc15148
- Prepare for RC2
2003-12-19 13:36:38 +00:00
Wez Furlong
12b0501f55
Counteract brain-death in Apache headers
...
(they #define strtoul to something that will break compilation,
and it successfully breaks the win32 IPv6 headers)
2003-12-18 11:26:00 +00:00
Andi Gutmans
3573c13552
Roll RC1 of B3
2003-12-17 20:20:34 +00:00
Ilia Alshanetsky
1128955aa4
Fixed compiler warnings.
2003-12-14 18:23:15 +00:00
Sara Golemon
822ea95785
Export STREAM_MKDIR_RECURSIVE constant
2003-12-13 23:13:51 +00:00
Sara Golemon
a67bf6ecc9
Fix Win32 Build. mkdir/rmdir are macros
2003-12-13 18:48:39 +00:00
Sara Golemon
c56647833b
Route mkdir()/rmdir() via wrapper ops.
...
Move current rmdir()/rmdir() code to plain_wrappers.c
Implement mkdir()/rmdir() in ftp:// wrapper
2003-12-13 04:07:18 +00:00
Sara Golemon
b1f8236b63
Route rename() via wrapper ops.
...
Move current rename() code to main/streams/plain_wrapper.c
Implement ftp/rename()
Implement userstreams/rename()
2003-12-12 23:06:42 +00:00
Marcus Boerger
2f9be5d518
Do not use before they are initialized.
2003-12-12 08:25:22 +00:00
Marcus Boerger
2c7c86bc60
Add some comments here
2003-12-12 07:59:46 +00:00
foobar
a08c1e4dce
- Brought ext/bcmath to the new millennium
...
# consistency..
2003-12-09 23:59:33 +00:00
foobar
63df219b31
- Update header + added missing Id tags.
2003-12-09 16:29:54 +00:00
Derick Rethans
8eb22d7b8d
- Add comment, I put this ina week ago and it already confused me :)
2003-12-07 14:47:35 +00:00
Wez Furlong
fcdda2e8f8
Fix a problem resolving the php.ini path under win32 terminal services environment.
...
Remove config-file-path option from configure under win32; it is not used except to display what might have been chosen, so lets default to the getenv() thingy.
2003-12-06 16:04:34 +00:00
Wez Furlong
6b679cd6ef
fix ipv6 stuff under vc6
2003-12-06 10:32:35 +00:00
Wez Furlong
dbb152b96a
Detect and enable IPv6 support under win32.
...
The ws2tcpip.h header links to IPv6 functions dynamically
and the generated binary will run on win98 and later.
2003-12-06 00:00:31 +00:00
Wez Furlong
ab0029cabf
Be smarter about which systems should register unix transports.
...
Fix skip conditions in these network tests
2003-12-05 13:41:02 +00:00
Moriyoshi Koizumi
50dad38cd4
Fix libexpat build.
...
Improve replaceEntities patch.
2003-12-05 10:11:06 +00:00
Wez Furlong
35117fdf1b
default install path is c:/php5 for PHP 5
2003-12-04 01:40:59 +00:00
Wez Furlong
5e4eac57bd
Export these so that ftp extension can be build as shared ext.
2003-12-02 23:13:43 +00:00
Sara Golemon
dacb3a68fe
Register url_stat flag constants in userspace
2003-12-02 20:06:40 +00:00
Sara Golemon
1aaf7da2ce
Populate userstream objects with context property
2003-12-02 19:14:31 +00:00
Sara Golemon
88ccc6a630
Update userspace/url_stat proto
2003-12-02 18:52:58 +00:00
Wez Furlong
da9093be3a
this can't be persistent
2003-12-02 16:35:19 +00:00
Sara Golemon
dbfe62117b
CS
2003-12-02 01:04:14 +00:00
Sara Golemon
681d18effd
Move safemode/basedir checks for url_stat to plain_wrapper.
2003-12-01 19:47:05 +00:00
Derick Rethans
74eed61504
- Fix the default SAPI filter too; all weird problems should be gone again.
2003-12-01 19:25:07 +00:00
foobar
91b7cc2079
- Moved ext/db to PECL.
...
# Derick copied the sources in CVS repository to preserve CVS log.
2003-12-01 10:47:08 +00:00
Derick Rethans
630e1692d6
- Fixed standard wrapper for input filter.
2003-11-30 20:07:58 +00:00
Ilia Alshanetsky
c344754d48
Removed unused variables.
2003-11-30 19:43:30 +00:00
Wez Furlong
dd60413c61
implement usleep for win32
2003-11-29 22:48:42 +00:00
Wez Furlong
37f135ceef
Add stream_socket_sendto and stream_socket_recvfrom which work very much
...
like sendto() and recvfrom() syscalls.
2003-11-29 21:46:50 +00:00
Derick Rethans
750b0338bf
- Fix sapi_input_filter patch. Returning 1 from the filter handler should
...
make PHP register the variable, returning 0 shouldn't. The new length of
the variables being filtered is now returned in the new_val_len argument
of the function.
2003-11-29 15:24:35 +00:00
Sara Golemon
026d4c9e4c
Route php_stat() via streams/url_stat API (php_stream_stat_path).
...
This enables fopen-wrappers support on stat() and related family calls.
2003-11-28 23:25:28 +00:00
Wez Furlong
6d86bb9e40
(sort of) MFB, feof fix for sockets.
2003-11-28 23:20:23 +00:00
Ilia Alshanetsky
baced1d63d
Fixed a memory leak.
2003-11-28 00:00:28 +00:00
Wez Furlong
3ee72aa5be
port "liveness" checks and a couple of other things from the 4.3 branch.
...
Liveness checks are used to validate persistent socket connects when they
are re-used.
2003-11-27 17:39:01 +00:00
Derick Rethans
370dfd39a9
- Prevent registration of the variable when a zero-length is returned
...
from the sapi_input_filter.
2003-11-26 09:53:22 +00:00
Sara Golemon
0831f2b03a
Fix for file:// wrapper parsing.
...
(Cristiano Duarte <cunha17@uol.com.br>)
2003-11-23 17:35:00 +00:00
Stefan Esser
28b6c35d80
On error do not leave content_type_dup unitialised.
2003-11-22 21:10:47 +00:00
Andi Gutmans
2fefe6148b
- Commit patch by standards
2003-11-19 06:11:47 +00:00
Edin Kadribasic
45f12cc61f
Windows compile fix (patch by sfox@php.net).
2003-11-13 10:32:05 +00:00
Stefan Esser
befbd6d793
Fix odd increments to repair the boundary checks.
2003-11-12 22:34:58 +00:00
Rui Hirokawa
744212ab45
added buffer reallocation for filename.
2003-11-05 23:27:41 +00:00
Derick Rethans
3ab8d263b8
- Always store the URI path in the streams structure, and expose it with
...
stream_get_meta_data().
2003-11-03 14:12:46 +00:00
Stefan Esser
b763dd42c3
Fixed possible crashbug.
2003-11-03 11:46:33 +00:00
Stefan Esser
f670f9c683
It is usually a good idea to write only into allocated bufferspace.
2003-11-03 09:16:24 +00:00
foobar
9e0da5e741
Next is beta3..
2003-10-30 15:14:31 +00:00
Andi Gutmans
b72364ccc1
- Beta 2
2003-10-30 10:00:44 +00:00
Sara Golemon
495fd01ca4
Stop looking once we've found a matching filter.
2003-10-28 23:29:16 +00:00
Sara Golemon
c9b49af990
Extend Filter matching to check wildcards at multiple levels.
...
Ex: foo.bar.baz.bomb
Searches:
foo.bar.baz.bomb itself,
foo.bar.baz.*,
foo.bar.*, and
foo.*
Also changed tempvar "char wildcard[128];" to an estrdup() to
deal with potential filternames longer than 127 bytes.
2003-10-28 21:52:59 +00:00
Rui Hirokawa
0ce637835a
name/value in multipart/form-date will be converted into internal encoding when mbstring.encoding_translation is On.
2003-10-22 14:14:05 +00:00
Marcus Boerger
2c454d7a1f
Bugfix #25930 Can't compile snprintf.c
2003-10-21 07:36:43 +00:00
Ilia Alshanetsky
24793840b2
Fixed unused variable warning on *nix.
2003-10-20 02:21:25 +00:00
Shane Caraveo
399095e7a5
Add libxml extension for common code that is needed to be shared between
...
various xml extensions. currently the only implemented support is the
addition of the streams support for libxml. One new function,
libxml_set_streams_context, which allows a streams context to bet set
prior to loading or writing documents. This works transparently with any
extension that uses libxml. All ini settings that effect streams will
also now effect the loading and writing of xml documents.
TODO: linux support, not sure if config.m4 will work right.
2003-10-19 21:48:46 +00:00
Shane Caraveo
3a6ff32e2b
finish file uri support, this stuff was unecessary.
2003-10-19 21:19:54 +00:00
Shane Caraveo
2a41429472
A simpler patch to add file uri support
2003-10-19 20:59:12 +00:00
Shane Caraveo
0029a45795
revert file: support in preparation for simpler patch
2003-10-19 20:57:20 +00:00
Shane Caraveo
e5103d764a
make file uri's work with streams
2003-10-19 20:04:33 +00:00
Stanislav Malyshev
06aae4bd9c
Enable setting php.ini path via the registry
2003-10-19 10:39:27 +00:00
Ilia Alshanetsky
3c84c0eefc
Fixed bug #25836 (last key of multi-dimensional array passed via GPC
...
not being escaped when magic_quotes_gpc is on).
2003-10-14 03:49:13 +00:00
Ilia Alshanetsky
639216a4aa
Fixed bug #25746 (Do not bail out when unable to chdir original dir on
...
systems with broken getcwd()).
2003-10-09 02:58:34 +00:00
Wez Furlong
590b3ccc79
Set the EOF indicator after each read attempt.
...
This prevents it getting stuck in the on position.
2003-10-08 10:55:51 +00:00
Stanislav Malyshev
dd7bdcf4b1
Fix $_SERVER['argv'] and $_SERVER['argc']
2003-10-07 08:46:16 +00:00
Moriyoshi Koizumi
921e5b47c5
Fix fgetcsv() to correctly support international characters
...
# note: mblen() is not a mbstring function, but is part of the ANSI standard
# which is even supported by Microsoft's libc.
2003-10-04 02:51:19 +00:00
Andrei Zmievski
b3920d5012
Made the $argc and $argv always available as globals in CLI, and not as
...
$_SERVER vars which depended on variables_order anyway. No more
silliness.
2003-10-01 23:11:59 +00:00
Ilia Alshanetsky
6ac36d1a00
More NaN & INF handling fixes.
2003-09-29 23:44:07 +00:00
Ilia Alshanetsky
7356a9b312
Fixed Bug #25665 (var_dump() hangs on Nan and INF).
2003-09-29 01:07:55 +00:00
Hartmut Holzgraefe
075e66cc08
signed/unsigned compiler warning fixes
2003-09-26 08:09:56 +00:00
Ilia Alshanetsky
102a5cadfd
Fixed bug #25293 (Output correct EOL to error_log)
2003-09-24 23:20:48 +00:00
foobar
04a575389f
Removed unnecessary ssl.h include
2003-09-23 16:04:03 +00:00
Ilia Alshanetsky
855015ecd0
When track_errors was enabled, we tried to assign value already freed char.
2003-09-18 00:04:57 +00:00
Marcus Boerger
9f329adb02
Add length modifier L
2003-09-14 09:50:36 +00:00
Marcus Boerger
9b98e42f35
- Add length modifiers(ll, j, t, h, hh)
...
# Still missing formats (%a, %A)
# Still missing modifier (l) in (%lc, %ls)
# Still missing modifier (L) in (%La, %LA, %Le, %LE, %Lf, %LF, %Lg, %LG)
# C99 requires any conversion to be able to produce at least 4095
# characters. Implementation only allows less then 512.
#
# Only inside ext/mbstring etc. we could use %lc and %ls. And none of the
# rest should affect us until we stay with double and avoid long double.
2003-09-14 09:12:54 +00:00
Marcus Boerger
3cf2d2f108
Show the whole message when in debug mode
2003-09-13 19:56:38 +00:00
Ard Biesheuvel
f940b0fe3c
Pointer size fix
2003-09-13 19:43:39 +00:00
Marcus Boerger
af574b9699
- Fix %p to prepend '0x' as suggested by C99.
...
- Add 'z' prefix.
# Now you can use '%zd' in [v]spprintf() and everything that utilizes it
# like error messages BUT you still cannot rely on it in [v]s[n]printf()
# calls.
2003-09-13 16:49:24 +00:00
Ard Biesheuvel
6f37733367
Fixed for 64bit archs
2003-09-13 15:27:09 +00:00
Ilia Alshanetsky
ef23b497d4
Fixed bug #25316 (Possible infinite loop inside _php_stream_write()).
2003-09-11 05:07:26 +00:00