| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
@ 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
(although i bet we'll get a levenstein() alias some day)
|
|
|
|
|
|
| |
that will calculate the Levenshtein distance between two
strings (faster and possibly more accurate than similar_text())
|
|
|
|
|
| |
added optional 3rd parameter 'limit' to explode() as in split()
|
| |
|
|
|
|
|
| |
(due to feature request in bug id #3251)
|
|
|
|
|
| |
# also some todo stuff
|
|
|
|
|
|
|
|
|
| |
@- 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
can't look
inside variables named 'string'.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
# Please test if you can, especially cases with embedded chr(0).
@ Made strspn() and strcspn() binary-safe.
|
|
|
|
|
| |
Optimized it to use php_memnstr() directly.
|
|
|
|
|
| |
@Made strtoupper(), strtolower(), substr_replace() binary-safe. (Andrei)
|
|
.*\.[ch] files were changed. There is a slight chance that my script missed
a few changes, please correct them manually.
|