summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Uinified call frame handling for user and internal functions.Dmitry Stogov2014-07-021-14/+35
| | | | Now EG(current_execute_data) always point to the call frame of the currently executed function.
* Fixed support for extra arguments in conjunction with variadiv argument.Dmitry Stogov2014-06-301-13/+28
| | | | Use compile time flags to check if we call constructor and result of ZEND_NEW is used or not.
* Use fast comparison for (func->type == ZEND_USER_FUNCTION || func->type == ↵Dmitry Stogov2014-06-271-10/+8
| | | | ZEND_EVAL_CODE)
* Keep extra args in the same VM stack segment (after all CV and TMP vars)Dmitry Stogov2014-06-271-6/+6
|
* Refactoring: merge call_frame and end_execute_data into single data ↵Dmitry Stogov2014-06-261-42/+72
| | | | structure. Keep only single copy of each argument on VM stack (previously ZE kept two copies of each arguments for user functions)
* Refactoring: use call_frames instead of call_slotsDmitry Stogov2014-06-241-65/+78
|
* Use arena allocator for zend_class_entry, zend_op_array and ↵Dmitry Stogov2014-06-181-5/+7
| | | | zend_property_info that live till the end of request
* Merge branch 'master' into phpngDmitry Stogov2014-06-121-16/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (77 commits) NEWS entry for Fix potential segfault in dns_get_record() NEWS entry for "Fix potential segfault in dns_get_record()" NEWS entry for Fix potential segfault in dns_get_record( Fix potential segfault in dns_get_record() Revert "Add optional second arg to unserialize()" 5.5.15 now update NEWS Fix bug #66127 (Segmentation fault with ArrayObject unset) 5.4.31 next Add NEWS. This doesn't need UPGRADING (or an RFC), IMO. Fix broken test. Add a mime type map generation script and update the header. Move the mime type map out of php_cli_server.c for easier generation. Replace the CLI server's linear search for extensions with a hash table. fix test Remove unused included file NEWS NEWS NEWS Fixed Bug #67413 fileinfo: cdf_read_property_info insufficient boundary chec ... Conflicts: Zend/zend_closures.c Zend/zend_execute.c Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/spl/spl_array.c ext/standard/basic_functions.c ext/standard/dns.c ext/standard/var.c
| * Merge remote-tracking branch 'github/pr/671'Stanislav Malyshev2014-06-081-16/+16
| |\ | | | | | | | | | | | | | | | * github/pr/671: Fix align indentation Fixed identation on file
| | * Fix align indentationJefersson Nathan2014-05-121-16/+16
| | |
* | | Use reference counting instead of zval duplicationDmitry Stogov2014-06-051-2/+1
| | |
* | | cleanupDmitry Stogov2014-06-031-9/+3
| | |
* | | cleanupDmitry Stogov2014-06-031-9/+16
| | |
* | | Use new zend_hash APIDmitry Stogov2014-05-271-7/+8
| | |
* | | Use specialized functions instead of macrosDmitry Stogov2014-05-261-12/+12
| | |
* | | Optimize func_get_args() to build packed arrayDmitry Stogov2014-05-261-12/+21
| | |
* | | Fixed apply_func_args_tXinchen Hui2014-05-251-6/+6
| | |
* | | Fixed apply_func_arg_t, and it's better not using cast (compiler friendly)Xinchen Hui2014-05-251-2/+2
| | |
* | | Use optimized zend_array_dup() function. convert zend_hash_num_elements() ↵Dmitry Stogov2014-05-231-3/+2
| | | | | | | | | | | | and zend_hash_next_free_element() into macros.
* | | Save one type checking if the type is already stringXinchen Hui2014-05-131-7/+3
| | |
* | | zend_stack_top() now returns pointer directlyNikita Popov2014-05-011-4/+2
| | |
* | | Don't allocate zend_stack elements individuallyNikita Popov2014-05-011-3/+3
| | | | | | | | | | | | | | | Instead allocate a vector of elements. Size must now be specified on initialization rather than on push.
* | | Split IS_BOOL into IS_FALSE and IS_TRUEDmitry Stogov2014-04-301-1/+2
| | |
* | | Optimized constant lookupDmitry Stogov2014-04-251-7/+4
| | |
* | | Redesigned zend_execute_data layout now EX(object), EX(scope) and ↵Dmitry Stogov2014-04-241-12/+33
| | | | | | | | | | | | | | | | | | EX(called_scope) arr properties of the current function execution co ntext. They are set during zend_execute_data initialization and never changed.
* | | Fixed compilation warningsDmitry Stogov2014-04-221-15/+8
| | |
* | | Avoid string duplicationDmitry Stogov2014-04-221-8/+4
| | |
* | | Use ZEND_FETCH_FOREACH_* macros to iterate over HashTables instead of ↵Dmitry Stogov2014-04-181-55/+30
| | | | | | | | | | | | zend_hash_move_forward() and family.
* | | Moved zend_literal->cache_slot right into zval.Dmitry Stogov2014-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | 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.
* | | op_array->filename and op_array->filename may be kept in opcache SHMDmitry Stogov2014-04-161-4/+8
| | |
* | | Fixed reference countingDmitry Stogov2014-04-161-2/+4
| | |
* | | CleanupDmitry Stogov2014-04-161-3/+0
| | |
* | | Cleanup (1-st round)Dmitry Stogov2014-04-151-11/+10
| | |
* | | Fixed zend_object_get_t in simpleXMLXinchen Hui2014-04-151-1/+2
| | |
* | | Fix some ZTS issues and leaksNikita Popov2014-04-101-1/+1
| | |
* | | 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 zend_hash_* iteration API zend_hash_fove_forward_ex(ht, pos) and ↵Dmitry Stogov2014-04-071-2/+2
| | | | | | | | | | | | | | | | | | | | | family require second argument to be real pointer. &(ht)->nInternalPointer should be passed instead of NULL. zend_hash_update_current_key() may work only with internal pointer.
* | | Constant duplication optimizationDmitry Stogov2014-04-041-1/+1
| | | | | | | | | | | | Argument receiving optimization
* | | Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), ↵Dmitry Stogov2014-04-031-1/+1
| | | | | | | | | | | | candidate for GC, etc)
* | | Avoid unnecessry reallocationsDmitry Stogov2014-04-011-2/+2
| | |
* | | Avoid unnecessry reallocationDmitry Stogov2014-04-011-2/+6
| | |
* | | Fixed parameter passingDmitry Stogov2014-04-011-2/+1
| | |
* | | Refactored data structures to keep zend_object* instead of a whole zval in ↵Dmitry Stogov2014-03-281-14/+16
| | | | | | | | | | | | some places
* | | Use ZVAL_DEREF() macroDmitry Stogov2014-03-271-3/+1
| | |
* | | Replaced (Z_TYPE(x) == IS_REFERENCE) with (Z_ISREF(x))Dmitry Stogov2014-03-271-1/+1
| | |
* | | Refactored IS_INDIRECT usage for CV and object properties to support ↵Dmitry Stogov2014-03-261-3/+19
| | | | | | | | | | | | HashTable resizing
* | | Refactored EG(active_symbol_table) to be zend_array* instead of HashTable*Dmitry Stogov2014-03-171-2/+2
| | |
* | | Handle interned strings as non-refcounted scalarsDmitry Stogov2014-03-051-7/+7
| | |
* | | Fixed typo in get_extension_funcsXinchen Hui2014-03-031-2/+2
| | |
* | | Fixed NULL pointer dereferenceXinchen Hui2014-03-031-1/+3
| | |