Commit Graph

16620 Commits

Author SHA1 Message Date
Wez Furlong
c484eb8c97 Fix segfault in wrapper error log mechanism when errors are logged on
second and subsequent events.
Implement very simple recursion protection for user streams written
like this:
class urlEncodeStream {
    var $fp = NULL;

    function stream_open($path, $mode, $options, &$opened_path)
    {
        $this->fp = fopen($path, $mode); // <-- this recurses infinitely
        return is_resource($this->fp);
    }
}

file_register_wrapper('urlencode', 'urlEncodeStream');
$fp = fopen('urlencode:///tmp/outputfile.txt', 'w');

Noticed by: Yasuo.
2002-09-26 12:12:27 +00:00
Jan Lehnardt
1f227cd2e3 - GLOB_NOMATCH and GLOB_NOESCAPE are only defined in win32/glob.h
- fixes build on FreeBSD 4.6
2002-09-26 11:19:26 +00:00
Tal Peer
372b1fae01 - Reverted back to old param parsing api (and eliminated a segfault by doing that)
- Added the CapRTL charset -- should be used for testing on machines without Hebrew/Arabic/Persian
 fonts
- Changed the note about deprecated behaviour from E_WARNING to E_NOTICE
2002-09-26 10:43:42 +00:00
Wez Furlong
4c2a9c091b Remove an unused variable and a now-unused function. 2002-09-26 10:17:41 +00:00
Wez Furlong
3a67c67737 Rename file_get_wrapper_data -> file_get_meta_data.
It now always returns useful information for all streams.
Unified that data with socket_get_status and made socket_get_status
an alias for file_get_meta_data.

Fix Location header following which was broken in this commit:
http://cvs.php.net/diff.php/php4/ext/standard/http_fopen_wrapper.c?r1=1.41&r2=1.42&ty=h
2002-09-26 10:14:41 +00:00
Yasuo Ohgaki
7d87babada Remove dup 2002-09-26 07:55:59 +00:00
Hartmut Holzgraefe
6daad95d11 temporarily giving some orphands a new home 2002-09-26 07:55:41 +00:00
Georg Richter
27cab17165 maintainers for the famous mysql extension 2002-09-26 07:45:06 +00:00
Markus Fischer
fa5910e77c - Add missing bug fixes.
# Please always add a NEWS entry for fixed bugs.
# The NEWS entry are added to http://php.net/ChangeLog-4.php after every
# released and the fixed bugs are auto(vi)matically linked to the BTS.
# So please also conform to the #<number> style (no one violated this, but
# just in case ;).
2002-09-26 07:38:02 +00:00
Sebastian Bergmann
f5426838f9 Fix ZTS build. Fix warning. 2002-09-26 07:30:16 +00:00
Hartmut Holzgraefe
1a2df34d9d fix windows build 2002-09-26 07:15:33 +00:00
Markus Fischer
0a9c94e4af - Merge url_rewriter.tags description from Sascha. 2002-09-26 07:05:17 +00:00
Sebastian Bergmann
d6e24f21f9 Sync MSVC project files. 2002-09-26 06:10:22 +00:00
Tal Peer
a77763facc - Initial commit 2002-09-26 05:47:56 +00:00
Wez Furlong
53e6def02b Note that the GD functions now also work with remote files. 2002-09-26 01:20:38 +00:00
Wez Furlong
1a87c6b5bf (PHP mb_convert_case) Add function that will convert the case of a string
Respecting it's encoding (or the internal encoding).
2002-09-26 00:53:47 +00:00
2f418a1fdb ChangeLog update 2002-09-26 00:35:59 +00:00
Hartmut Holzgraefe
0d815b5713 glob should now be ZTS/open_basedir/safe_mode aware (finally) 2002-09-26 00:27:52 +00:00
Hartmut Holzgraefe
419efa6eeb symbolic constants for fnmatch flags added 2002-09-26 00:27:13 +00:00
Yasuo Ohgaki
b437a23ada on -> On 2002-09-25 23:36:27 +00:00
Yasuo Ohgaki
a85ed54e88 Merge changes from php.ini-dist 2002-09-25 23:34:50 +00:00
Andrey Hristov
7badd563cb Test case for strspn()/strcspn(). 2002-09-25 19:08:38 +00:00
Andrey Hristov
f80a817f7c Added common handler for strspn() and strcspn(). Almost of the code is
identical. Modified to accept up to 4 params. Last 2 optional start & len.
They are analogic to start & len of substr(). So the behavior when start &
len are used is like
strspn(substr($s,$start,$len),$good_chars) and
strcspn(substr($s,$start,$len), $bad_chars)
2002-09-25 19:06:29 +00:00
Sascha Schumann
21adf62204 add note about url_rewriter.tags 2002-09-25 18:08:58 +00:00
Andrey Hristov
fc46a46b06 str_shuffle() function added. Like shuffle() for arrays - however the
algorithm for creating the permutation is quite simple. More like
the implementation of shuffle() for 4.2.1 .
2002-09-25 18:06:05 +00:00
Andrei Zmievski
c9b9e63ea3 *** empty log message *** 2002-09-25 17:48:10 +00:00
Martin Jansen
64a31beb6a * Fix bug #19269.
This patch makes popErrorHandling() pop the first _two_ elements
    from the error handler stack to prevent un-necessary memory
    consumption.

# Patch by: jrust (at) rustyparts (dot) com
2002-09-25 17:36:24 +00:00
Sterling Hughes
9368a91f6d add two extensions - and orphan them. 2002-09-25 17:07:12 +00:00
Stanislav Malyshev
3fb0dc7b05 Propmote API NO year, so that it will never be the same as ZE1 API NO 2002-09-25 16:54:04 +00:00
Sascha Schumann
6816ba4b32 We are about to enter 2003, sending two-digit years does not make too
much sense anymore.  According to an article from '98, only Netscape 3.x was
affected anyway.
2002-09-25 16:11:31 +00:00
Sascha Schumann
bc4253f73a style police 2002-09-25 16:06:40 +00:00
Wez Furlong
0141e97052 Make these all work with persistent streams too. 2002-09-25 15:46:47 +00:00
Wez Furlong
696e0a2301 Implement persistent streams. (for pfsockopen).
Juggle some includes/definitions.
Tidy up streams use in ext/standard/file.c
2002-09-25 15:25:12 +00:00
Sterling Hughes
8e635cf0bc if this makes people happier about me not working on these anymore, so be
it :)
2002-09-25 14:07:57 +00:00
Andrei Zmievski
27255d7419 Fix bug #17570. 2002-09-25 14:02:34 +00:00
Tal Peer
0c5538d077 - Update proto 2002-09-25 13:49:55 +00:00
Ilia Alshanetsky
7ae2196852 Fixed bugs #18167 & #16859 2002-09-25 13:26:03 +00:00
Sascha Schumann
03c07308d3 Improve error messages 2002-09-25 12:38:45 +00:00
Ilia Alshanetsky
322a24a526 prevent segv on Windows with negative localtime values. 2002-09-25 12:20:56 +00:00
Sascha Schumann
c57d419925 Sync 2002-09-25 12:15:42 +00:00
Sascha Schumann
41c0b43772 Allow - as part of an attribute
PR: #19573
2002-09-25 12:15:22 +00:00
Sascha Schumann
7af64ef531 Fix #13472 by making it possible to append the <input> stuff after
<fieldset> for xhtml compliance.
2002-09-25 11:06:24 +00:00
Sascha Schumann
91bbb302c1 Sync with .re 2002-09-25 10:36:19 +00:00
Sascha Schumann
3cadecec1b Allow malformed HTML such as
<a onClick=window.open("/hardware/somevar.php?hinfoid=","chgti") ..>

where ["'] are part of the attribute value.
2002-09-25 10:35:28 +00:00
c8114d7f31 ChangeLog update 2002-09-25 00:36:04 +00:00
Andi Gutmans
974b502199 - Fix leak 2002-09-24 19:32:01 +00:00
Andi Gutmans
f78fa50423 - Megapatch to try and support inheritance from sub-classes. Things might
- be *very* buggy now so don't get too upset if that happens.
- I still need to improve some stuff but it's a good step (hopefully).
2002-09-24 19:05:53 +00:00
Ilia Alshanetsky
f91b3d5c6d Fixed bug #17957 2002-09-24 16:34:54 +00:00
Zeev Suraski
5f1bffe0cd Fix indirection 2002-09-24 10:55:56 +00:00
Wez Furlong
a12423f959 Fix for #19570: last character in translation table is omitted. 2002-09-24 10:05:45 +00:00