summaryrefslogtreecommitdiff
path: root/Zend/zend_constants.c
Commit message (Collapse)AuthorAgeFilesLines
* fix datatype mismatchesAnatol Belski2014-10-241-14/+14
| | | | and convert APIs to size_t where zend_string internally used
* Avoid double IS_INTERNED() checkDmitry Stogov2014-09-191-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-49/+49
|
* further fixes on coreAnatol Belski2014-08-161-2/+2
|
* first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-24/+24
|
* Fixed bug #67725 (now we create immutable arrays only in SHM)Dmitry Stogov2014-08-051-3/+1
|
* Fixed string destruction (class_name might be reused and stored somewhere in ↵Dmitry Stogov2014-07-241-1/+1
| | | | __autoload()).
* Removed EG(called_scope) and use corresponding value from ↵Dmitry Stogov2014-07-031-2/+2
| | | | EG(current_execute_data)
* Removed EG(in_execution). If EG(currentent_execute_data) is not NULL we are ↵Dmitry Stogov2014-07-031-2/+2
| | | | executing something.
* Introduced immutable arrays. They don't need to be copyed and may be used ↵Dmitry Stogov2014-05-291-1/+3
| | | | directly from SHM.
* Don't use cast (compiler friendly)Xinchen Hui2014-05-261-3/+6
|
* Merge mainstream 'master' branch into refactoringDmitry Stogov2014-04-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During merge I had to revert: Nikita's patch for php_splice() (it probably needs to be applyed again) Bob Weinand's patches related to constant expression handling (we need to review them carefully) I also reverted all our attempts to support sapi/phpdbg (we didn't test it anyway) Conflicts: Zend/zend.h Zend/zend_API.c Zend/zend_ast.c Zend/zend_compile.c Zend/zend_compile.h Zend/zend_constants.c Zend/zend_exceptions.c Zend/zend_execute.c Zend/zend_execute.h Zend/zend_execute_API.c Zend/zend_hash.c Zend/zend_highlight.c Zend/zend_language_parser.y Zend/zend_language_scanner.c Zend/zend_language_scanner_defs.h Zend/zend_variables.c Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/date/php_date.c ext/dom/documenttype.c ext/hash/hash.c ext/iconv/iconv.c ext/mbstring/tests/zend_multibyte-10.phpt ext/mbstring/tests/zend_multibyte-11.phpt ext/mbstring/tests/zend_multibyte-12.phpt ext/mysql/php_mysql.c ext/mysqli/mysqli.c ext/mysqlnd/mysqlnd_reverse_api.c ext/mysqlnd/php_mysqlnd.c ext/opcache/ZendAccelerator.c ext/opcache/zend_accelerator_util_funcs.c ext/opcache/zend_persist.c ext/opcache/zend_persist_calc.c ext/pcre/php_pcre.c ext/pdo/pdo_dbh.c ext/pdo/pdo_stmt.c ext/pdo_pgsql/pgsql_driver.c ext/pgsql/pgsql.c ext/reflection/php_reflection.c ext/session/session.c ext/spl/spl_array.c ext/spl/spl_observer.c ext/standard/array.c ext/standard/basic_functions.c ext/standard/html.c ext/standard/mail.c ext/standard/php_array.h ext/standard/proc_open.c ext/standard/streamsfuncs.c ext/standard/user_filters.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re main/php_variables.c sapi/phpdbg/phpdbg.c sapi/phpdbg/phpdbg_bp.c sapi/phpdbg/phpdbg_frame.c sapi/phpdbg/phpdbg_help.c sapi/phpdbg/phpdbg_list.c sapi/phpdbg/phpdbg_print.c sapi/phpdbg/phpdbg_prompt.c
| * Removed useless void* parameter and replaced with zend_bool on ↵Bob Weinand2014-04-111-2/+2
| | | | | | | | zval_update_constant* functions
* | Optimized constant lookupDmitry Stogov2014-04-251-53/+65
| |
* | Fixed compilation warningsDmitry Stogov2014-04-221-11/+7
| |
* | Combine HashTable.flags and HashTable.nApplyCount into single 32-bit wordDmitry Stogov2014-04-211-3/+1
| |
* | Moved zend_literal->cache_slot right into zval.Dmitry Stogov2014-04-171-7/+7
| | | | | | | | | | | | | | It should be accessed using Z_CACHE_SLOT() macro. zend_literal structure is removed. API functions that accepted pointer to zend_literal now accept pointer to zval or cache_slot directly. Calls of such functiond that now accept cache_slot need to be changed to pass -1 instead of NULL.
* | Cleanup (2-nd round)Dmitry Stogov2014-04-151-9/+18
| |
* | Cleanup (1-st round)Dmitry Stogov2014-04-151-2/+0
| |
* | Fixed interface constants inheritance.Dmitry Stogov2014-04-141-0/+2
| | | | | | | | | | Now we use IS_REFERENCE for inhereted class constants. I might miss some edje cases.
* | Fix copying of constants for ZTSNikita Popov2014-04-091-4/+12
| | | | | | | | | | Just a quick hack, should probably add an internal_copy_ctor function for this.
* | Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), ↵Dmitry Stogov2014-04-031-1/+1
| | | | | | | | candidate for GC, etc)
* | Use STR_COPY() instead of STR_DUP() where possibleDmitry Stogov2014-04-011-1/+2
| |
* | Fixed invalid freeDmitry Stogov2014-03-211-1/+3
| |
* | Fixed __COMPILER_HALT_OFFSET handlingDmitry Stogov2014-02-281-2/+2
| |
* | Fixed constant name constructionDmitry Stogov2014-02-221-3/+3
| |
* | Use better data structures (incomplete)Dmitry Stogov2014-02-171-26/+28
| |
* | Use better data structures (incomplete)Dmitry Stogov2014-02-171-4/+4
| |
* | Use better data structures (incomplete)Dmitry Stogov2014-02-101-121/+109
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Provide more macros for handling of interned stringsNikita Popov2013-09-131-13/+6
| | | | | | | | | | | | | * 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.
* zend_register_null_constantkrakjoe2013-04-151-31/+17
| | | | | fixed zend_register_bool_constant usage in macros use REGISTER_MAIN_* in zend_register_standard_constants
* zend_API.h includedkrakjoe2013-04-151-19/+10
| | | | ZVAL_* family in use
* use Z_* family macroskrakjoe2013-04-151-18/+18
|
* zend_register_bool_constant patchkrakjoe2013-04-151-0/+12
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Improved traits implementation. Now to support __CLASS__ constant in traits ↵Dmitry Stogov2012-01-171-4/+36
| | | | php doesn't have to copy the complete compiled method, but can reuse the same code. The resolution of __CLASS__ constants in methods defined in traits are delayed till run-time. This approach also made possible to use __CLASS__ constant as default value for traits properties and method arguments.
* - Year++Felipe Pena2012-01-011-1/+1
|
* Fixed ZE specific compile warnings (Bug #55629)Dmitry Stogov2011-09-131-3/+4
|
* - Minor optimization taking the computed hash of interned stringsFelipe Pena2011-07-101-1/+8
|
* ZEND_THREAD_SAFE and ZEND_DEBUG_BUILD are not meant to be case insensitiveScott MacVicar2011-05-171-1/+1
|
* Add options to debug_backtrace functionsStanislav Malyshev2011-01-161-0/+2
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* - Add missing checkFelipe Pena2010-11-141-1/+2
|
* - Fix the constant detectionFelipe Pena2010-11-131-1/+1
|
* - Fixed bug #53305 (E_NOTICE when defining a constant starts with ↵Felipe Pena2010-11-131-2/+9
| | | | | | | __COMPILER_HALT_OFFSET__) - Fixed a part of bug #53260 (the __COMPILER_HALT_OFFSET__ name is not shown in the E_NOTICE)
* marked char pointer arguments as const in lots ofHartmut Holzgraefe2010-10-141-3/+3
| | | | | | 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-2/+2
| | | | | | | real globals - Updated API version number
* - Reimplemented ZEND_INIT_FCALL_BY_NAME and ZEND_INIT_NS_FCALL_BY_NAME to ↵Dmitry Stogov2010-04-271-7/+4
| | | | | | | use literals instead of additional operands - Optimized access to global constants
* Optimized access to global constants using values with pre-calculated ↵Dmitry Stogov2010-04-221-23/+61
| | | | hash_values from litersls table