summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge branch 'PHP-5.5' into PHP-5.6Ferenc Kovacs2015-07-071-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-5.5: add missing second argument for ucfirst to the proto
| | * Merge branch 'PHP-5.4' into PHP-5.5Ferenc Kovacs2015-07-071-1/+1
| | |\ | | | | | | | | | | | | | | | | * PHP-5.4: add missing second argument for ucfirst to the proto
| | | * add missing second argument for ucfirst to the protoFerenc Kovacs2015-07-071-1/+1
| | | |
| * | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-05-121-1/+5
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: fix format update NEWS Add test for bug #69522 Update tests Fix bug #69522 - do not allow int overflow Forgot test file Fix bug #69403 and other int overflows Fixed bug #69418 - more s->p fixes for filenames Fixed bug #69364 - use smart_str to assemble strings Fix bug #69453 - don't try to cut empty string Fix bug #69545 - avoid overflow when reading list Conflicts: ext/standard/pack.c
| | * | Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-05-121-2/+6
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: fix format update NEWS Add test for bug #69522 Update tests Fix bug #69522 - do not allow int overflow Forgot test file Fix bug #69403 and other int overflows Fixed bug #69418 - more s->p fixes for filenames Fixed bug #69364 - use smart_str to assemble strings Fix bug #69453 - don't try to cut empty string Fix bug #69545 - avoid overflow when reading list Conflicts: ext/pcntl/pcntl.c ext/standard/basic_functions.c ext/standard/pack.c ext/standard/tests/dir/opendir_variation1-win32.phpt
| | | * Fix bug #69403 and other int overflowsStanislav Malyshev2015-05-101-2/+6
| | | |
| * | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-01-311-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | * PHP-5.5: Add mitigation for CVE-2015-0235 (bug #68925) Add mitigation for CVE-2015-0235 (bug #68925)
| | * | Add mitigation for CVE-2015-0235 (bug #68925)Stanislav Malyshev2015-01-311-1/+1
| | | |
| | * | Bump yearXinchen Hui2015-01-151-1/+1
| | | |
| * | | bump yearXinchen Hui2015-01-151-1/+1
| | | |
* | | | Unnecessary duplicationXinchen Hui2015-07-021-1/+1
| | | |
* | | | Cleanup (avoid reallocatios and side effects in php_strip_tags)Dmitry Stogov2015-07-011-27/+13
| | | |
* | | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-396/+396
| | | | | | | | | | | | | | | | semantick changes).
* | | | refix the negative zend_long to size_t castsAnatol Belski2015-06-291-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no good way to fix this for 32-bit without enormously overcomplicating the logic. Therefore switching back to the previous code and adding the casts to ensure there are no sudden casts of negative to size_t.
* | | | Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit d96eab8d79b75ac83d49d49ae4665f948d15a804 Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8 Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
* | | | fix more places with subtle negative zend_long to size_t castAnatol Belski2015-06-291-4/+6
| | | |
* | | | remove useless checkAnatol Belski2015-06-291-1/+1
| | | | | | | | | | | | | | | | thanks Yasuo :)
* | | | remove commentAnatol Belski2015-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | f and l are the $start and $length, since they come from the user land, they only can be zend_long
* | | | fix negative zend_long to size_t castAnatol Belski2015-06-291-2/+3
| | | |
* | | | removed unreachable code in the substr_replace functionEdgar R. Sandi2015-06-291-3/+1
| | | |
* | | | Micro optimizationXinchen Hui2015-06-241-2/+3
| | | |
* | | | Fix more proto commentsRasmus Lerdorf2015-06-231-2/+2
| | | |
* | | | Revert "Simplify php_implode(). Fill the resulting string in direct order."Dmitry Stogov2015-06-231-13/+43
| | | | | | | | | | | | | | | | | | | | | | | | The patch slightly improved performance of string imploding, but reduced speed of integers imploding. This reverts commit 36d39b70443dcefeeb62d189ce67b414caf5486a.
* | | | Simplify php_implode(). Fill the resulting string in direct order.Dmitry Stogov2015-06-231-43/+13
| | | |
* | | | Fix bug #62922Nikita Popov2015-06-201-1/+1
| | | | | | | | | | | | | | | | Off by one error...
* | | | Remove unused varXinchen Hui2015-06-201-2/+1
| | | |
* | | | Improve strtr (Fixed a bug which the lenth check doesn't work at all)Xinchen Hui2015-06-191-11/+12
| | | |
* | | | Fixed bug #69872 (uninitialised value in strtr with array)Xinchen Hui2015-06-181-11/+10
| | | |
* | | | Get rid of more ZVAL_ZVAL() macrosDmitry Stogov2015-06-121-1/+2
| | | |
* | | | Avoid zval duplication in ZVAL_ZVAL() macro (it was necessary only in few ↵Dmitry Stogov2015-06-121-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | places). Switch from ZVAL_ZVAL() to simpler macros where possible (it makes sense to review remaining places)
* | | | Ran wrong tests, fixed bug in impl; simplifiedBob Weinand2015-05-261-1/+9
| | | |
* | | | Speed up implod()'ing between 5% and 30% (by time)Bob Weinand2015-05-261-8/+30
| | | | | | | | | | | | | | | | | | | | Significantly speed up implode()'ing on integers now... Previously I accidentally committed the first part of the patch in 69b54ba926b714dff0f8b54bea385e9a278c5849
* | | | Also unreserve T_CLASSBob Weinand2015-05-251-52/+32
| | | |
* | | | Improve strtr()Dmitry Stogov2015-05-151-46/+24
| | | |
* | | | e more efficient zend_hash_*() functionsDmitry Stogov2015-05-051-7/+15
| | | |
* | | | Cleanup substr_replaceNikita Popov2015-04-271-67/+24
| | | |
* | | | fix compilation with vc14Anatol Belski2015-04-221-1/+4
| | | |
* | | | Optimize zend_string_realloc() add more specialized versions ↵Dmitry Stogov2015-03-201-7/+7
| | | | | | | | | | | | | | | | zend_string_extend() and zend_string_truncate()
* | | | Use specialized macro for string zval creationDmitry Stogov2015-03-121-9/+9
| | | |
* | | | Fixed bug #69144 (strtr not replacing with partly matching replace pairs)Xinchen Hui2015-02-281-1/+1
| | | |
* | | | fix incompatible pointer typeAnatol Belski2015-02-111-1/+1
| | | |
* | | | Get rid of old HashTable iteration APIDmitry Stogov2015-02-101-35/+60
| | | |
* | | | Fixed segfault introduced in f869bf3829c6b2c94011747c69ed8f32412c9e03Xinchen Hui2015-01-301-0/+1
| | | |
* | | | minor CS fixXinchen Hui2015-01-271-1/+1
| | | |
* | | | fix failure with shared zvals in php_str_replace_in_subjectMárcio Almada2015-01-271-5/+10
| | | |
* | | | remove unused var, make string.c compilation zero warningsMárcio Almada2015-01-241-2/+0
| | | |
* | | | Fix one more leak when wrong $needle type provide of strriposReeze Xia2015-01-231-0/+1
| | | |
* | | | Fixed memory leak of strripos() when empty needle or haystackReeze Xia2015-01-231-0/+1
| | | |
* | | | Revert "Fixed valgrind reported issue with setlocale"Xinchen Hui2015-01-221-1/+1
| | | | | | | | | | | | | | | | This reverts commit fa06343d7e0e04f4a660218f6dbb7ce18c3f090b.
* | | | Fixed valgrind reported issue with setlocaleXinchen Hui2015-01-211-1/+1
| | | |