summaryrefslogtreecommitdiff
path: root/Zend/zend_string.c
Commit message (Collapse)AuthorAgeFilesLines
* year++Xinchen Hui2018-01-021-1/+1
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
|
* Revert "export symbol missing by phpdbg"Anatol Belski2016-10-141-12/+0
| | | | | | | | This reverts commit 611ab7fe5b9fe41de56c25b1d348a866794b1fb1. Overseen strpprintf is there (cherry picked from commit 3104882cf873308c43dca20bdfd698dd3470a246)
* export symbol missing by phpdbgAnatol Belski2016-10-141-0/+12
| | | | (cherry picked from commit 611ab7fe5b9fe41de56c25b1d348a866794b1fb1)
* HANDLE_BLOCK/UNBLOCK_INTERRUPTIONS() protection on inter-process data is ↵Dmitry Stogov2016-06-201-6/+0
| | | | | | | completely useless now. Historicaly, these macros were introduced as a protection from execution timeout handling, but we don't need them anymore after "safe execution timeout" implementation. These macros are still useful to protect from termination during inner process data modification, because of OS signals (e.g. SIGTERM during OPcache SHM update).
* cast const awayXinchen Hui2016-06-111-1/+1
|
* fix dangling pointer, phpdbg reveals itAnatol Belski2016-06-021-0/+2
|
* fix known interned strings init with TS per requestAnatol Belski2016-06-021-7/+16
|
* Intern some known (and offten used) strings.Dmitry Stogov2016-05-121-0/+40
|
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-3/+3
| | | | semantick changes).
* Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* Fixed interned string leaks after new STATIC_KEY flag is introducedXinchen Hui2015-04-281-2/+1
|
* Fixed zend_string related inconsistenciesDmitry Stogov2015-04-211-0/+1
|
* Changed HashTable layout:Dmitry Stogov2015-03-131-28/+34
| | | | | | | Removed HashTable->arHash (reduced memory consumption). Now hash slots may be accessed using HT_HASH() macro. Hash slotas are allocated together with Buckets (before them) and lay in reverse order from HashTable->arData base address (see comments in Zend/zend_types.h) Indexes in hash table and conflict resolution chains (Z_NEXT) may be stored as indeces or offsets in bytes, depending on system (32 or 64-bit). HashTable data filelds are reordered to keep the most useful for zend_hash_find() data in the same CPU cache line.
* Limit HashTable size to avoid integer overflow checksDmitry Stogov2015-02-131-1/+1
|
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-5/+5
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-12/+12
|
* fix the empty_strings SAPI shutdown leak in TS buildAnatol Belski2014-10-061-12/+1
| | | | | | | still the NTS variant is somewhat different as it needs zend_new_interned_string_int because the normal callbacks might be not initialized, but at least no leaks anymore and some more structure
* fix leaking the empty_string in TS buildsAnatol Belski2014-10-061-1/+4
|
* that's not char * but zend_string *Anatol Belski2014-09-181-1/+1
|
* Fix compiler warningsNikita Popov2014-08-251-0/+2
|
* master renames phase 2Anatol Belski2014-08-251-3/+3
|
* master renames phase 1Anatol Belski2014-08-251-8/+8
|
* first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-2/+2
|
* Improved ZTS supportDmitry Stogov2014-06-091-0/+1
|
* Initialize CG(one_time_string) in ZTS as wellNikita Popov2014-05-051-3/+3
|
* Combine HashTable.flags and HashTable.nApplyCount into single 32-bit wordDmitry Stogov2014-04-211-5/+5
|
* Cleanup (1-st round)Dmitry Stogov2014-04-151-19/+0
|
* Fix some ZTS issues and leaksNikita Popov2014-04-101-0/+2
|
* Fix ZTS buildNikita Popov2014-04-091-1/+1
| | | | | This only makes it compile, it doesn't actually work, presumably because interned strings are assumed in some places.
* Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), ↵Dmitry Stogov2014-04-031-1/+1
| | | | candidate for GC, etc)
* Changed data layout to allow more efficient operationsDmitry Stogov2014-04-021-15/+15
|
* Use interned strings for one character stringsDmitry Stogov2014-04-011-0/+3
|
* emalloced interned strings have to be deallocated before memory manager shutdownDmitry Stogov2014-02-171-1/+5
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-171-6/+13
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-101-137/+111
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Improved empty string handling. Now ZE uses an interned string instead of ↵Dmitry Stogov2013-12-261-0/+2
| | | | allocation new empty string each time. (Some extensions might need to be fixed using str_efree() instead of efree() to support interned strings).
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* Fixed ZE specific compile warnings (Bug #55629)Dmitry Stogov2011-09-131-1/+1
|
* Reverted Gopal's patch that allowed plugable interned string checkDmitry Stogov2011-07-281-8/+0
| | | | | | 1. It introduced a significant slowdown 2. It didn't fix the real problem in APC (I'm goint to commit the fix)
* merge to trunk - Allow zend_is_interned_string to be pluggableGopal Vijayaraghavan2011-07-281-0/+8
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* marked char pointer arguments as const in lots ofHartmut Holzgraefe2010-10-141-5/+5
| | | | | | places where strings pointed to are not modified to prevent compiler warnings about discarded qualifiers ...
* - Interned string related callbacks moved turned from compiler_globals into ↵Dmitry Stogov2010-05-251-9/+13
| | | | | | | real globals - Updated API version number
* Added concept of interned strings. All strings constants known at compile ↵Dmitry Stogov2010-04-201-0/+229
time are allocated in a single copy and never changed.