summaryrefslogtreecommitdiff
path: root/Zend/zend_string.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-171-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: fix unserializer patch move this entry to the correct version add missing NEWS entry add missing NEWS entry Updated or skipped certain 32-bit tests add NEWS entry for #68594 5.4.37 add more BC breaks update news add CVE add missing test file Fix bug #68594 - Use after free vulnerability in unserialize() Fix typo Hash value must not zero?
| * Hash value must not zero?Xinchen Hui2014-12-131-0/+2
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-8/+8
|/
* fix the empty_strings SAPI shutdown leak in TS buildAnatol Belski2014-10-061-0/+24
| | | | | | | 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
* Fixed useless or duplicated IS_INTERNED() checksDmitry Stogov2014-09-191-7/+7
|
* Changed "inline" into "zend_always_inline"Dmitry Stogov2014-09-181-1/+1
|
* use zend_string_equals_ciXinchen Hui2014-08-291-0/+3
|
* Add zend_string_equals and zend_string_equals_literalNikita Popov2014-08-251-0/+8
|
* master renames phase 4Anatol Belski2014-08-251-1/+1
|
* master renames phase 2Anatol Belski2014-08-251-3/+3
|
* master renames phase 1Anatol Belski2014-08-251-47/+32
|
* first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-7/+7
|
* Fixed compilation warningsDmitry Stogov2014-07-151-2/+2
|
* Temporary fixed the invalid read warningXinchen Hui2014-07-141-5/+5
|
* Changed zend_make_printable_zval() to return "use_copy" instead of ↵Dmitry Stogov2014-07-091-1/+1
| | | | | | additional reference argument. Improved branch prediction.
* C++ doesn't allow implicitly convert void * to other pointer typeXinchen Hui2014-06-281-1/+1
|
* C++ compiler doesn't allow cast a void * to other pointer typeXinchen Hui2014-06-271-4/+4
|
* Add STR_ALLOCA_* API, use in get_method and verify_argNikita Popov2014-05-031-0/+14
| | | | | | | | This avoid unnecessary allocations when using dynamic method dispatch and class typehints. Probably there are other places where this should be done as well, those just stood out for my usage.
* Allocate zend_strings with correct sizeNikita Popov2014-04-231-4/+6
| | | | | | | | For me (32bit) sizeof(zend_string) is 20, which means that the char[1] array at the end is padded with three bytes. Thus allocating based on sizeof(zend_string)-1 overallocates by those 3 padding bytes. This commit fixes the allocation size, by using XtOffsetOf.
* Cleanup (2-nd round)Dmitry Stogov2014-04-151-0/+39
|
* IS_INTERNED is not always 0 in ZTSNikita Popov2014-04-091-5/+1
| | | | | The current implementation chooses to intern "" in ZTS. Either that should be removed or IS_INTERNED needs to actually check the flag.
* Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), ↵Dmitry Stogov2014-04-031-1/+5
| | | | candidate for GC, etc)
* Changed data layout to allow more efficient operationsDmitry Stogov2014-04-021-10/+11
|
* STR_DUP() doesn't duplicate interned strings anymore. In case new string is ↵Dmitry Stogov2014-04-011-4/+4
| | | | required STR_INIT() or STR_ALLOC() should be used.
* Refactored GC (incomplete)Dmitry Stogov2014-03-191-1/+1
|
* Don't include trailing zero into hash caclculationDmitry Stogov2014-03-141-1/+1
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-191-4/+4
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-181-1/+2
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-171-6/+8
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-121-3/+0
|
* Use better data structures (incomplete)Xinchen Hui2014-02-111-1/+1
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-101-46/+187
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Fix intl buildNikita Popov2013-09-141-1/+1
|
* Provide more macros for handling of interned stringsNikita Popov2013-09-131-0/+27
| | | | | | | | | | | | | * str_erealloc behaves like erealloc for normal strings, but will use emalloc+memcpy for interned strings. * str_estrndup behaves like estrndup for normal strings, but will not copy interned strings. * str_strndup behaves like zend_strndup for normal strings, but will not copy interned strings. * str_efree_rel behaves like efree_rel for normal strings, but will not free interned strings. * str_hash will return INTERNED_HASH for interned strings and compute it using zend_hash_func for normal strings.
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Fix bug #62651: source level BC breakGustavo André dos Santos Lopes2012-07-271-0/+2
| | | | | Break for C++ extensions that don't wrap the includes of PHP libraries in extern "C" {.
* - Year++Felipe Pena2012-01-011-1/+1
|
* Fixed ZE specific compile warnings (Bug #55629)Dmitry Stogov2011-09-131-2/+2
|
* Reverted Gopal's patch that allowed plugable interned string checkDmitry Stogov2011-07-281-2/+1
| | | | | | 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-1/+2
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* marked char pointer arguments as const in lots ofHartmut Holzgraefe2010-10-141-1/+1
| | | | | | 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-0/+4
| | | | | | | real globals - Updated API version number
* Added concept of interned strings. All strings constants known at compile ↵Dmitry Stogov2010-04-201-0/+67
time are allocated in a single copy and never changed.