summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
Commit message (Collapse)AuthorAgeFilesLines
* fixed directory access problem when direcory name is encoded in japanese ↵Rui Hirokawa2002-04-251-5/+5
| | | | Shift_JIS encoding.
* fix for #16469Wez Furlong2002-04-071-1/+1
|
* fix for Bug #16314Hartmut Holzgraefe2002-03-271-3/+19
|
* - Fix bug 11244 (patch by "Tal Peer" <hazgul99@hotmail.com>).Markus Fischer2002-03-261-0/+24
| | | | | # Sorry for the delay :-)
* Make state parameter of php_strip_tags passed by reference.Wez Furlong2002-03-201-2/+8
| | | | | Move state tracking to stream structure.
* Fix calculation of output buffer size in wordwrap(). (Thanks to Wez.)jim winstead2002-03-181-1/+1
|
* Change php_addslashes() a little.Yasuo Ohgaki2002-03-121-19/+31
| | | | | | Since most users do not use magic_quote_sybase, be nicer to users not using magic_quote_sybase.
* - Fix warning message for join().Derick Rethans2002-03-021-1/+2
|
* Fix for bug #15130. Way too much effort for this bug, but cleaned up codeSean Bright2002-01-221-35/+42
| | | | | | a bit, use zend_parse_parameters(), etc, etc. We only look for extensions in the basename, not the full path.
* More tweaking of wordwrap() with the cut parameter set. It was being ajim winstead2002-01-051-2/+4
| | | | | | little too aggressive and cutting words without breaking at spaces first. (A couple of tests were incorrect.)
* New memcpy()-based wordwrap() implementation. The simple casejim winstead2002-01-051-98/+75
| | | | | | | | | | | | | (single-character break, no forced break) appears to be about 60% faster, and there's simply no comparison for non-simple cases with non-trivial amounts of text. The old algorithm was O(n^2) (with an unfortunately large constant factor) because of the use of strncat(), the new one is O(n). Added some more tests, too. @ - Made wordwrap() significantly faster. (Jim) # test case: $t = join('',file('ChangeLog')); $w = wordwrap($t,10,"\n",1); # new code completes in less than a second. i'm still waiting for the # old code to finish.
* Fixed segfault in wordwrap() when wrapping to zero width and usingjim winstead2002-01-041-46/+26
| | | | | | | | | | | multi-character break or trying to force cut (bug #12768, now fails and issues a warning because forcing a zero-width cut doesn't make sense). Also converted to new paramater-passing API and avoid making an extra copy of the return values. # also added tests. @- Fixed segfault in wordwrap() when wrapping to zero width and using @ multi-character break or trying to force cut (bug #12768). (Jim)
* fix for bug #14832: basename with 2nd parm corrupts source stringHartmut Holzgraefe2002-01-031-2/+5
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* renamed rot13 to str_rot13()Hartmut Holzgraefe2001-12-061-2/+2
|
* ported rot13() from php3Hartmut Holzgraefe2001-12-061-0/+26
|
* - Fix a crash when passing e.g. NULL to basename(). (Patch by MarkusDerick Rethans2001-12-011-14/+5
| | | | | | Fischer <mfischer@guru.josefine.at>) #- Simplyfied code using zend_parse_parameters().
* Fixed bug #13901.Andrei Zmievski2001-11-101-7/+13
|
* WS fixJames Moore2001-11-021-3/+3
|
* @- Fix behaviour of strtok. Bug 13866 (jmoore)James Moore2001-11-021-1/+5
| | | | | | | | | | | # I have brought the behaviour of strtok into line with how the # libc strtok's behave. currently given # <string1><token><string2><token><token>string> # three recursive calls to strtok returns <string1>. <string2>, <token><string3> # it now returns <string1>, <string2>, <string3>. (there was some # debate in #php.bugs if it should return <string1>, <string2>, false, <string3> # but php's strtok now behaves the same way as the libc version.
* - 'Fix' for bug #13543Derick Rethans2001-10-041-1/+1
|
* - Fix crashbug in php_chunk_split()Derick Rethans2001-09-271-1/+1
|
* Another leak bites the dust?Zeev Suraski2001-09-271-2/+2
|
* - nl2br now handles different styles of line endings in one string. (PatchDerick Rethans2001-09-261-21/+93
| | | | | | | by Boian Bonev <boian@bonev.com>) @- nl2br now handles all styles of line-endings in one string. (Boian, @ Derick)
* 2nd phase in back-substitution those macro'sJeroen van Wolffelaar2001-09-251-2/+2
| | | | | I've got pretty much everything now...
* Back-substitute for Z_* macro's. If it breaks some extension (the script ↵Jeroen van Wolffelaar2001-09-251-62/+62
| | | | isn't optimal, it parses for example var->zval.value incorrect) please let me know.
* - Fix crash bug (patch by <chocolateboy@lunomail.com>)Derick Rethans2001-09-241-0/+5
|
* Make chop the alias and rtrim the main function, in order to get automagicallyJeroen van Wolffelaar2001-09-231-4/+4
| | | | | generated alias-listings correct.
* proto fixes "double" -> "float"Hartmut Holzgraefe2001-09-211-1/+1
|
* don't use boyer_str_to_str. It is experimentalSascha Schumann2001-09-211-1/+1
|
* fix strtr() when called with two parameters. this has been broken for some time!Thies C. Arntzen2001-09-131-1/+1
| | | | | | guys, when "optimizing" functions you _shoudl_ write a testcase for the working function and make _sure_ that it works afterwards!
* - Really fix nl2br now... it's actaulyl faster nowDerick Rethans2001-09-091-13/+15
|
* - Fix for bug 11904Derick Rethans2001-09-091-2/+15
| | | | | #- This is possibly not the best solution... feel free to improve
* I should really learn how to spellSterling Hughes2001-09-061-2/+2
|
* avoid lowercasing the stringSterling Hughes2001-09-061-0/+4
|
* Fixed some protos.Egon Schmid2001-09-041-42/+42
|
* Thanks sebastianSterling Hughes2001-09-041-1/+1
| | | | | # I really like this whole qa team thingy
* update php_trim as well...Sterling Hughes2001-09-041-1/+1
|
* fix crash bugSterling Hughes2001-09-041-7/+7
|
* tabs -> spacesSterling Hughes2001-09-041-2/+2
|
* Begin cleanup, api wise...Sterling Hughes2001-09-041-410/+421
|
* stray tabsSterling Hughes2001-09-031-3/+3
|
* cleanup sscanf() just a tiny bit, just so it looks like the rest of the codeSterling Hughes2001-09-031-21/+15
| | | | | in the string.c file.
* Fixed buffer overflow issue.Gavin Sherry2001-08-221-5/+12
|
* Changed php_strip_tags() to check if <? was XML code.Gavin Sherry2001-08-221-3/+11
|
* API updateZeev Suraski2001-08-211-1/+2
|
* WhitespaceZeev Suraski2001-08-111-57/+57
|
* Fix some build probs on *bsdWez Furlong2001-08-101-0/+30
|
* more tsrm cleanupSascha Schumann2001-08-061-23/+20
|
* Removed some duplicate code out of addclashesJeroen van Wolffelaar2001-08-051-8/+3
| | | | | | | # Not TSRM-safe, I am afraid... @- addcslashes now warns when charlist is invalid. The returned string @ remained the same (Jeroen)