summaryrefslogtreecommitdiff
path: root/Zend/zend_string.h
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-2/+0
| | | | | | | | This reverts commit 611ab7fe5b9fe41de56c25b1d348a866794b1fb1. Overseen strpprintf is there (cherry picked from commit 3104882cf873308c43dca20bdfd698dd3470a246)
* export symbol missing by phpdbgAnatol Belski2016-10-141-0/+2
| | | | (cherry picked from commit 611ab7fe5b9fe41de56c25b1d348a866794b1fb1)
* fix known interned strings init with TS per requestAnatol Belski2016-06-021-0/+1
|
* Intern some known (and offten used) strings.Dmitry Stogov2016-05-121-9/+47
|
* Remove use of register keyword in headersNikita Popov2016-02-041-1/+1
| | | | | | | Headers must be C++ compatible -- this throws warnings. The register keyword is not used for optimization, at least not in optimized builds.
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Ensure proper data alignmentDmitry Stogov2015-08-311-1/+1
|
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-22/+13
| | | | semantick changes).
* Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-54/+86
| | | | | | | | | | | | | | | | | | | | 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 zend_string related inconsistenciesDmitry Stogov2015-04-211-0/+1
|
* We can't stay zend_string->h to be zero, because it may lead to hash value ↵Dmitry Stogov2015-03-241-1/+8
| | | | | | | recalculation and update. But in general zend_string may be put and read-only memory, that would lead to crash. Always set the high bit of hash_value to prevent recaclulation.
* Optimize zend_string_realloc() add more specialized versions ↵Dmitry Stogov2015-03-201-22/+62
| | | | zend_string_extend() and zend_string_truncate()
* Remove bogus ZEND_ASSERT(hash != 0)Bob Weinand2015-03-181-1/+0
| | | | | | There's always a possibility that the has will end up as equal to zero due to overflowing. See the tests for strings whose hash overflow. Yes, there's a check for whether the hash already was calculated... and strings with a hash equal to zero always need the hash recalculated, in one of 2^32 respectively 2^64 cases - which should not be a major issue.
* Forget this changeXinchen Hui2015-02-111-1/+1
|
* Expose zend_string_equals_str_ciXinchen Hui2015-02-111-0/+4
|
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-2/+2
|
* 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
|