History log of /PHP_5_3/ext/standard/php_string.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a2045ff 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year~
/PHP_5_3/ext/standard/php_string.h
e4ca0ed 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/PHP_5_3/ext/standard/php_string.h
927bf09 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/PHP_5_3/ext/standard/php_string.h
9ba1e81 03-Jan-2010 Sebastian Bergmann <sebastian@php.net> sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
/PHP_5_3/ext/standard/php_string.h
e52517d 13-Aug-2009 Stanislav Malyshev <stas@php.net> standardise and clean up string functions parameter parsing
/PHP_5_3/ext/standard/php_string.h
c27bf17 01-Apr-2009 Matt Wilmas <mattwil@php.net> MFH: explode() stuff:
- Fixed bug #47560 (explode()'s limit parameter odd behaviour) by reverting change for bug #47546
- Changed int to long where needed (should fix memory errors from overflow seen in bug #47854)
- Simplified logic a bit with limit and its default value
- php_explode_negative_limit(): removed safe_emalloc (not needed; plain erealloc is used later)
- Moved declarations/allocation to optimize if the delimiter isn't found
- Changed ALLOC_STEP size for less realloc's (and maybe better memory block alignment?)
/PHP_5_3/ext/standard/php_string.h
08659c2 31-Dec-2008 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 3 of 3.
/PHP_5_3/ext/standard/php_string.h
8f12025 02-Nov-2008 Felipe Pena <felipe@php.net> - MFH: Added str_getcsv()
/PHP_5_3/ext/standard/php_string.h
a3c09d6 19-Jan-2008 David Coallier <davidc@php.net> - MFH (lcfirst())
- Initial test for lcfirst
/PHP_5_3/ext/standard/php_string.h
d1dded8 31-Dec-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 2 of 2.
/PHP_5_3/ext/standard/php_string.h
4223aa4 01-Jan-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump year.
/PHP_5_3/ext/standard/php_string.h
090e14d 18-Dec-2006 Ilia Alshanetsky <iliaa@php.net> Less hackish support for spaces at the start of tags within strip_tags()
/PHP_5_3/ext/standard/php_string.h
914d362 28-Aug-2006 Ilia Alshanetsky <iliaa@php.net> Adjust code to avoid TSRMLS_FETCH
/PHP_5_3/ext/standard/php_string.h
5bd9322 01-Jan-2006 foobar <sniper@php.net> bump year and license version
/PHP_5_3/ext/standard/php_string.h
d0a54af 05-Dec-2005 foobar <sniper@php.net> MFH: Nuke php3 legacy
/PHP_5_3/ext/standard/php_string.h
23e671a 03-Aug-2005 foobar <sniper@php.net> - Bumber up year
/PHP_5_3/ext/standard/php_string.h
156a908 31-May-2005 foobar <sniper@php.net> - Fixed bug #33200 (preg_replace(): magic_quotes_sybase=On makes 'e' modifier misbehave)
/PHP_5_3/ext/standard/php_string.h
59651c4 03-Nov-2004 Derick Rethans <derick@php.net> - Fixed bug #30630: Added a BSD based strtod function that is
locale-independent. (PHP part)
/PHP_5_3/ext/standard/php_string.h
ccfc46b 08-Jan-2004 foobar <sniper@php.net> - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
/PHP_5_3/ext/standard/php_string.h
56f046a 10-Dec-2003 Ilia Alshanetsky <iliaa@php.net> Fixed ZTS build.
/PHP_5_3/ext/standard/php_string.h
b2cd08f 10-Dec-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fix bug #26574 (basename() doesn't work properly with multibyte characters)
/PHP_5_3/ext/standard/php_string.h
35c3a7f 10-Dec-2003 Moriyoshi Koizumi <moriyoshi@php.net> Expose the macro globally
/PHP_5_3/ext/standard/php_string.h
ab7ee13 30-Oct-2003 Ilia Alshanetsky <iliaa@php.net> Added substr_compare().
/PHP_5_3/ext/standard/php_string.h
3caa0d0 25-Jul-2003 Sara Golemon <pollita@php.net> Fix Bug#24784 single character search keys not respecting case sensitivity/replace count parameters.
/PHP_5_3/ext/standard/php_string.h
f68c7ff 10-Jun-2003 James Cox <imajes@php.net> updating license information in the headers.
/PHP_5_3/ext/standard/php_string.h
e6490c4 05-May-2003 Hartmut Holzgraefe <hholzgra@php.net> basename() now binary safe, testcases added
/PHP_5_3/ext/standard/php_string.h
9103aac 13-Apr-2003 Sara Golemon <pollita@php.net> Modify str_replace/str_ireplace to report how many needles were matched. (FR #8218)
/PHP_5_3/ext/standard/php_string.h
560efa1 12-Apr-2003 Moriyoshi Koizumi <moriyoshi@php.net> Forgot about this one :)
/PHP_5_3/ext/standard/php_string.h
b18542b 08-Apr-2003 Andrei Zmievski <andrei@php.net> Remove php_memnstr (it's in ZE now).
/PHP_5_3/ext/standard/php_string.h
0e6fca4 18-Mar-2003 Stig Bakken <ssb@php.net> * email address change
/PHP_5_3/ext/standard/php_string.h
385a809 24-Feb-2003 Moriyoshi Koizumi <moriyoshi@php.net> Made strip_tags() binary safe
/PHP_5_3/ext/standard/php_string.h
53f96c8 11-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Added strpbrk(), which is essentially a wrapper around C's strpbrk function
that allows searching through a string for a character list.
/PHP_5_3/ext/standard/php_string.h
67b19b0 07-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Added str_split() function. This function can be used to break down a
string into an array.
/PHP_5_3/ext/standard/php_string.h
37ff989 30-Jan-2003 Sara Golemon <pollita@php.net> Feature Request # 5919 - Addition of str_ireplace()
Also removed deprecated BM str replace menthod
Also rewrote php_str_to_str to use more processor/memory efficient method (ilia)
/PHP_5_3/ext/standard/php_string.h
e6170c0 29-Jan-2003 Ilia Alshanetsky <iliaa@php.net> Added part of strpos commit that never made it in for some reason.

# Thanks Pollita.
/PHP_5_3/ext/standard/php_string.h
f58628c 01-Jan-2003 Wez Furlong <wez@php.net> Move rot13 filter into a new filters.c source file.
Tidy up some other filter related code.

# win32 -> someone please add user_filters.c and filters.c to the .dsp
/PHP_5_3/ext/standard/php_string.h
b506f5c 31-Dec-2002 Sebastian Bergmann <sebastian@php.net> Bump year.
/PHP_5_3/ext/standard/php_string.h
30c16ba 17-Oct-2002 Ilia Alshanetsky <iliaa@php.net> Renamed word_count to str_word_count to comply with naming conventions.
Thanks Andi, for catching this oversight.
/PHP_5_3/ext/standard/php_string.h
47b57f2 17-Oct-2002 Ilia Alshanetsky <iliaa@php.net> Added word_count() function that allows counting of words inside a string.
The function also allows the user to retrieve all the words from a string.
/PHP_5_3/ext/standard/php_string.h
b7917de 11-Oct-2002 Ilia Alshanetsky <iliaa@php.net> Fixed bug #19865
/PHP_5_3/ext/standard/php_string.h
a75eb9c 09-Oct-2002 Ilia Alshanetsky <iliaa@php.net> Optimizations to various php string functions substr_count(), strrev(),
nl2br(), php_addslashes() and php_memnstr().
/PHP_5_3/ext/standard/php_string.h
fc46a46 25-Sep-2002 Andrey Hristov <andrey@php.net> 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 .
/PHP_5_3/ext/standard/php_string.h
9d348ea 20-Aug-2002 Wez Furlong <wez@php.net> Implement filter API for streams.

Filters can be stacked onto a stream; more details will follow in docs and
on php-dev.

Implement "string.rot13" filter

Allows the following script:

$fp = fopen("file.txt", "r");
stream_filter_prepend($fp, "string.rot13");

// File contents will be subject to a rot13 transformation before
// being output.
fpassthru($fp);
fclose($fp);
/PHP_5_3/ext/standard/php_string.h
e5fa36e 02-Aug-2002 Hartmut Holzgraefe <hholzgra@php.net> added money_format() function
this is similar to C-libs strfmon(), using the same format string
semantics but a different function prototype, so i decided to
give it a more speaking name similar to number_format()
/PHP_5_3/ext/standard/php_string.h
2f8dc7a 13-Jul-2002 foobar <sniper@php.net> - Made the trim functions use same base function. (less code :)
- Renamed php_trim2 -> php_trim (not used anyplace else, yet)
- Made php_trim abit more usable for external use. (not necessary to use
zvals with it anymore)
/PHP_5_3/ext/standard/php_string.h
fd34806 03-Jul-2002 Frank M. Kromann <fmk@php.net> Adding missing prototype
/PHP_5_3/ext/standard/php_string.h
3dbde95 20-Mar-2002 Wez Furlong <wez@php.net> Make state parameter of php_strip_tags passed by reference.
Move state tracking to stream structure.
/PHP_5_3/ext/standard/php_string.h
90613d2 28-Feb-2002 Sebastian Bergmann <sebastian@php.net> Maintain headers.
/PHP_5_3/ext/standard/php_string.h
3893351 11-Dec-2001 Sebastian Bergmann <sebastian@php.net> Update headers.
/PHP_5_3/ext/standard/php_string.h
f61dfce 23-Sep-2001 Jeroen van Wolffelaar <jeroen@php.net> Make chop the alias and rtrim the main function, in order to get automagically
generated alias-listings correct.
/PHP_5_3/ext/standard/php_string.h
61d4f7f 09-Sep-2001 Derick Rethans <derick@php.net> - Really fix nl2br now... it's actaulyl faster now
/PHP_5_3/ext/standard/php_string.h
536c969 04-Sep-2001 Sterling Hughes <sterling@php.net> update php_trim as well...
/PHP_5_3/ext/standard/php_string.h
c661449 04-Sep-2001 Sterling Hughes <sterling@php.net> fix crash bug
/PHP_5_3/ext/standard/php_string.h
c0404f4 11-Aug-2001 Zeev Suraski <zeev@php.net> Whitespace
/PHP_5_3/ext/standard/php_string.h
c4555f9 07-Aug-2001 Andrei Zmievski <andrei@php.net> @- Added vprintf() and vsprintf() functions that allow passing all arguments
@ after format as an array. (Andrei)
/PHP_5_3/ext/standard/php_string.h
23b9300 06-Aug-2001 Sascha Schumann <sas@php.net> more tsrm cleanup
/PHP_5_3/ext/standard/php_string.h
b4f31ec 05-Aug-2001 Sebastian Bergmann <sebastian@php.net> Fix ZTS build.
/PHP_5_3/ext/standard/php_string.h
2e6850a 05-Aug-2001 Jeroen van Wolffelaar <jeroen@php.net> Added proto for php_charmask in the .h
/PHP_5_3/ext/standard/php_string.h
ea79632 04-Aug-2001 Sebastian Bergmann <sbergmann@php.net> Fix Win32 (and maybe other ZTS) builds.
/PHP_5_3/ext/standard/php_string.h
f0bcaf3 03-Aug-2001 Jeroen van Wolffelaar <jeroen@php.net> Un-revert patch
/PHP_5_3/ext/standard/php_string.h
f6979a7 03-Aug-2001 Jeroen van Wolffelaar <jeroen@php.net> Reverting last patch, segfaults.
/PHP_5_3/ext/standard/php_string.h
c2150f7 03-Aug-2001 Jeroen van Wolffelaar <jeroen@php.net> - Added new parameter to [l|r]trim, to specify _what_ to trim
@- Added optional second parameter to trim, chop and ltrim. You can
@ now specify which characters to trim (jeroen)
/PHP_5_3/ext/standard/php_string.h
09ce807 21-Jul-2001 Sascha Schumann <sas@php.net> Drop memchr() in php_memnstr in favor of manual scanning. This reduces
the complexity of the function and is about 20% faster on Linux/x86.
/PHP_5_3/ext/standard/php_string.h
f1364eb 04-Jul-2001 Wez Furlong <wez@php.net> (PHP nl_langinfo) Added function when provided by OS
(PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset
@- Added nl_langinfo() (when OS provides it) that returns locale
information. (Wez Furlong)
# There are a lot of constants used by nl_langinfo; should we do something
# along the lines of what we do for syslog?
/PHP_5_3/ext/standard/php_string.h
045acaf 23-Jun-2001 Hartmut Holzgraefe <hholzgra@php.net> @added optional suffix removal parameter to basename() (Hartmut)
added optional suffix removal parameter to basename()
this makes it more simmilar to the basename command
/PHP_5_3/ext/standard/php_string.h
3b8140e 17-Mar-2001 Stephen van Egmond <svanegmond@php.net> fixed a (C++) warning about implicit conversion from void*
/PHP_5_3/ext/standard/php_string.h
eb6ba01 26-Feb-2001 Andi Gutmans <andi@php.net> - Fix copyright notices with 2001
/PHP_5_3/ext/standard/php_string.h
457888a 17-Jan-2001 Sean Bright <elixer@php.net> Put these back where they belong. They weren't necessary unless ZTS and
HAVE_LOCALECONV were both defined.
/PHP_5_3/ext/standard/php_string.h
a588d65 17-Jan-2001 Sean Bright <elixer@php.net> Added string comparison function strcoll(). It uses the current locale to
do the comparisons.
@- Added localeconv() and strcoll() functions for localization. (Sean)
/PHP_5_3/ext/standard/php_string.h
0592feb 15-Jan-2001 Zeev Suraski <zeev@php.net> Nuke a couple of warnings
/PHP_5_3/ext/standard/php_string.h
40f3524 14-Jan-2001 Sean Bright <elixer@php.net> Added localeconv() function. Operates similarly to localeconv() defined in
locale.h. Should work well under non-ZTS as well as ZTS.
/PHP_5_3/ext/standard/php_string.h
0afcb03 09-Jan-2001 Rui Hirokawa <hirokawa@php.net> added iconv extension.
/PHP_5_3/ext/standard/php_string.h
6368933 08-Jan-2001 Rui Hirokawa <hirokawa@php.net> added iconv_set_encoding() to change the encoding setting.
/PHP_5_3/ext/standard/php_string.h
517b81a 08-Jan-2001 Rui Hirokawa <hirokawa@php.net> added a output handler function ob_iconv_handler which tranforms output encoding using iconv().
/PHP_5_3/ext/standard/php_string.h
6e1e78d 15-Dec-2000 Stig Bakken <ssb@php.net> @Added iconv() function (using libc or libiconv) (Stig)
/PHP_5_3/ext/standard/php_string.h
1cc3e6b 27-Sep-2000 Sascha Schumann <sas@php.net> Move php_memnstr to the header file, so that the function body is available
in all compilation units (note the static linkage).
/PHP_5_3/ext/standard/php_string.h
0b9a78c 10-Sep-2000 Sterling Hughes <sterling@php.net> @- Added the pathinfo() function. (Sterling)
/PHP_5_3/ext/standard/php_string.h
83513d9 24-Jul-2000 David Croft <david@php.net> 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.
/PHP_5_3/ext/standard/php_string.h
8dd1fdb 22-Jul-2000 David Croft <david@php.net> wordwrap function from Chris Russel <russel@yorku.ca>
differences from his patch:
- wordwrap width and wrap-string now optional parameters
(default to 75 and "\n" respectively)
- wordwrap_byte is now just an automatic special case of wordwrap
- Zend API compliant

@- Added new function "wordwrap" to wordwrap long strings from Chris
@ Russel <russel@yorku.ca> (David Croft)
/PHP_5_3/ext/standard/php_string.h
885e40d 08-Jul-2000 Andrei Zmievski <andrei@php.net> @- Updated str_pad() to be able to pad on left/right/both sides. (Andrei)
/PHP_5_3/ext/standard/php_string.h
cd754d7 03-Jul-2000 Sascha Schumann <sas@php.net> Rename macros which begin with underscore to appropiate macros. The general
rule is:

macro_name=`echo $filename|tr a-z A-Z|sed 's/\./_/'`
/PHP_5_3/ext/standard/php_string.h
b928bdc 06-Jun-2000 Andrei Zmievski <andrei@php.net> @- Added str_pad() for padding a string with an arbitrary string on left or
@ right. (Andrei)

Added str_pad() for padding a string with an arbitrary string on left or right.

# With all those macros, the code is starting to eerily resemble Perl's guts.
/PHP_5_3/ext/standard/php_string.h
0b7fd17 06-Jun-2000 Clayton Collie <ccollie@php.net> Added sscanf() function.
/PHP_5_3/ext/standard/php_string.h
e191baa 24-May-2000 Hartmut Holzgraefe <hholzgra@php.net> php_basename() prototype changed according to latest changes in string.c
/PHP_5_3/ext/standard/php_string.h
7182e72 23-May-2000 Rasmus Lerdorf <rasmus@php.net> Need a PHPAPI version of basename for some stuff I am working on.
Also fixed a bug along the way in the basename function. If it
was fed something like "filename.ext/////" it would return the string
with all the slashes whereas if you fed it "/path/filename.ext////" it
would get it right.
@ Fixed basename() bug where "file.ext///" would not return the same
@ as "/path/file.ext///" (Rasmus)
/PHP_5_3/ext/standard/php_string.h
4571d8d 23-May-2000 Hartmut Holzgraefe <hholzgra@php.net> name changed from levdist() to levenshtein()
(although i bet we'll get a levenstein() alias some day)
/PHP_5_3/ext/standard/php_string.h
0eb5110 23-May-2000 Hartmut Holzgraefe <hholzgra@php.net> added function "int levdist(string str1, string str2)"
that will calculate the Levenshtein distance between two
strings (faster and possibly more accurate than similar_text())
/PHP_5_3/ext/standard/php_string.h
78cec9f 23-May-2000 Hartmut Holzgraefe <hholzgra@php.net> again (due to feature request in bug id #3251)
added optional 3rd parameter 'limit' to explode() as in split()
/PHP_5_3/ext/standard/php_string.h
eb7979a 20-May-2000 Hartmut Holzgraefe <hholzgra@php.net> patch to explode (bug id #3251) suspended till 4.0.1
/PHP_5_3/ext/standard/php_string.h
af77bc0 19-May-2000 Hartmut Holzgraefe <hholzgra@php.net> added optional 3rd parameter 'limit' to explode() as in split()
(due to feature request in bug id #3251)
/PHP_5_3/ext/standard/php_string.h
5c5ec88 26-Apr-2000 Andrei Zmievski <andrei@php.net> @Added substr_count() from Peter Kovacs. (Andrei)
# also some todo stuff
/PHP_5_3/ext/standard/php_string.h
c7100c4 12-Apr-2000 Andrei Zmievski <andrei@php.net> Added natural comparison/sorting routines using code from Martin Pool.

@- Added natural comparison/sorting routines strnatcmp(), strnatcasecmp(),
@ natsort(), and natcasesort(). These are useful for comparing and sorting
@ strings that contain numbers. Based on the code from Martin Pool
@ <mbp@humbug.org.au>. See http://www.linuxcare.com.au/projects/natsort/
@ for more info on natural sorting. (Andrei)
/PHP_5_3/ext/standard/php_string.h
6d0ab61 10-Feb-2000 Zeev Suraski <zeev@php.net> 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
/PHP_5_3/ext/standard/php_string.h
2460569 08-Feb-2000 Zeev Suraski <zeev@php.net> Change string->str where possible; string is basic a C++ class, so gdb can't look
inside variables named 'string'.
/PHP_5_3/ext/standard/php_string.h
489b705 08-Feb-2000 Zeev Suraski <zeev@php.net> @- Fixed memory corruption in fgetss(), strip_tags() and gzgetss() (Zeev)
/PHP_5_3/ext/standard/php_string.h
09d2e3d 28-Dec-1999 Sascha Schumann <sas@php.net> Move include into source file
/PHP_5_3/ext/standard/php_string.h
3ee4e65 18-Dec-1999 Zeev Suraski <zeev@php.net> More php3_ annihilation
/PHP_5_3/ext/standard/php_string.h
6553540 14-Dec-1999 Thies C. Arntzen <thies@php.net> @- implemented count_chars(). (Thies)
/PHP_5_3/ext/standard/php_string.h
a15916a 13-Dec-1999 Andrei Zmievski <andrei@php.net> Made strspn() and strcspn() binary-safe.
# Please test if you can, especially cases with embedded chr(0).

@ Made strspn() and strcspn() binary-safe.
/PHP_5_3/ext/standard/php_string.h
33d82cb 11-Dec-1999 Andrei Zmievski <andrei@php.net> get_meta_tags() was using php_stristr() so it needed to be changed.
Optimized it to use php_memnstr() directly.
/PHP_5_3/ext/standard/php_string.h
7e4bd9f 09-Dec-1999 Andrei Zmievski <andrei@php.net> (PHP strtoupper, strtolower, substr_replace) Made binary-safe.
@Made strtoupper(), strtolower(), substr_replace() binary-safe. (Andrei)
/PHP_5_3/ext/standard/php_string.h
5b983c9 04-Dec-1999 Sascha Schumann <sas@php.net> Clean up php3.*\.h files. The files itself are renamed, and references in all
.*\.[ch] files were changed. There is a slight chance that my script missed
a few changes, please correct them manually.
/PHP_5_3/ext/standard/php_string.h